首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

Eclipse中创办maven报错Could not resolve archetype org.apache.maven.archetypes

2013-07-09 
Eclipse中创建maven报错Could not resolve archetype org.apache.maven.archetypes错误:Could not resolve

Eclipse中创建maven报错Could not resolve archetype org.apache.maven.archetypes

错误:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
? Could not resolve artifact
??? Missing org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE

?

解决思路:在本地库中装载maven-archetype-quickstart

1.从http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/?
下载最新版maven-archetype-quickstart-1.1.jar

2.cmd窗口执行mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart -Dversion=1.1 -Dpackaging=jar -Dfile=E:\maven-archetype-quickstart-1.1.jar

E:为jar文件在本机存放的位置

热点排行