We are using SVN to store maven dependencies (organization restriction couldn't use nexus or artifactory maven repository as now). SVN runs on a webserver with https protoc开发者_如何转开发ol. Currently if a new dependency is added all developers have to update their local copy of maven repo manually. Is there a way to download\update new dependency automatically during maven build cycle itself? tried with wagon plugin no help. Any helps will be appreciated.
First try to get a Nexus as soon as possible. Furthermore you are using svn as a replacement for the local user repository. Why not using SVN as a (temporary) replacement for a nexus which users are using via Maven. If you configure the Web-Server that way everyone will download the dependencies automatically via Maven and NOT via SVN into the .m2/repository.
You can make a shared folder accessible to all developers and configure maven to use it as repository and create a script to update it on a build. So every body will have the same updated repo.
But its better for you to force getting nexus...
I understand your situation as we were in a similar situation. What you need to use is a local Maven repository Manager - we use Apache Archiva on a local build machine (its actually an old laptop on our LAN). I'm sure there are other alternatives to using Archiva, but it's the only one with which I have experience.
Once installed, you will probably need to have everyone add this repository to their ~/.m2.settings.xml file, and mark it as a mirror for everything (this means that each users Maven build will head to the Archiva repo for all of its dependencies (at least, those not stored within the local repo on the users machine). If Archiva does not contain the dependency, it can be configured to download it itself, and store within the Archiva repo for other users.
(let me know if you'd like more details, and i'll update this post with more info, including pom snippets, etc, that you'll need to use)
HTH
精彩评论