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
顺利部署...
Maven部署到Nexus
本文介绍了如何在Maven项目中配置pom.xml文件以便将项目部署到Nexus仓库,并解决部署过程中出现的401错误。同时给出了settings.xml中进行用户验证配置的方法。
803

被折叠的 条评论
为什么被折叠?



