關於maven導入工程pom文件報錯問題及解決


pom文件頭報錯

1.導入maven文件,經常遇到表頭出錯問題。報錯:Failure to transfer org.apache.maven.shared:maven-filtering:pom:1.0-beta-2 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.shared:maven-
filtering:pom:1.0-beta-2 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
其大致原因是org.apache.maven.shared:maven-filtering:pom已經存在了,而且不能被強制更新了。

怎么將其更新呢?

首先根據org.apache.maven.shared:maven-filtering:pom:1.0-beta-2這個目錄在本地倉庫中刪除對應文件夾下的.lastUpdated后綴名的文件。

從新更新maven工程,就行了。

 

https://blog.csdn.net/qy20115549/article/details/52890026

 --------------maven手動導入maven:https://blog.csdn.net/hueason/article/details/73676667


免責聲明!

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



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