Fork me on Gitee

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

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

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

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

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

 

 

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

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

然后就可以了

 

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

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

6.tomcat配置

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

add library

 

选择server runtime,next

 选择版本,finish

 

然后就ok了

文件夹就都齐全了

posted @ 2019-07-02 18:22  MARK+  阅读(935)  评论(0编辑  收藏  举报