eclipse创建maven项目报Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.

创建maven项目eclipse报下面错误:

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

解决方式:

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;
5.最后刷新工程即可;

你可能感兴趣的:(开发工具,java,java错误排查)