maven报Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart错

水深无声 2023-02-14 11:00 260阅读 0赞

错误:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1

解决办法:
1.手动去下载maven-archetype-quickstart-1.1.jar

2.修改maven的settings.xml的镜像地址

  1. <mirror>
  2. <id>alimaven</id>
  3. <name>aliyun maven</name>
  4. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  5. <mirrorOf>central</mirrorOf>
  6. </mirror>
  7. <mirror>
  8. <id>central</id>
  9. <name>Maven Repository Switchboard</name>
  10. <url>http://repo1.maven.org/maven2/</url>
  11. <mirrorOf>central</mirrorOf>
  12. </mirror>
  13. <mirror>
  14. <id>repo2</id>
  15. <mirrorOf>central</mirrorOf>
  16. <name>Human Readable Name for this Mirror.</name>
  17. <url>http://repo2.maven.org/maven2/</url>
  18. </mirror>
  19. <mirror>
  20. <id>ibiblio</id>
  21. <mirrorOf>central</mirrorOf>
  22. <name>Human Readable Name for this Mirror.</name>
  23. <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
  24. </mirror>
  25. <mirror>
  26. <id>jboss-public-repository-group</id>
  27. <mirrorOf>central</mirrorOf>
  28. <name>JBoss Public Repository Group</name>
  29. <url>http://repository.jboss.org/nexus/content/groups/public</url>
  30. </mirror>
  31. <!-- 中央仓库在中国的镜像 -->
  32. <mirror>
  33. <id>maven.net.cn</id>
  34. <name>oneof the central mirrors in china</name>
  35. <url>http://maven.net.cn/content/groups/public/</url>
  36. <mirrorOf>central</mirrorOf>
  37. </mirror>

发表评论

表情:
评论列表 (有 0 条评论,260人围观)

还没有评论,来说两句吧...

相关阅读