錯誤異常: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.comapache
(說明:今天早上打開eclipse後,就顯出這個錯誤,pom.xml上面有個小紅×,網上試了不少方法)eclipse
1.右擊pom.xml->Run As->Maven Cleanmaven
pom.xml->Run As->Maven Installxml
(我用了,沒效果,可是你能夠先試試) ip
2.又嘗試:在c盤用戶裏C:\Users\...\.m2\repository\org\apache\maven\plugins,it
(別人的方法:)發現沒有maven-surefire-plugin-2.**.*.jar這樣的文件........(我發現我都不缺),->project->maven->update...io
3.個人解決方案cli
A.直接將C:\Users\...\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin,整個文件夾刪除sed
B.(Alt+F5)或者右擊項目->Maven->Update projectdate
尾語:但願對你有幫助,若是還有問題,可加Q:2318645572交流