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.
Eclipse -- > Window --> Preferences --> maven --> archetype -- >add remote catalog :
在catalog File中填入:
http://repo1.maven.org/maven2/archetype-catalog.xml
Description: 随便填写一个英文名称.
2. 开始新建一个maven project.
在select an Archetype的界面选择刚刚新建的catalog即可.