原文位址::https://blog.csdn.net/roughman9999/article/details/64467141
相關文章
1、解決eclipse載入已有maven工程時出現的fail to read artifact descriptor....問題----https://blog.csdn.net/manlyzpk/article/details/43475299
2、eclipse加載maven工程提示pom.xml無法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解決方案----https://blog.csdn.net/imlmy/article/details/8268293
建立或導入maven項目失敗,并出現如下錯誤:
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
原因可能如下:
1.未對maven進行配置。
Window->Preferences->Maven->User Settings->選擇maven安裝目錄,例如:D:\work\apache-maven-3.0.5\conf\settings.xml
2.maven-resources-plugin版本異常,需要删除後重新整理maven配置
右鍵工程節點,選擇 Maven -> Update Project
如果更新失敗,可以把(userhome)\repository\org\apache\maven\plugins\maven-resources-plugin\2.7目錄删除,然後再次更新。
3.上網方式為代理上網,但是沒有對maven設定代理。
修改D:\work\apache-maven-3.0.5\conf\settings.xml
在<proxies></proxies>中間加上:
<proxy>
< id>optional</id>
< active>true</active>
< protocol>http</protocol>
< host>代理的ip位址</host>
< port>端口</port>
< /proxy>
---------------------
作者:roughman9999
來源:CSDN
原文:https://blog.csdn.net/roughman9999/article/details/64467141
版權聲明:本文為部落客原創文章,轉載請附上博文連結!