- 配置pom 文件
<!-- 部署 -->
<distributionManagement>
<repository>
<!-- nexus服務器中用戶名:在settings.xml中<server>的id-->
<id>hckj-thirdpart</id>
<!-- 這個名稱自己定義 -->
<name>Nexus thirdpart Repository</name>
<!--私服地址-->
<url>http://localhost:8300/repository/hckj-thirdpart/</url>
</repository>
</distributionManagement>
nexus服務器中用戶名: 中的 對應在settings.xml中的
- maven setting.xml 配置
<servers>
<server>
<id>hckj-thirdpart</id>
<username>hckjdev</username>
<password>hckj@831903</password>
</server>
</servers>
- 打包上傳