解決方式一:
1、查看.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下maven-resources-plugin-2.6.jar文件是否存在,用rar打開是否正常的,如果都正常,則說明jar包沒有問題
2、重新執行一遍maven install 即可
解決方式二:
在用Eclipse IDE for Java EE Developers進行maven項目的開發時,報錯Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of;解決方法:
1、查看windows -> Preferences -> maven 的settings.xml文件中.m2的位置
2、然后將.m2/repository/org/apache/maven/plugins目錄下的文件夾全部刪除
3、選中maven項目,右鍵--》maven--》update讓maven重新下載依賴包
問題解決
【注】此IDE自帶maven插件,不需要再自己下載安裝maven插件