https://blog.csdn.net/u013553529/article/details/82895226
在 maven 编译的时候,出现证书校验错误,部分log如下:
mvn -Dmaven.wagon.http.ssl.insecure=true package
★ 方法2:将证书添加到 cacerts 中
环境:Windows。
cacerts包含了很多CA证书,位置在Java的安装目录: 『Java\jdk1.8.0_65\jre\lib\security\cacerts』。
执行此命令会提示你是否信任此证书,输入yes,回车。然后证书就加入cacerts中了。部分log如下: