我是靠谱客的博主 阔达小丸子,这篇文章主要介绍关于在eclipse上创建maven项目时出错Could not resolve archetype,现在分享给大家,希望可以做个参考。

当使用网上的两种方法都还不能解决问题的时候。先考虑一下,你的mavenapache-maven-3.5.4confsettings.xml 中有没有配置镜像。如果没有去配置一个阿里云镜像,

 <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
     <!-- 阿里云镜像-->
     <mirror>
 <id>alimaven</id>
 <name>aliyun maven</name>
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
 <mirrorOf>central</mirrorOf>
</mirror> 

  </mirrors>

我配置镜像之后,问题就解决了

最后

以上就是阔达小丸子最近收集整理的关于关于在eclipse上创建maven项目时出错Could not resolve archetype的全部内容,更多相关关于在eclipse上创建maven项目时出错Could内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(84)

评论列表共有 0 条评论

立即
投稿
返回
顶部