maven 報錯 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1

導入maven項目到eclipse中報錯:CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved

參考網上的關於這個報錯的說明,發現是鏡像源不好,導致的下載速度不行,使得maven-compiler-plugin:3.1 下載不完全。文件名包含lastUpdate後綴,表示該文件沒下載完全。

參考文章:https://blog.csdn.net/u010452388/article/details/80789816

然後從網上找了一個更換maven源的辦法 給 maven添加一些下載速度快一點的源

在換源的時候,要注意setting.xml文件中不能出現中文,註釋<!-- -->中也不能出現中文,不然maven可能會出現 無法導入配置文件的問題。當然,我沒有閉合<!-- -->出現了<!-- <!-- -->這樣的形式 結果導致不能導入配置文件

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章