1.下载http://repo1.maven.org/maven2/archetype-catalog.xmlweb
经过eclipse下载和网页下载我这里都比较慢,最后用的迅雷下载windows
2.将本地xml文件配置到eclipse中tomcat
依次打开windows--preferences--maven--archetypes--add local catalogapp
3.选择下载的xml文件,description随便填写,例如maven_catalogeclipse
4.建立项目,这一步时,catalog选择本身导入的,里面东西太多经过filter过滤一下,选择maven-archetype-webappwebapp
而后就能够了maven
5.新建的项目还有报错,须要配置一下ui
首先右键项目,选择properties,如图修改,保存退出server
6.tomcat配置xml
右键jre库,build path-- configure build path
add library
选择server runtime,next
选择版本,finish
而后就ok了
文件夹就都齐全了