Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN as Maven Repo

Tags:

maven-2

svn

maven

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 protocol. 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.

like image 481
Arunkumar Avatar asked Oct 10 '22 06:10

Arunkumar


2 Answers

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.

like image 192
khmarbaise Avatar answered Oct 18 '22 15:10

khmarbaise


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...

like image 33
Dmitry Alexandrov Avatar answered Oct 18 '22 17:10

Dmitry Alexandrov