首页 > Web开发 > 详细

Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap

时间:2014-04-08 13:06:21      阅读:665      评论:0      收藏:0      [点我收藏+]

    使用Eclipse自带的Maven插件创建Web项目时报错:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\liujunguang\.m2\repository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\liujunguang\.m2\repository)

错误如图:

bubuko.com,布布扣

bubuko.com,布布扣

 

解决方案:

在Eclipse Maven配置中添加新的Catalog配置:

 
     如图:bubuko.com,布布扣

 

 

接下来在使用刚添加的catalog创建web工程

      bubuko.com,布布扣

    这个时候就可以看到Eclipse联网下载了:

     bubuko.com,布布扣
这个时候看一下是不是创建成功了

 
转自:http://blog.csdn.net/afgasdg/article/details/12757433

Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap,布布扣,bubuko.com

Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap

原文:http://www.cnblogs.com/olmlo/p/3650940.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!