天天看点

SBT导入依赖时出现javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

参考链接:

https://stackoverflow.com/questions/38203971/javax-net-ssl-sslhandshakeexception-received-fatal-alert-handshake-failure

该问题在学习rasterfoundry项目时,无法访问

"https://repo.locationtech.org/content/groups/releases",
"https://repo.locationtech.org/content/groups/snapshots"      

导致无法下载geotrellis依赖包。

据说这是JDK的bug。原因是它无法解密256位加密。官网也出了修复包

Java 7:从下面的链接下载jar,并将其添加到{JAVA_HOME} / jre / lib / security  

http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

Java 8:从下面的链接下载jar并添加到{JAVA_HOME} / jre / lib /security 

http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html