在 Eclispe 中使用 SVN 插件访问 SVN 目录时,可能会遇到 E175002,这个错误包括了 svn 客户端不能正常连接到服务器的各种情况, 查看具体信息,如果是类似:””svn: E175002: handshake alert: unrecognized_name” 的 SSLProtocolException 错误,就是可以是与本地 JDK 有关了。English Version
在 JDK7 以后, 默认使用 SSL 的安全设置与早期的版本有所不同。为解决这个问题,需要在启动 Eclipse 时将 jsse.enableSNIExtension 参数设置为 false。 具体做法:
打开 Eclipse 安装目录中的 eclipse.ini 文件,在文件最后添加
1
| -Djsse.enableSNIExtension=false
|
然后重启 Eclipse ,在访问 svn 服务器就可以了。
完整的 eclispe.init 文件示例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| -startup plugins/org.eclipse.equinox.launcher_1.5.100.v20180827-1352.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.800.v20180827-1352 -product org.eclipse.epp.package.jee.product -showsplash org.eclipse.epp.package.common --launcher.defaultAction openFile --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.8 -Dosgi.instance.area.default=@user.home/eclipse-workspace -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=1.8 -Dosgi.dataAreaRequiresExplicitInit=true -Xms256m -Xmx1024m --add-modules=ALL-SYSTEM -Dfile.encoding=UTF-8 -Djsse.enableSNIExtension=false
|