Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'e3-common'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar
在创建pom的jar包子集时遇到了该问题
在网上浏览了许多人的解决方案都是一样的
大多都建议清除掉maven\plugins\maven-deploy-plugin下的内容并在项目的maven里选择update project
但是我用这个方法并不好使
我在这里总结一下我的解决方案:
- 先核对Preference中maven的settings.xml文件的路径是否正确(这里我检查到我的路径错了)
- 再检查本地默认的repository路径是否有效(就是根据那个默认路径去看一眼是不是有这么个仓库)
- 之后清除掉maven\plugins\maven-deploy-plugin下的内容
- 注意!!如果你没有vpn,按照默认下载方式是没办法更新的,这里需要改一下maven仓库的下载地址,有vpn不需要考虑网络下载环境的可以忽略这一步。
- 关掉编译软件,再打开
- 打开后选择需要更新的那个项目,强制更新。
最后成功下载好就更新完成了。
给自己拍拍手~
真棒棒~
网友评论