创建Maven项目时 Coud not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.7

创建Maven项目时 Coud not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.7
今天用Maven新建项目时,突然报了这么一个错:Could not calculate build plan:Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved:Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-pluginjar:2.7
把我搞到心态爆炸,各种更改配置文件,删目录就是不行。最后发现就是它报错的那一行提示原因,jar包缺少。解决方法就是找到maven的本地仓库。org\apache\maven\plugins\maven-resources-plugin\2.7,这个目录下的jar包不完整,删除根目录重新下载就行了。