Could not transfer artifact xxx from/to xxx解決方案


maven中默認的鏡像加載是這個

在setting.xml文件中

<mirror>
   <id>nexus</id>
   <mirrorOf>*</mirrorOf>
   <name>internal nexus repository</name>
   <url>http://10.159.62.231:9090/repository/maven-public/</url>
</mirror> 

將其替換為阿里的鏡像

 <mirror>
  <id>alimaven</id>
  <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>
</mirror>

然后在本地倉庫中將原先導入的依賴刪除掉,重新導入就可以了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM