Eclipse maven建立web項目報錯Could not resolve archetype

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了

文件夾就都齊全了

相關文章
相關標籤/搜索