Maven Artifactory 跳过 ssl 认证
Maven Artifactory skip ssl certification
我公司以前使用 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://....
为 https://... 使用优先级为 0.0 的连接器 BasicRepositoryConnector
,用户名=xxx,密码=***
Failed to read artifact descriptor Validator PKIX path building failed
SunCertPathBuilderException unable to find valid certification path to
request target
我就是这样解决的。
jfrog KB
如果它是较旧的 Artifactory 6.x,它使用的是外部 JVM,您可以使用
找到已启用的
/usr/sbin/alternatives --config java
如果版本是7.x。 JDK 捆绑在 $JF_PRODUCT_HOME/app/third-party/java
中
通过知识库文章中给出的 keytool 命令导入您的根证书
我公司以前使用 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://....
为 https://... 使用优先级为 0.0 的连接器 BasicRepositoryConnector
,用户名=xxx,密码=***
Failed to read artifact descriptor Validator PKIX path building failed SunCertPathBuilderException unable to find valid certification path to request target
我就是这样解决的。 jfrog KB
如果它是较旧的 Artifactory 6.x,它使用的是外部 JVM,您可以使用
找到已启用的/usr/sbin/alternatives --config java
如果版本是7.x。 JDK 捆绑在 $JF_PRODUCT_HOME/app/third-party/java
中
通过知识库文章中给出的 keytool 命令导入您的根证书