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

[color=red][b]办法1:[/b][/color]
eclipse创建maven工程报错 Could not resolve archetype org.apache.maven.archetypes 解决 [url]http://canann.iteye.com/blog/1860856[/url]
错误:
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步.从[url]http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetypes/maven-archetype-webapp-1.0.jar[/url], 或者 [url]http://www.java2s.com/Code/JarDownload/maven-archetype/maven-archetype-webapp-1.0.jar.zip[/url]
下载最新版maven-archetype-webapp-1.0.jar
第2步.cmd窗口执行[color=darkblue]mvn install: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[/color], [color=red]记得打开setting.xml的代理ssh代理,才能下载其他依赖.[/color]
红字是你jar包放在的位置


[b][color=red]办法2:[/color][/b]
I had the same problem. I fixed it by adding the maven archetype catalog to eclipse. Steps are provided below:

Open Window > Preferences
Open Maven > Archetypes
Click 'Add Remote Catalog' and add the following:
Catalog File: [url]http://repo1.maven.org/maven2/archetype-catalog.xml[/url]
Description: [color=darkblue]maven catalog[/color]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值