yixiaoqi00 2015-07-15
一、问题描述:
使用MyEclipse10自带的Maven插件创建Web项目时报错:
Couldnotresolvearchetypeorg.apache.maven.archetypes:maven-archetype-webapp:RELEASEfromanyoftheconfiguredrepositories.
Couldnotresolveartifactorg.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
Failedtoresolveversionfororg.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE:Couldnotfindmetadataorg.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xmlinlocal(C:\Users\liujunguang\.m2\repository)
Failedtoresolveversionfororg.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE:Couldnotfindmetadataorg.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xmlinlocal(C:\Users\liujunguang\.m2\repository)
二、解决方法
1、在MyEclipseMaven配置中添加新的Catalog配置:
http://repo1.maven.org/maven2/archetype-catalog.xml
2、接下来在使用刚添加的catalog创建web工程
详细过程,参考:http://blog.csdn.net/afgasdg/article/details/12757433