maven - 在 Jenkins 中跳过 Maven 的 ssl 证书检查
问题描述
我正在尝试集成 Jenkins maven 插件以从本地连接服务器中提取依赖项。当构建开始时,我最终出现以下错误
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
我试图通过将以下 wagon ssl 属性提供为 MAVEN_OPTS 来禁用它:
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
我还尝试将证书添加到 JVM 的 javahome/lib/security/cacerts。使用钥匙工具
还有什么我应该尝试禁用自签名证书检查的其他事情。
解决方案
推荐阅读
- azure - 如何在运行时用天蓝色连接字符串覆盖本地连接字符串?
- excel - 表/范围的电源查询
- c# - XMLSerializer - UTF-8 与 UTF-16 代码的问题
- android - 莱特币的 BitcoinJ 问题。Litecoin 可以使用哪个依赖项?
- javascript - 使用threejs动态更新平面/立方体顶点 - 更新矩阵时出现问题
- angular-material-5 - 如何使用 Angular 材质创建卡片?
- java - 如何在 Spring-Boot 中创建 DefaultMessageListenerContainer?
- swift3 - Swift 3 - 遍历泛型集合
- python - 当我通过 pythonw.exe 运行 python 程序时获取用户输入
- node.js - MySQL8.0 xdevapi node.js 不返回键,只返回值