亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

等了好久maven還是報錯

一直在報錯啊。。。不知道什么原因

C:\Users\PC\workspace\pyh>mvn archetype:generate -DarchetypeCatalog=internal -DgroupId=imooc-Yuengh -DartifactId=spring-mvc-study -DarchetypeArtifactId=maven-archetype-webapp

[WARNING]

[WARNING] Some problems were encountered while building the effective settings

[WARNING] Unrecognised tag: 'pluginGroups' (position: START_TAG seen ...</profile>\n ? ?-->\n<pluginGroups>... @219:15) ?@ C:\Users\PC\.m2\settings.xml, line 219, column 15

[WARNING]

[INFO] Scanning for projects...

[INFO]

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

[INFO] Building Maven Stub Project (No POM) 1

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

[INFO]

[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>

[INFO]

[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<

[INFO]

[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom ---

Downloading: http://uk.maven.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar

Downloading: http://uk.maven.org/maven2/org/apache/ant/ant/1.8.1/ant-1.8.1.jar

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 20:18 min

[INFO] Finished at: 2017-02-07T14:58:42+08:00

[INFO] Final Memory: 12M/155M

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

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:2.4 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.groovy:groovy:jar:1.8.3, org.apache.ant:ant:jar:1.8.1: Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3 from/to UK (http://uk.maven.org/maven2): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from UK failed: Premature end of Content-Length delimited message body (expected: 5522507; received: 851616 -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


正在回答

2 回答

重新下載配置一下maven'試試

0 回復 有任何疑惑可以回復我~

嗯。。是那個鏡像的原因,換成阿里的就沒問題

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Spring MVC起步
  • 參與學習       195952    人
  • 解答問題       609    個

Java中Spring MVC框架入門教程,快來看最易用的MVC框架

進入課程

等了好久maven還是報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號