Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp-1

办法1:

eclipse创建maven工程报错Couldnotresolvearchetypeorg.apache.maven.archetypes解决http://canann.iteye.com/blog/1860856

错误:

Couldnotresolvearchetypeorg.apache.maven.archetypes:maven-archetype-webapp-1.0.jar:RELEASEfromanyoftheconfiguredrepositories.

Couldnotresolveartifact

Missingorg.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,或者http://www.java2s.com/Code/JarDownload/maven-archetype/maven-archetype-webapp-1.0.jar.zip

下载最新版maven-archetype-webapp-1.0.jar

第2步.cmd窗口执行mvninstall:install-file-DgroupId=org.apache.maven.archetypes-DartifactId=maven-archetype-webapp-Dversion=1.0-Dpackaging=jar-Dfile=/mnt/D/DevTools/jar_to_local_maven/maven-archetype-webapp-1.0.jar,记得打开setting.xml的代理ssh代理,才能下载其他依赖.

红字是你jar包放在的位置

办法2:

Ihadthesameproblem.Ifixeditbyaddingthemavenarchetypecatalogtoeclipse.Stepsareprovidedbelow:

OpenWindow>Preferences

OpenMaven>Archetypes

Click'AddRemoteCatalog'andaddthefollowing:

CatalogFile:http://repo1.maven.org/maven2/archetype-catalog.xml

Description:mavencatalog

相关推荐