需要在

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

相关文章:

  • 2021-04-14
  • 2022-01-11
  • 2021-12-05
  • 2022-12-23
  • 2021-09-21
  • 2021-07-02
  • 2021-09-22
猜你喜欢
  • 2022-01-07
  • 2021-08-05
  • 2021-04-01
  • 2021-10-05
相关资源
相似解决方案