Night离
2017-02-07 15:03
一直在报错啊。。。不知道什么原因
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
重新下载配置一下maven'试试
嗯。。是那个镜像的原因,换成阿里的就没问题
Spring MVC起步
195972 学习 · 572 问题
相似问题