Maven新建webapp项目报错Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE

Windows-Preferences

在搜索框输入maven,点击下面的Archetypes--->Add Remote Catalog...

对应输入

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

maven_catalog

然后点击OK

再次创建maven项目,在select an Archetype 的 Catalog下面选择刚刚添加的maven_catalog,等待右下角的进度条加载,同时中间的框框会有内容

选择 maven-archetype-webapp就可以了