Maven:java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
时间:2019-10-27 00:58:22
收藏:0
阅读:1729
直接参考前面一篇文章中间介绍的第2种方法即可:Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
再 maven 命令中增加运行参数如下,路径可以改为自己的 JDK 安装路径,笔者的是:C:\cs-softwares\Java\jdk1.8.0_111
-Djavax.net.ssl.trustStore=C:\cs-softwares\Java\jdk1.8.0_111\jre\lib\security\cacerts
-Djavax.net.ssl.trustAnchors=C:\cs-softwares\Java\jdk1.8.0_111\jre\lib\security\cacerts
原文:https://www.cnblogs.com/wpbxin/p/11746343.html
评论(0)