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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM