【备忘】maven跳过ssl验证

由于公司网络策略设置原因,配置apache的nexus下载flink-doris-collector依赖报错:

[ERROR] Failed to execute goal on project demo: Could not resolve dependencies for project com.tianzy.demo:demo:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.apache.doris:dor
is-flink-connector:jar:1.11.6-2.12-1.0.2: Failed to read artifact descriptor for org.apache.doris:doris-flink-connector:jar:1.11.6-2.12-1.0.2: Could not transfer artifact org.apache.do
ris:doris-flink-connector:pom:1.11.6-2.12-1.0.2 from/to yingzimaven (https://repository.apache.org/content/repositories/staging/): sun.security.validator.ValidatorException: PKIX path
building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

核心原因就在unable to find valid certification path这句,尝试添加jvm参数,跳过ssl验证:

mavn clean package -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

问题得到解决

idea设置:
【备忘】maven跳过ssl验证_第1张图片

参考链接:https://blog.csdn.net/qq_39326472/article/details/104405691

你可能感兴趣的:(备忘,azkaban,本地调试,keepalived)