1. 程式人生 > >Maven建立專案失敗顯示 Could not calculate build plan

Maven建立專案失敗顯示 Could not calculate build plan

Errors occurred during the build.

Errors running builder 'Maven Project Builder' on project 'mybatisStudy'.

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

 

解決方法:

 將C:\User\.m2\repository\org\apache\maven\plugins目錄下的資料夾刪除,重啟eclipse,

或者 刪除這個資料夾,重新copy一個