一、安装

我的Eclipse版本信息:

Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

1、安装svn插件

  • 下载Eclipse SVN插件

  • 点击菜单栏Help > Install New Software...

  • 点击Add...,在弹出框中选择下载的插件路径后点击”OK”

  • 点击Select All后点击Next >

  • 继续选择Next并接受许可协议中的条款

  • 选择’Yes’重启即可

2、安装SVN Connector

在安装完svn插件后直接从svn导入工程,会报错SVN: '0x00400006

SVN: '0x00400006: Validate Repository Location' operation finished with error: Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.
Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.

因此还需安装SVN Connector

  • 点击菜单栏Window->Preferences,选择 Team -> SVN -> SVN Connector

  • 点击Get Connectors...,选择一个Connector,点击Finish

  • 依然是Next >然后选择接受许可协议中的条款,再点击Finish

  • 再次重启

  • 之后就可以直接从SVN导入工程了

二、清除账号信息

  • 删除C:\Users\xxxx(用户名)\AppData\Roaming\Subversion\auth\svn.simple下的文件

此种方式对在eclipse中SVN使用 JavaHL connector 方式 和 TortoiseSVN客户端 有效

  • 删除eclipse\configuration\org.eclipse.core.runtime\.keyring文件

此种方式对在eclipse中SVN使用 SVN Kit 方式有效

其他方式

由于我的eclipse安装目录下的org.eclipse.core.runtime下没有.keyring文件,而且Window>Preferences>Team>SVN中也没有Password Management菜单:

因此需要按如下方式清理:

  • 选择 Window > Preferences > General > Security > Secure Storage 中的 Contents > SVN 菜单,选中要删除的信息后点击Delete

  • 之后按提示重启即可
参考资料: