- Problem: Could notcalculate build plan Pluginorg.apache.maven.plugins:maven-war-plugin:2.3 or one of its dependencies couldnot be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.3
即maven中的某个插件不能解析或找不到build路径
- Solution:Maven中的本地仓库(C:\Users\luolin\.m2)中可能存在无效插件文件,下载过程中很容易因为网络原因而造成文件损坏,因此,这个原因需要删除repository中的所有文件夹,或者根据报错定位到具体的文件包,删除掉并重新update一次。切记在update过程中千万不能随意暂停,或者用任务管理器杀死eclipse程序。
详细步骤:
1.清除你的仓库
(默认为:C:\Users\用户名\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.3)
目录下的m2e-lastUpdated.properties文件
2.项目右键,Run As-->Maven clean
3.项目右键,Run As-->Maven install
4.项目右键,Maven-->Update Project..
5.刷新或者清理一下项目。over!