尝试连接Nexus Maven代理存储库时出现此错误,但Nexus正在通过具有自签名证书的HTTPS运行。
在这种情况下,如何在Gradle 4.5中绕过SSL验证?
sun.security.validator.validatorexception pkix path building failed
sun.security.provider.certpath.suncertpathbuilderexception:
unable to find valid certification path to requested target
答案 0 :(得分:0)
它在gradle.properties下面对我有用
systemProp.javax.net.ssl.trustStore=$JAVA_HOME//jre//lib//security//cacerts
systemProp.javax.net.ssl.trustStorePassword=changeit