Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the c

一、问题错误描述:

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

二、解决方案

     

解决方案:

1. 在Eclipse Maven配置中添加新的Catalog配置:

如图所示:

空白内容  其实一直在后台下载 我们没看出来 要耐心等待!!!

2. 也可以下载到本地,然后再添加,这样比较快(推荐)

可以从这个地址下载 https://download.csdn.net/download/afgasdg/10534938

3.从http://maven.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0-alpha-4/下载最新版maven-archetype-webapp-1.0.jar

下载下来的archetype-webapp-1.0-alpha-4.jar 重命名成  archetype-webapp-1.0.jar 放到maven文件夹下的lib目录下,

进入那个目录,然后在控制台下我重新输入:

mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-webapp -Dversion=1.0 -Dpackaging=jar -Dfile=maven-archetype-webapp-1.0.jar

猜你喜欢

转载自blog.csdn.net/huawuque004/article/details/81408662