本文主要是介绍PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天给项目打包出现这个异常,maven-deploy失败了,所有的客户机都是异常报错,百度说是时钟不一致导致的
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project tbm-api: Failed to retrieve remote metadata com.threebody:tbm-api:1.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.gildata.threebody:tbm-api:1.0.0-SNAPSHOT/maven-metadata.xml from/to snapshots (https://repo.*****.com:443/artifactory/libs-snapshot): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed: NotAfter: Sat Jan 23 07:59:59 CST 2021 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
1、开关机;
2、正常修改恢复这个代码,删除之后恢复原样打包-正常,然后重新修改-提交
【开发提交代码】另外一种办法也是有效的:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
原因是:
Checksum validation failed, expected 14386387e9f3b3eb8cc2e9e0c00caf1ec7ea7015 but is f8996611e54a2a9aa90dfd610d27135f522a75b3 from snapshots for https://repo.***com:443/artifactory/libs-snapshot/com/***/threebody/tbm-api/maven-metadata.xml 目前这个忽略了是不是服务器上做了什么变动?是用的docker+jekins还是什么呢?
【配管配置】
需要配管设置jar的有效期,更新一下仓库设置就好了!
这篇关于PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!