我能够从命令行创建maven项目但不能从eclipse创建项目。我在eclipse中配置了与外部相同的maven。当我试图创建maven项目时,它给我下面的错误。如何解决以下错误。
我的eclipse版本是kepler
Could not calculate build plan: Plugin org.apache.maven.plugins:maven- resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-
plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
请告知。
答案 0 :(得分:1)
试试这个:
1:删除.M2内容 2:在settings.xml中设置代理配置
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.com</host>
<port>xxxx</port>
<nonProxyHosts>local.net</nonProxyHosts>
</proxy>
</proxies>
小心!如果代理没有auth
,请不要输入任何用户名和passowrd3:关闭Eclipse ..并重新打开
4:清理并更新项目配置
5:验证用于项目配置的java buld路径
6:尝试使用eclipse中嵌入的Maven 进行测试,看看问题是外部Maven安装是否已损坏