首页 > 技术文章 > eclispe 创建maven 项目:Could not resolve archetype org.apache.maven.archetypes

zhanggl 2015-04-25 08:21 原文

昨天新装eclispe 后,创建maven工程后出现

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

网上的解决办法:

http://blog.csdn.net/u011340807/article/details/12649249

http://www.cnblogs.com/quanyongan/archive/2013/04/17/3025971.html

自己的解决办法:

修改了maven 仓库地址: 在maven 的conf目录下setting.xml配置文件中,修改仓库地址

  <localRepository>/path/to/local/repo</localRepository> 修改自己对应的路径。

 另一种错误:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
 解决办法:
 

推荐阅读