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
顺利部署...
1 楼 ferreousbox 2010-01-20
repository和server的id必须对应才可以发布吧
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
顺利部署...
1 楼 ferreousbox 2010-01-20
repository和server的id必须对应才可以发布吧
评论
正解
<server>
<id>releases</id>
<username>repouser</username>
<password>repopwd</password>
</server>