Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5

新建maven项目失败,并出现如下错误:

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

原因可能如下:

1.未对maven进行配置。
Window->Preferences->Maven->User Settings->选择maven安装目录,例如:D:\apache\apache-maven-3.0.3\conf\settings.xml

2.上网方式为代理上网,但是没有对maven设置代理。
修改D:\apache\apache-maven-3.0.3\conf\settings.xml
中间加上:

optional
true
http
代理的ip地址
端口


原文地址:http://www.zhounenghua.cn/failed-to-read-artifact-descriptor-for-org-apache-maven-pluginsmaven-resources-plugin/

你可能感兴趣的:(Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5)