1. 程式人生 > >eclipse新建maven專案失敗Could not resolve archetype

eclipse新建maven專案失敗Could not resolve archetype

昨天晚上在做mapreduce時新建maven專案失敗,到網上找解決方法,最終這個方法可行。這裡轉載記錄一下。
原文作者部落格名 houbin0912。
新建maven專案的時候,報:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
解決方法為
在eclipse maven配置中新增新的Catalog配置:

(在eclipse中window–>preference–>maven–>archetypes頁面點選“add remote catalog”,在彈出框中“catalog file”中輸入該xml配置連結,Description處根據自己的喜好填寫;再次新建maven專案時,在catalog的下拉選擇框中選擇剛剛新建的名稱即可)
我用這個方法解決了問題。
附上源部落格地址:

http://blog.csdn.net/houbin0912/article/details/70198061