码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse创建Maven时提示错误could not resolve archetype

时间:2016-11-23 22:28:41      阅读:338      评论:0      收藏:0      [点我收藏+]

标签:没有   net   htm   aging   group   csdn   quick   pid   修改   

  今天用Eclipse创建Maven多模块项目的时候提示错误:

  could not resolve archetype
  ******release from any of the configured repositories

  这个问题网上主要是两个解决方案:

  1.是修改setting.xml文件

    详情请见:http://www.cnblogs.com/dingyingsi/p/3616802.html

  2.是添加新的Catalog配置

    详情请见:http://blog.csdn.net/afgasdg/article/details/12757433/

  

  但是,这两种方法都没有解决我的问题。我用到的是第三种:

  首先,下载maven-archetype-quickstart-1.1.jar;

  然后,安装上面的jar包,命令如下:

    mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-site-simple -Dversion=1.1 -Dpackaging=jar -Dfile=maven-archetype-site-simple-1.1.jar

  最后,重启Eclipse就好了。

Eclipse创建Maven时提示错误could not resolve archetype

标签:没有   net   htm   aging   group   csdn   quick   pid   修改   

原文地址:http://www.cnblogs.com/aston/p/6095192.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!