Maven的報錯之Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4
報錯原始碼 Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to nexus-aliyun (http:// maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com
翻譯為 未能傳輸org.apache.maven.plugins:maven-sure防火外掛:pom:2.12.4,來自http://maven.aliyun.com/nexus/content/group/public 在本地儲存庫中快取,在nexus-aliyun的更新間隔過期或更新之後,解析將不會被重新嘗試。 原始錯誤:不能傳輸工件。apache.maven.plugins:maven-sure防火外掛:pom:2.12.4從/到nexus-aliyun(http:// maven.aliyun.com/nexus/content/groups/public):maven.aliyun.com
原因是猜測可能跟在nexus-aliyun的更新間隔過期或更新之後,解析將不會被重新嘗試。這句話有關,但是本人也不太清楚。或者是檔案格式有問題,因為在查詢資料是看到一片說跟轉換符有關,要把settings.xml改成成utf-8(這個方法請慎重嘗試,本人沒有用著個方法解決本問題。) 解決方案: 1.把本地倉庫裡的org刪除重新下載。 2.專案右鍵-->maven-->Update Dependencies