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
- Update (or check out) the library’s source tree from Subversion
- Build it according to its POM
- Use the resulting jar as a dependency for this project
- Do this regularly (possibly at each build)
- For bonus points, mark which Subversion revision of that library I want to use
Thanks!
If you don’t control something, you can’t… control it. So I would:
You don’t really want to automate this more than that (what if the author commits something that breaks your code, what if you need to fix a bug in a released version of your code but can’t use the exact same library). Put it under source control and manage the release yourself.