代码的pom文件配置
私服地址可以是域名也可以是IP
nexus
<distributionManagement>
<repository>
<id>cloud-releases</id>
<url>http://私服地址/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>cloud-snapshots</id>
<url>http://私服地址/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
jenkins clean deploy 要么mvn clean
转载于:https://blog.51cto.com/wsxxsl/2096636