MyEclipse10使用Maven创建项目时报错 解决方法

一、问题描述:
        使用MyEclipse10自带的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)

二、解决方法
1、在MyEclipse Maven配置中添加新的Catalog配置:
http://repo1.maven.org/maven2/archetype-catalog.xml
2、接下来在使用刚添加的catalog创建web工程

详细过程,参考: http://blog.csdn.net/afgasdg/article/details/12757433

你可能感兴趣的:(MyEclipse)