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

通过eclipse下载和网页下载我这里都比较慢,最后用的迅雷下载

2.将本地xml文件配置到eclipse中

依次打开windows--preferences--maven--archetypes--add local catalog

 

 Eclipse  maven创建web项目报错Could not resolve archetype

3.选择下载的xml文件,description随便填写,例如maven_catalog

Eclipse  maven创建web项目报错Could not resolve archetype

4.创建项目,这一步时,catalog选择自己导入的,里面东西太多通过filter过滤一下,选择maven-archetype-webapp

Eclipse  maven创建web项目报错Could not resolve archetype

然后就可以了

 Eclipse  maven创建web项目报错Could not resolve archetype

 5.新建的项目还有报错,需要配置一下

首先右键项目,选择properties,如图修改,保存退出

Eclipse  maven创建web项目报错Could not resolve archetype

6.tomcat配置

右键jre库,build path-- configure build path

Eclipse  maven创建web项目报错Could not resolve archetype

add library

Eclipse  maven创建web项目报错Could not resolve archetype

 

选择server runtime,next

Eclipse  maven创建web项目报错Could not resolve archetype

 选择版本,finish

 Eclipse  maven创建web项目报错Could not resolve archetype

然后就ok了

文件夹就都齐全了

相关文章:

  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2021-12-29
  • 2022-12-23
  • 2022-01-16
  • 2021-08-14
  • 2021-04-12
  • 2022-01-18
相关资源
相似解决方案