Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart

之前都是命令行创建,今天用eclipse装m2eclipse的时候装完后创建项目的时候报错:

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


解决方式:

  1.从http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/  下载最新版maven-archetype-quickstart-1.0.jar
   2.命令行到下载目录下执行mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart -Dversion=1.0 -Dpackaging=jar -Dfile=maven-archetype-quickstart-1.0.jar

你可能感兴趣的:(apache,apache,maven,maven,ArcheType,repositories)