java Maven Artifactory跳过ssl认证
我的公司曾使用Nexus作为存储库,但现在它改为Artifactory。 当我尝试使用maven构建时,即使使用此选项,也会使用所有选项
Dmaven.wagon.http.ssl.insecure=true
Dmaven.wagon.http.ssl.allowall=true
Dmaven.wagon.http.ssl.ignore.validity.dates=true
它因错误而失败
PKIX path building failed unable to find valid certification path to request target
我使用的是Maven版本3.3.9和JAVA_HOME=JDK 1.8.072。使用-X选项运行构建它会记录一些相关信息
使用优先级为-1.0的转运体WagonTransporter
https://....
使用优先级为0.0的连接器BasicRepositoryConnector
https://...用户名为xxx,密码为***
Failed to read artifact descriptor Validator PKIX path building failed SunCertPathBuilderException unable to find valid certification path to request target
# 1 楼答案
我就是这样解决的。 jfrog KB
如果是较旧的人工制品6。x、 它使用的是外部JVM,您可以使用
/usr/sbin/alternations config java
如果版本是7。x、 JDK捆绑在$JF_PRODUCT_HOME/app/third-party/java中
通过KB中给出的keytool命令导入根证书