異常Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://maven.aliyun.com/nexus/content/groups/public was ...


錯誤異常: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 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 (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com

(說明:今天早上打開eclipse后,就顯出這個錯誤,pom.xml上面有個小紅×,網上試了很多方法)

1.右擊pom.xml->Run As->Maven Clean

   pom.xml->Run As->Maven Install

(我用了,沒效果,但是你可以先試試) 

2.又嘗試:在c盤用戶里C:\Users\...\.m2\repository\org\apache\maven\plugins,

(別人的方法:)發現沒有maven-surefire-plugin-2.**.*.jar這樣的文件........(我發現我都不缺),->project->maven->update...

3.我的解決方案

  A.直接將C:\Users\...\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin,整個文件夾刪除

  B.(Alt+F5)或者右擊項目->Maven->Update project

尾語:希望對你有幫助,如果還有問題,可加Q:2318645572交流


免責聲明!

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



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