eclipse 如何完全删除 Subclipse 插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6070424/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:11:16  来源:igfitidea点击:

How to fully delete Subclipse plugin?

eclipsesvnsubclipsesubversive

提问by willjcroz

I am having trouble getting rid of Subclipse from my Eclipse configuration.

我无法从 Eclipse 配置中删除 Subclipse。

I made the decision to switch to Subversive due to the m2eclipse project dropping support for Subclipse.

由于 m2eclipse 项目放弃了对 Subclipse 的支持,我决定切换到 Subversive。

So I uninstalled Subclipse and then installed Subversive using the About Eclipse -> Installation Details -> Uninstall method. Now, when I go to any Team related options/tasks/preferences there are two SVN options available (one for Subversive and one for Subclipse) making life confusing.

所以我卸载了 Subclipse,然后使用 About Eclipse -> Installation Details -> Uninstall 方法安装了 Subversive。现在,当我进入任何与团队相关的选项/任务/首选项时,有两个 SVN 选项可用(一个用于 Subversive,一个用于 Subclipse),这让我的生活变得混乱。

Having grepped the workspace .metadatafolder for the string subclipseI can see that the configuration is still littered with references to 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

All of the projects above are now disconnected from SVN. Obviously some of the references such as usagedata are not important, I am more worried about the XML files though. Is it safe to manually go through and delete all tags/properties related to Subclipse? I feel that approach may be unwise though.

上述所有项目现在都与 SVN 断开连接。显然,一些参考资料(例如使用数据)并不重要,但我更担心 XML 文件。手动检查和删除与 Subclipse 相关的所有标签/属性是否安全?不过,我觉得这种方法可能是不明智的。

Does anyone know of a way to eliminate all traces of Subclipse without losing my workspace? Also any tips on what I might have done wrong? Should I have manually disconnected all of my SVN projects before making the switch to Subversive?

有谁知道一种方法可以在不丢失我的工作空间的情况下消除 Subclipse 的所有痕迹?还有关于我可能做错了什么的任何提示?在切换到 Subversive 之前,我是否应该手动断开所有 SVN 项目的连接?

回答by

I had exactly the same problem. The reason is when you uninstall via eclipse, it doesn't delete the jar files from the plugin folder, the steps I did.

我遇到了完全相同的问题。原因是当你通过 eclipse 卸载时,它不会从插件文件夹中删除 jar 文件,我所做的步骤。

Go to folder eclipse/plugins for avoiding any potential damage (just deleting wrong jars and get errors in other apps) list the jars from subclipse.

转到文件夹 eclipse/plugins 以避免任何潜在的损坏(只是删除错误的 jars 并在其他应用程序中出现错误)列出 subclipse 中的 jars。

$ cd eclipse/plugins
$ ls |grep org.tigris.subversion

and then if it lists the following

然后如果它列出了以下内容

$ 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

Remove them by piping xargs rm to the command

通过将 xargs rm 管道传输到命令来删除它们

$ ls |grep org.tigris.subversion|xargs rm

Restart your eclipse and you'll only see the correct svn version.

重新启动您的 Eclipse,您将只会看到正确的 svn 版本。

PS: the .metadata you display comes from the workspace, it only affects to the projects you got from svn, it won't do any change in eclipse.

PS:您显示的 .metadata 来自工作区,它只影响您从 svn 获得的项目,它不会在 eclipse 中做任何更改。