59178

Maven dependency from SVN repository

Question:

Using maven 2, is there any way to list a dependency to another maven project which is on a different SVN server but is not on a maven repository?

Ideally, it should be possible to compile and run the main project without having to manually checkout and build the dependency.

Answer1:

<blockquote>

Using maven 2, is there any way to list a dependency to another maven project which is on a different SVN server but is not on a maven repository?

</blockquote>

Maven dependencies are <strong>always</strong> resolved through the local repository and are either downloaded from a remote repository or installed during install. In your case, you'd have to install the mentioned project.

If you want to avoid the manual checkout, you could maybe use svn:externals to extract the other project from the other repository in the same time as the "main" one and setup a reactor build on both.

This should be doable, but is not ideal (and you'll get crazy when the build will fail because of the project that is not under your control). The ideal solution would be to make the other project artifacts available in a remote repository.

Answer2:

AFAIK Maven does not understand how to check things out of SVN.

Of course, you could fall back on embedding Ant targets in your Maven POM ... but that is rather unpleasant.

Recommend

  • Why does checkout sometimes stage a file?
  • JENKINS: ERROR when I try to use an older JDK for a specific maven project
  • Regarding client side code generation from WSDL
  • Disable add to cart redirection
  • c# web browser click on a button with a class name
  • Subversion reverting resolved file
  • composer dependency stating in doesn't have php-xsl
  • How to load Q library with Require.js?
  • maven jboss-as:start A required class was missing … org/sonaty…/ArtifactResolutionException
  • How do you create a Fuseki SPARQL server using the Apache Jena Java API?
  • Unzip archive in .Net CORE 1.0
  • Wrapping text in spinner android
  • OSX - always hide certain files
  • Fail:(TESTMODE) Transactions of this market type cannot be processed on this system
  • Compiling dlib on OS X
  • How to generate and display a QR Code in ionic 2
  • saving file generated by TCPDF
  • Unable to install Git-core+svn by MacPorts
  • ADO and msqli connections very slow
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • PHP buffered output depending on server setting?
  • Content-Length header not returned from Pylons response
  • Custom Tabgroup Appcelerator
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • iOS: Detect app start via notification press
  • Python urlparse: small issue
  • Initializer list vs. initialization method
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • Finding past revisions of files in StarTeam w/ .NET SDK / C#
  • Can I make an Android app that runs a web view in Chrome 39?
  • Convert array of 8 bytes to signed long in C++
  • How to make Safari send if-modified-since header?
  • How to pass list parameters for each object using Spring MVC?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • JaxB to read class hierarchy
  • costura.fody for a dll that references another dll
  • java string with new operator and a literal
  • Net Present Value in Excel for Grouped Recurring CF