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

错误:

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

 

解决思路:在本地库中装载maven-archetype-webapp-1.0.jar

第1步.从http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetypes/maven-archetype-webapp-1.0.jar/
下载最新版maven-archetype-webapp-1.0.jar

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

红字是你jar包放在的位置

你可能感兴趣的:(ArcheType)