Quintessential Nexus installation and maven repository configuration
Fortunately there is the Maven handbook [1]. Unfortunately you had to
know that it exists, or you risk to deal with the complete but huge
Nexus documentation. What you need to run a Nexus server is what
follows, giving that you already have JRE and a servlet container
installed (I use Jetty here)
cd $JETTY_HOME/webapps wget http://nexus.sonatype.org/downloads/nexus-webapp-1.4.0.war cd .. ./bin/jetty.sh restartPoint browser to http://localhost:8080/nexus-webapp-1.4.0/
Login as admin/admin123 Click on the link "repositories" on the left and choose the "Release"
repository. There is a local path configured as attribute "Default
Local Storage Location".
If you already have a local repositories (in ~/.m2/repository), you
should copy all artifacts to that folder. Like:
cp ~/.m2/repository/* ~/sonatype-work/nexus/storage/releases/Then the artifacts will become available to the URL of the Release
repository. Now adding that repository in your pom.xml will make Maven
use those artifacts during build. That's all. [1] http://www.sonatype.com/books/mhandbook/reference/

Comments [0]