首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >mvn : PKIX路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException

mvn : PKIX路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException
EN

Stack Overflow用户
提问于 2017-01-02 12:32:13
回答 2查看 6.1K关注 0票数 2

使用正确的settings.xml文件,但在执行mvn clean命令时出现以下错误:

代码语言:javascript
运行
复制
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myproject 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
-source-plugin/2.2/maven-source-plugin-2.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.290 s
[INFO] Finished at: 2017-01-02T16:16:12+05:30
[INFO] Final Memory: 10M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-source-plugin:2.2 or one of its de
pendencies could not be resolved: Failed to read artifact descriptor for org.apa
che.maven.plugins:maven-source-plugin:jar:2.2: Could not transfer artifact org.a
pache.maven.plugins:maven-source-plugin:pom:2.2 from/to central (https://repo.ma
ven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path bui
lding failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
 to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

导致此错误的问题是什么? sun.security.provider.certpath.SunCertPathBuilderException:PKIX路径

EN

回答 2

Stack Overflow用户

发布于 2017-01-02 14:59:56

https://repo.ma ven.apache.org/maven2公开的证书在您的计算机上无效。也许您已经从Java信任库中删除了证书,或者已经将本地时间更改为将来的日期?

票数 2
EN

Stack Overflow用户

发布于 2018-04-02 07:28:19

您需要将网络的根SSL证书安装到jre cacerts以解决此问题。

您可能会发现执行此任务的详细步骤,here

需要注意的几点

  1. 安装在仙人掌中的证书必须是根证书。
  2. 确保您正在进行更改以更正JRE。
  3. 仙人掌默认密码是转换。
  4. 在系统上安装JDK,并使用捆绑版本将其引用到IDE.Avoid。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41426928

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档