PROBLEM:
[ERROR] Failed to execute goal on project ***:
Could not resolve dependencies for project ***:
Failed to collect dependencies at ***
Failed to read artifact descriptor for ***
Could not transfer artifact *** sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
SOLUTION:
Create folder c:\Users\YOUR_NAME\certs\
Put keys *.cer and certs in it
Run:
mvn -Djavax.net.ssl.trustStore="c:\Users\YOUR_NAME\certs\cacerts" -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true clean install
Tuesday, June 6, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment