您的位置:首页 > 编程语言 > Java开发

eclipse创建Maven项目报依赖错误的解决方案

2017-11-15 13:51 561 查看



错误如下:

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

解决方法:

去本地Maven仓库目录下删除maven-resources-plugin目录

我在setting.xml里面设置的本地Maven仓库目录为

D:\apache-maven\mvnRepository\Repository\org\apache\maven\plugins\maven-resources-plugin



删除maven-resources-plugin目录后,右键项目------Maven------update 
project即可解决问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐