Eclipse创建maven简单项目时,报错:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
解决方法:
修改settings.xml,添加:
<mirror>
<id>Central</id>
<url>http://repo1.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
右键项目Update等待即可
本文解决在Eclipse中创建Maven项目时遇到的构建计划计算失败问题,详细介绍了如何通过修改settings.xml文件,添加中央仓库镜像来解决maven-resources-plugin插件及其依赖无法解析的错误。
3298

被折叠的 条评论
为什么被折叠?



