Eclipse整合Maven后,创建项目时报错:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-weba

使用Eclipse整合Maven后,创建项目时报错: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:RELEASEFailed 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. 在Eclipse Maven配置中添加新的Catalog配置:

  • http://repo1.maven.org/maven2/archetype-catalog.xml

2. 也可以下载到本地,然后再添加,这样比较快(下载链接

本地文件安装如图(使用网络文件,则选择Add Remote Catalog,-->Catalog File:http://repo1.maven.org/maven2/archetype-catalog.xml):

Eclipse整合Maven后,创建项目时报错:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-weba_第1张图片

 

 

你可能感兴趣的:(maven)