日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

mvn help:system下载包失败错误解决!

發布時間:2023/12/9 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mvn help:system下载包失败错误解决! 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

maven配置好之后在cmd命令中執行mvn help:system的時候提示訪問中央庫失敗具體錯誤如下:
C:\Users\liekkas>mvn help:system

[INFO] Scanning for projects…

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5:

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved:

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

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-clean-plugin:2.5:

插件org.apache.maven.plugins:maven-clean-plugin:2.5或它的一個依賴項無法解決:

未能讀org.apache.maven.plugins工件描述符:maven-clean-plugin:jar:2.5

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

install-plugin/2.4/maven-install-plugin-2.4.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4:

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved:

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

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-install-plugin:2.4:

插件org.apache.maven.plugins:maven-install-plugin:2.4或它的一個依賴項無法解決:

未能讀org.apache.maven.plugins工件描述符:maven-install-plugin:jar:2.4

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

deploy-plugin/2.7/maven-deploy-plugin-2.7.pom

Downloading:http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-。

deploy-plugin / 2.7 / maven-deploy-plugin-2.7.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7:

Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved:

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

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-deploy-plugin:2.7:

插件org.apache.maven.plugins:maven-deploy-plugin:2.7或它的一個依賴項無法解決:

未能讀org.apache.maven.plugins工件描述符:maven-deploy-plugin:jar:2.7

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

site-plugin/3.3/maven-site-plugin-3.3.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3:

Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one

of its dependencies could not be resolved: Failed to read artifact descriptor for

org.apache.maven.plugins:maven-site-plugin:jar:3.3

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-site-plugin:3.3:

或一個插件org.apache.maven.plugins:maven-site-plugin:3.3

的依賴關系無法解決:未能讀工件描述符

org.apache.maven.plugins:maven-site-plugin:jar:3.3

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

antrun-plugin/1.3/maven-antrun-plugin-1.3.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3:

Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved:

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

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-antrun-plugin:1.3:

插件org.apache.maven.plugins:maven-antrun-plugin:1.3或它的一個依賴項無法解決:

未能讀org.apache.maven.plugins工件描述符:maven-antrun-plugin:jar:1.3

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:

Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved:

Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-assembly-plugin:2.2 -beta-5:

插件org.apache.maven.plugins:maven-assembly-plugin:2.2 -beta-5或者它的一個依賴項無法解決:

未能讀工件描述符org.apache.maven.plugins:maven-assembly-plugin:jar:2.2 -beta-5

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8:

Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved:

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

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-dependency-plugin:2.8:

插件org.apache.maven.plugins:maven-dependency-plugin:2.8或它的一個依賴項無法解決:

未能讀org.apache.maven.plugins工件描述符:maven-dependency-plugin:jar:2.8

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

release-plugin/2.3.2/maven-release-plugin-2.3.2.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2:

Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies

could not be resolved: Failed to read artifact descriptor for

org.apache.maven.plugins:maven-release-plugin:jar:2.3.2

[警告]未能檢索插件描述符org.apache.maven.plugins:maven-release-plugin:2.3.2:

2.3.2插件org.apache.maven.plugins:maven-release-plugin:或者它的一個依賴項

無法解決:未能讀工件描述符

2.3.2 org.apache.maven.plugins:maven-release-plugin:jar:

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central

(http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.apache.maven.plugins / maven-metadata不能傳輸元數據。xml從/到中央

(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/

to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.codehaus.mojo / maven-metadata不能傳輸元數據。xml的/

中央(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from

http://repo.maven.apache.org/maven2 was cached in the local repository, resolution

will not be reattempted until the update interval of central has elapsed or up

dates are forced. Original error: Could not transfer metadata

org.apache.maven.plugins/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2):

repo.maven.apache.org

[警告]org.apache.maven.plugins / maven-metadata轉移失敗。xml從

http://repo.maven.apache.org/maven2緩存的本地存儲庫,決議

之前不會reattempted之后或中部的更新間隔

日期是被迫的。原始錯誤:無法傳輸元數據

org.apache.maven.plugins / maven-metadata。xml從/到中央(http://repo.maven.apache.org/maven2):

repo.maven.apache.org

[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from

http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will

not be reattempted until the update interval of central has elapsed or updates are forced.

Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to

central (http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.codehaus.mojo / maven-metadata轉移失敗。xml從

http://repo.maven.apache.org/maven2緩存的本地存儲庫,決議

不是reattempted直到更新間隔中央強制運行或更新。

原始錯誤:無法轉移org.codehaus.mojo / maven-metadata元數據。xml從/到

中央(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.597 s

[INFO] Finished at: 2014-08-05T08:59:52+08:00

[INFO] Final Memory: 3M/85M

[INFO] ------------------------------------------------------------------------

[ERROR] No plugin found for prefix ‘help’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (F:\Repositories\Maven), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

原因分析:看錯誤提示大概是說下載失敗,那肯定就是網絡的問題了。首先看你是移動還是網通的網絡。需要設置代理。在maven的settings.xm文件里面的節點里面添加代理設置就可以了。我找到了四個可以使用的代理,廢話不多少上代碼:
1、

<mirror> <id>Central</id> <url>http://repo1.maven.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror>

2、

<mirror> <id>ibiblio.org</id> <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url> <mirrorOf>central</mirrorOf> <!-- United States, North Carolina --> </mirror>

3、

<mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror>

4、

<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>

這四個都可以使用代碼直接粘貼就可以了,樓主用的是第四個速度最快的。這個是阿里云的一個代理 其他的速度有點不能忍

其他相關網址:

http://blog.csdn.net/shycx/article/details/7726600

http://blog.csdn.net/xuefeng0707/article/details/42157311

http://blog.csdn.net/htqing/article/details/54890864

本博客轉自:https://blog.csdn.net/u010974598/article/details/66742912

總結

以上是生活随笔為你收集整理的mvn help:system下载包失败错误解决!的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。