maven下载CDH相关jar包报javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

尝试使用浏览器访问CDH仓库,可以正常访问,但是在MyEclipse中下载maven依赖时,一直报Remote host closed connection during handshake,从网上搜的答案都是说原因是网络不好,需要多尝试几次,但是尝试了好多次也还是一样的结果。于是写程序使用httpclient尝试能不能访问,果然,使用httpclient访问也会报同样的错误。

于是网络搜索过程中看到了这篇文章:《javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake 痛苦解决之旅》
看着我的现象跟这位仁兄很相似,于是乎下载了个jdk-8u202-windows-x64.exe,安装后重新编译,果然可以成功了!

发布了118 篇原创文章 · 获赞 558 · 访问量 50万+

猜你喜欢

转载自blog.csdn.net/yuan1164345228/article/details/104865003