您的位置:首页 > 编程语言 > Java开发

MyEclipse中创建maven项目时: Could not resolve archetype

2017-04-22 16:58 537 查看
       今天用maven创建项目时遇到了Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.这个错误,在网上找了一圈,终于解决了。 

    在eclipse中window-->preference-->maven->archetypes页面下点击“Add Remote Catalog”,在弹出框中“Catalog File”中输入 的链接  (http://repo1.maven.org/maven2/archetype-catalog.xml ),Description处可以根据自己的喜好填写;再次新建maven项目,在catalog的下拉选择框中选择刚才新建的Description处的名称即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐