eclipse创建maven工程报错 Could not resolve archetype org.apache.maven.archetypes

今天用eclipse创建maven项目时,eclipse报错:

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

下载后将maven-archetype-quickstart-1.1.jar放在d盘根目录下;

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

红字是你jar包放在的位置


原文地址:http://www.cnblogs.com/yixiwenwen/archive/2012/10/26/2740650.html



你可能感兴趣的:(maven,eclipse,maven,jar)