eclipse 配置Maven问题解决办法:新建maven工程时报错:Could not resolve archetype org.apache.maven.archetypes .

来源:互联网 发布:mysql的日期和时间函数 编辑:程序博客网 时间:2024/05/17 13:06

问题描述:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.

错误如图:



解决办法:

在Eclipse Maven配置中添加新的Catalog配置:

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

     如图:



接下来在使用刚添加的catalog创建web工程(注意:另外,在选择刚添加的那个catalog的时候稍等一下,或者多切换几次,内容就有了

      

至此就可以成功新建maven项目了!
0 0