nexus中的设置就不说了
首先要在pom.xml中添加
<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://localhost:8081/nexus/content/repositories/thirdparty</url>
</repository>
</distributionManagement>
这时如果 进行deploy时返回
Return code is: 401
错误
则需要进行用户验证
需要在settings.xml的servers中添加
<server>
<id>deploymentRepo</id>
<username>repouser</username>
<password>repopwd</password>
</server>
mvn deploy
顺利部署...