ERROR Maven在Eclipse下 Could not resolve artifact org.apache.maven.archetype

Eclipse用2018.12月发行版本,自带Maven支持

爬坑

创建Maven项目失败

Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0

解决方案:

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就可以了

 详情请看: 原文链接

 

 

posted @ 2019-02-28 18:53  JokerJason  阅读(574)  评论(0)    收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things