使用eclipse新建maven项目,按下图所示选择后,报错
报错截图
报错详细信息
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com
附翻译
不能解决原型org.apache.maven.archetypes: maven-archetype-quickstart:从1.1的任何配置存储库。
不能解决工件org.apache.maven.archetypes: maven-archetype-quickstart: pom: 1.1
故障转移org.apache.maven.archetypes: maven-archetype-quickstart: pom: 1.1从http://maven.aliyun.com/nexus/content/groups/public缓存在本地存储库,解决之前不会再尝试的更新间隔alimaven强制运行或更新。原始错误:无法传输工件org.apache.maven.archetypes: maven-archetype-quickstart: pom: 1.1 / nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com
故障转移org.apache.maven.archetypes: maven-archetype-quickstart: pom: 1.1从http://maven.aliyun.com/nexus/content/groups/public缓存在本地存储库,解决之前不会再尝试的更新间隔alimaven强制运行或更新。原始错误:不能怪罪别人
之前也用此选择新建过项目是可以新建的,突然报错,按照下面这篇文章所讲的方法还是没有解决问题
https://www.cnblogs.com/suncoolcat/p/3366080.html
最后将本地仓库中下载的jar包全部删除后在新建项目,项目新建成功。