Why am I getting “Received fatal alert: protocol_version” or “peer not authenticated” from Maven Central?
问题 I'm getting the below errors when connecting to Maven Central / https://repo1.maven.org after June 18th 2018. Received fatal alert: protocol_version or Received fatal alert: peer not authenticated 回答1: Solution 1: configure Java 7 It is need to enable TLS 1.2 protocol with Java property in the command line mvn -Dhttps.protocols=TLSv1.2 install install is just an example of a goal The same error for ant can be solved by this way java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher