maven新建项目报错
创建了一个maven项目,报错
Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'BCPS'. 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
解决方案:
删除maven本地库里面的org.apache.maven.plugins:maven-resources-plugin所在文件夹.m2\repository\org\apache\maven\plugins\maven-resources-plugin目录下的2.6即可,让maven重新下载这个包就行了
若其他报类似错误,处理方式同,删除相应的文件夹即可