将项目发布到neuxs私服

需要在

pom.xml中配置

<distributionManagement>
<repository>
<id>user-release</id>
<name>release</name>
<url>http://localhost:8081/nexus/content/repositories/zzq-relase/</url>
</repository>
<snapshotRepository>
<id>user-snapshots</id>
<name>snapshots</name>
<url>http://localhost:8081/nexus/content/repositories/zzq-snapshots/</url>
</snapshotRepository>
</distributionManagement>

然后在本地库的setting.xml中配置

<server><!--正式发行仓库账号-->
<id>user-release</id>
<username>zzq</username>
<password>zzq123</password>
</server>
<server><!--快照版发行仓库账号-->
<id>user-snapshots</id>
<username>zzq</username>
<password>zzq123</password>
</server>

执行 clean  deploy

posted @ 2018-03-08 14:59  逆水乘舟,不进则退  阅读(189)  评论(0编辑  收藏  举报