执行mvn archetype:generate -DgroupId=itanken-arthur -DartifactId=spring-mvc-study -DarchetypeArtifactId=maven-archetype-webapp一直报错,

来源:3-4 用Maven创建项目

慕粉1618118010

2017-08-25 19:02

执行mvn archetype:generate -DgroupId=itanken-arthur -DartifactId=spring-mvc-study -DarchetypeArtifactId=maven-archetype-webapp一直报错,

删除maven-archetype-plugin这个文件夹也没用

错误信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3

.0.1:generate (default-cli) on project standalone-pom: Execution default-cli of

goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: Plug

in org.apache.maven.plugins:maven-archetype-plugin:3.0.1 or one of its dependenc

ies could not be resolved: The following artifacts could not be resolved: org.ap

ache.maven.archetype:archetype-catalog:jar:3.0.1, net.sourceforge.jchardet:jchar

det:jar:1.0, org.codehaus.plexus:plexus-component-annotations:jar:1.6, xml-apis:

xml-apis:jar:1.0.b2, org.apache.maven:maven-settings-builder:jar:3.0, commons-la

ng:commons-lang:jar:2.4, org.codehaus.groovy:groovy:jar:1.8.3, asm:asm-commons:j

ar:3.2, asm:asm-util:jar:3.2, asm:asm-analysis:jar:3.2, asm:asm-tree:jar:3.2, or

g.sonatype.sisu:sisu-inject-plexus:jar:1.4.2: Could not transfer artifact org.ap

ache.maven.archetype:archetype-catalog:jar:3.0.1 from/to UK (http://uk.maven.org

/maven2): Access denied to: http://uk.maven.org/maven2/org/apache/maven/archetyp

e/archetype-catalog/3.0.1/archetype-catalog-3.0.1.jar , ReasonPhrase:Forbidden.

-> [Help 1]

[ERROR]

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

ch.

[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 rea

d the following articles:

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

onException


写回答 关注

2回答

  • 慕粉1618118010
    2017-08-25 19:12:11

    解决了,xml里面的镜像换成阿里的就好了,不用uk的

  • 慕粉1618118010
    2017-08-25 19:03:14

    求大家帮帮忙,是不是镜像问题?

Spring MVC起步

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

195972 学习 · 572 问题

查看课程

相似问题