执行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
解决了,xml里面的镜像换成阿里的就好了,不用uk的
求大家帮帮忙,是不是镜像问题?