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
在<proxies></proxies>中间加上:
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>代理的ip地址</host>
<port>端口</port>
</proxy>


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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值