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

时间:2014-04-08 13:06:21   收藏:0   阅读:665

    使用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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!