【发布时间】:2021-05-07 04:59:02
【问题描述】:
选择 File->new->other->Maven Project-> maven-archetype-quickstart version 1.1 后,我尝试在我的 Eclipse IDE 中创建 Maven 项目,但出现此错误
无法从任何已配置的存储库解析原型 org.apache.maven.archtypes:maven-archtype-quickstart1:1。
我尝试了很多方法,但错误仍然存在。我还卸载了eclipse并安装了几次,这个错误仍然存在。有人可以在这种情况下帮助我吗?
以下是我的错误跟踪
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 https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
【问题讨论】:
-
可能是网络/防火墙问题。
-
您使用哪个 JDK 版本? ` sun.security.provider.certpath.SunCertPathBuilderException: un? ?
-
JDK版本为JDK 1.8
标签: maven maven-2 maven-3 maven-plugin maven-archetype