Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:m
–>
问题描述:
使用Eclipse自带的Maven插件创建Web项目时报错:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\test\.m2\repository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\test\.m2\repository)
在Eclipse Maven配置中添加新的Catalog配置:
- http://repo1.maven.org/maven2/archetype-catalog.xml
接下来在使用刚添加的catalog创建web工程
原文地址:http://blog.csdn.net/afgasdg/article/details/12757433
本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。