Thanks for the help daniel.

For anyone with the same issue.

Step 1) Try to run the following:
mvn -X -Djavax.net.debug=ssl,handshake clean install
Scroll through the log and find where the SSL handshake fails and why.

Step 2) 
Go to: https://repo.jenkins-ci.org/public/ and download the certificate

Step 3) enter the following command
keytool -list -keystore "$JAVA_HOME\jre\lib\security\cacerts"
Check to see if the SHA in the certificate matches any of the SHA in the 
list provided by the above command, if it does NOT. Then you have to import 
it.

Step 4) Import the certificate
keytool -import -noprompt -trustcacerts -alias repojenkins -file 
"C:\Users\username\Downloads\repojenkins-ciorg.crt" -keystore 
"$JAVA_HOME\jre\lib\security\cacerts"
It may ask you for a password, in which case the default is changeit

Step 5) Check to make sure your certificate was imported properly
keytool -list -keystore "$JAVA_HOME\jre\lib\security\cacerts" -alias 
repojenkins

Step 6) [OPTIONAL] Change your keystore password
keytool -storepasswd -new newpassword -keystore 
"$JAVA_HOME\jre\lib\security\cacerts" -storepass changeit

Step 7) Re-run
mvn clean install
Your project should now build properly.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e3cdd2ac-0714-4cc5-a9ef-f6f3d2f7c16a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to