To make good use of Maven in a team, the repository private server is inevitable. Otherwise, the curious eyes of team mate will all be consumed in the long jar download process.
I used to introduce a simple but stupid way to build a private server-upload the. m2/Repository directory downloaded by Comrade Lei Feng to any web server. In fact, there are many professional Maven server builders in the world. See theserviceside'sArticle-- Setting up a Maven repository.
I used artifactory. Suddenly, I thought that the Java service application was so easy to use at the moment, and I didn't need to install anything. I double-click artifactory. BAT, and you will start the jetty Web server, which is used as a typical unpacking.
Getting started in 10 minutes
In addition, some jar files not available on the server on the official website can also be conveniently stored in artifactory through the deploy management interface.
Finally, your team's artifactory server can not directly connect to the Internet, you need to use the HTTP proxy server, see http://www.jfrog.org/sites/artifactory/latest/configuration.html. Also, you can configure it at remote-repo.Sockettimeoutmillis, The default value is 5000 milliseconds..
We recommend that you use artifactory to build a jar repository on servers with ample bandwidth to download the jar from springside :)