Maven导入项目时报错 Could not calculate build plan

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
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

解决办法:

1.删除你的仓库
(默认为:C:\Users\用户名.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.2)目录下的m2e-lastUpdated.properties文件
在这里插入图片描述
2.项目右键,Run As–>Maven clean
3.项目右键,Run As–>Maven install
4.项目右键,Maven–>Update Project

posted @ 2019-01-11 16:44  向上的蜗牛  阅读(1213)  评论(0编辑  收藏  举报