Eclipse创建的Maven项目报错Could not calculate build plan: Plugin

1、问题

Could not calculate build plan: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved
net/gezilan/article/details/80274430

Eclipse创建的Maven项目报错Could not calculate build plan: Plugin

2、解决办法

1、查看eclipse里,配置的maven的安装位置
2、找到安装maven的安装目录,进入conf目录,打开setting.xml文 件,查看

Eclipse创建的Maven项目报错Could not calculate build plan: Plugin
可以看到D:\repository
我们进入到 D:\repository\org\apache\maven找到一个plugins,删掉
3、进入eclipse,找到项目,右键项目,点击Run As,执行Maven test,maven应该就会自动下载所需要的plugin插件,控制台会自动打印
Eclipse创建的Maven项目报错Could not calculate build plan: Plugin
等待下载完毕后,重新创建maven项目,就不会再报这个错误了。