Using Maven to build JAR from source in Subversion trunk

Posted by Anonymouse on Stack Overflow See other posts from Stack Overflow or by Anonymouse
Published on 2010-04-11T05:47:10Z Indexed on 2010/04/11 5:53 UTC
Read the original article Hit count: 220

Filed under:
|
|

There's a Java library that I would like to use in my project. My project uses Maven to pull in dependencies and it works great for everything except this one library. The problem is, this library never has releases. The author maintains the source in a Subversion repository and only makes changes in trunk.

Is there a way I can tell Maven to

  1. Update (or check out) the library's source tree from Subversion
  2. Build it according to its POM
  3. Use the resulting jar as a dependency for this project
  4. Do this regularly (possibly at each build)
  5. For bonus points, mark which Subversion revision of that library I want to use

Thanks!

© Stack Overflow or respective owner

Related posts about maven

Related posts about subversion