Eclipse安装svn插件三种方式
本人使用第一种方式安装成功,第二种安装的时候没有成功,第三种没有尝试,所以推荐第一种安装方式
1.在线安装:
(1).点击 Help --> Install New Software...
(2).在弹出的窗口中点击add按钮,输入Name(任意)和Location(插件的URL),点击OK
地址分别是:
http://subclipse.tigris.org/update_1.6.x
http://subclipse.tigris.org/update_1.8.x (支持的是Subversion 1.7.x)
(3).勾选出现的插件内容,一步步安装即可。
注意:
安装过程中假如报下面错误:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: org.eclipse.update.feature,edu.umd.cs.findbugs.plugin.eclipse,3.0.1.20150306-5afe4d1.
MD5 hash is not as expected. Expected: 700c2058d1720a42563e1541991f3b7f and found 3973f280b94a613552621cb99ad8ff0a.
就在安装的时候,把“Contact all update sites during install to find required software”这个勾去掉,别选他试下。
2.离线安装:
(1).下载需要的插件包:插件地址,包里会有"plugins"和"features"两个文件夹
(2).找到eclipse目录下"plugins"和"features"文件夹,将下载好的的svn对应名称文件夹下的内容复制到eclipse的同名文件夹中
(3).通过clean重启Eclipse(方式:打开cmd,进入eclipse安装目录,执行eclipse.exe -clean)
3.link方式:
(1).下载subeclipse插件
(2).在任意盘符下新建文件夹Plugins,在里面新建文件夹subclipse,点击进入,将下载好的subclipse压缩包解压在subclipse文件夹中
(3).进入eclipse安装目录,创建links文件夹,在文件夹中创建subclipse.link文件
(4).在subclipse.link文件中输入路径地址:path=D:\\Plugins\\subclipse
(5).通过clean重启Eclipse(方式:打开cmd,进入eclipse安装目录,执行eclipse.exe -clean)
注意:
(1).link文件名,插件所在的文件夹名,path路径名,三者必须一致!
(2).如果想暂时不启动插件:只需把link文件删除,或者将path路径改为非插件所在路径即可