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