Maven build error:Could not calculate build plan: Plugin...

近期,我在進行maven install時,發生了以下異常:java

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'myProject'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2

解決方案比較簡單,須要清空倉庫,從新下載。不太重新下載推薦使用阿里雲的鏡像:將maven源改成國內阿里雲鏡像apache

P.S.:這是一個系列性的錯誤,相似的錯誤幾乎均可以這麼處理。maven

相關文章
相關標籤/搜索