我无法从Eclipse配置中删除Subclipse。
由于m2eclipse项目放弃了对Subclipse的支持,我决定切换到Subversive。
所以我卸载了Subclipse,然后使用About Eclipse安装了Subversive - >安装细节 - >卸载方法。现在,当我进入任何与Team相关的选项/任务/首选项时,有两个SVN选项可用(一个用于Subversive,一个用于Subclipse),这让生活变得混乱。
为字符串.metadata
创建了工作区subclipse
文件夹,我可以看到配置仍然存在于Subclipse的引用:
$ grep -lir "subclipse" .metadata/
.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload17.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload23.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload21.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload19.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/usagedata.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload22.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload14.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload13.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload20.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload18.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload16.csv
.metadata/.plugins/org.eclipse.epp.usagedata.recording/upload15.csv
.metadata/.plugins/org.eclipse.team.ui/dialog_settings.xml
.metadata/.plugins/org.eclipse.team.ui/syncParticipants.xml
.metadata/.plugins/org.eclipse.pde.core/-213569165961.target/.lazy
.metadata/.plugins/org.eclipse.pde.core/-213569165961.target/.state
.metadata/.plugins/org.eclipse.pde.core/-213569165961.target/.pluginInfo
.metadata/.plugins/org.eclipse.core.resources/.projects/jxse-tutorials/.syncinfo.snap
.metadata/.plugins/org.eclipse.core.resources/.projects/jxse-tutorials/.indexes/properties.index
.metadata/.plugins/org.eclipse.core.resources/.projects/BA_NAT_Traversal/.syncinfo
.metadata/.plugins/org.eclipse.core.resources/.projects/barchart-udt/.syncinfo
.metadata/.plugins/org.eclipse.core.resources/.projects/barchart-udt/.indexes/properties.index
.metadata/.plugins/org.eclipse.core.resources/.projects/netty-benchmark/.syncinfo
.metadata/.plugins/org.eclipse.core.resources/.projects/netty-benchmark/.indexes/properties.index
.metadata/.plugins/org.eclipse.core.resources/.projects/jxta/.syncinfo.snap
.metadata/.plugins/org.eclipse.core.resources/.root/73.tree
.metadata/.plugins/org.eclipse.core.resources/.snap
.metadata/.bak_0.log
以上所有项目现已与SVN断开连接。显然有些参考文献如usagedata并不重要,但我更担心的是XML文件。手动浏览并删除与Subclipse相关的所有标签/属性是否安全?我觉得这种做法可能是不明智的。
有没有人知道如何在不丢失工作空间的情况下消除Subclipse的所有痕迹?关于我可能做错了什么的任何提示?在切换到Subversive之前,我是否应该手动断开所有SVN项目?
答案 0 :(得分:45)
我有完全相同的问题。原因是当您通过eclipse卸载时,它不会从插件文件夹中删除jar文件,这是我所做的步骤。
转到eclipse / plugins文件夹 避免任何潜在的损害(只是删除错误的罐子并在其他应用程序中获取错误)列出来自subclipse的罐子。
$ cd eclipse/plugins
$ ls |grep org.tigris.subversion
然后如果它列出以下
$ ls |grep org.tigris.subversion
org.tigris.subversion.clientadapter_1.6.12.jar org.tigris.subversion.subclipse.doc_1.3.0.jar org.tigris.subversion.subclipse.tools.usage_1.0.1.jar
org.tigris.subversion.clientadapter.javahl_1.6.15.jar org.tigris.subversion.subclipse.graph_1.0.9.jar org.tigris.subversion.subclipse.ui_1.6.17.jar
org.tigris.subversion.subclipse.core_1.6.17.jar org.tigris.subversion.subclipse.mylyn_3.0.0.jar
通过将xargs rm传送到命令
来删除它们$ ls |grep org.tigris.subversion|xargs rm
重新启动你的eclipse,你只会看到正确的svn版本。
PS:你显示的.metadata来自工作区,它只影响你从svn获得的项目,它不会在eclipse中做任何改变。