- Download the dependency jar:
In MAVEN_HOME\setting.xml, you can configure
<mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://devmap:8081/nexus/content/groups/public/</url> </mirror>
- Upload jar:
In the project's pom.xml, configure
<distributionManagement> <repository> <id>releases</id> <name>Internal Releases</name> <url>http://devmap:8081/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Internal Snapshots</name> <url>http://devmap:8081/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement>
Because uploading requires a password,
Also in maven_home\setting.xml, with password
<server> <id>snapshots</id> <username>deployment</username> <password>deployment123</password> </server>
Note that the id here is the same as the one in the previous pom.