为了账号安全,请及时绑定邮箱和手机立即绑定

等了好久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起步
  • 参与学习       195972    人
  • 解答问题       572    个

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

进入课程

等了好久maven还是报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信