其他分享
首页 > 其他分享> > nexus :ReasonPhrase:Unauthorized

nexus :ReasonPhrase:Unauthorized

作者:互联网

Downloading from nexus: http://192.168.70.132:8081/repository/maven-public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to nexus (http://192.168.70.132:8081/repository/maven-public/): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

未通过认证,未授权,从nexus(http://192.168.70.132:8081/repository/maven-public/)下载包

 

在server配置中添加mirrorID的登陆认证

<server>
  <id>mirror-id</id>
  <username>user</username>
  <password>passwd</password>
</server>

<mirror>
  <id>mirror-id</id>
</mirror>

 

标签:Unauthorized,plugin,nexus,ReasonPhrase,maven,clean,plugins,2.5
来源: https://www.cnblogs.com/abc987plm/p/13173347.html