You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 2018-09-27, OpenJDK does not trust Amazon Trust Services Root CA, and as a result Maven is not able to contact oss.sonatype.org.
It's necessary to add the Amazon CA to your cacerts file. The Linux/macOS way of doing this is:
cd /tmp
# Download amazon trust services root ca cert
wget https://www.amazontrust.com/repository/SFSRootCAG2.cer
# Go to JDK security foldercd /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/lib/security
# Add Amazon CA to the local CA store# password for cacerts is "changeit"
sudo keytool -importcert -alias aws-starfield-technologies -keystore cacerts -file /tmp/SFSRootCAG2.cer