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 https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 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 central (https://repo.maven.apache.org/maven2): The operation was cancelled.

原因可能是下載文件錯誤

解決方法:

1.找到maven本地倉庫,目錄:C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4

2.對比maven遠程倉庫,地址:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/,下載補全maven-surefire-plugin-2.12.4.jar、maven-surefire-plugin-2.12.4.pom及其對應的sha1文件

3.刪除文件maven-surefire-plugin-2.12.4.pom.lastUpdated

4.刷新項目或者右鍵-->maven-->Update Dependencies


免責聲明!

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



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