-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling under OpenJDK 10
Peter edited this page Sep 27, 2018
·
1 revision
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 folder
cd /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