setting.xml
.......
<server>
<id>releases</id>
<username>deploy</username>
<password>deploy</password>
</server>
<server>
<id>snapshots</id>
<username>deploy</username>
<password>deploy</password>
</server>.......
pom.xml
.......
<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://xxx.xxx.xxx.xxx:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Internal snapshots</name>
<url>http://xxx.xxx.xxx.xxx::8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>.......
打包命令:
mvn deploy