从 Eclipse 中卸载和删除插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5003653/
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-19 15:47:05  来源:igfitidea点击:

Uninstalling and Deleting plug-ins from eclipse

eclipseeclipse-plugin

提问by Abhishek Choudhary

I am uninstalling a plugin named X from eclipse uninstall option. Now to make a clear approach I went to the eclipse plugins directory and delete the plugin jar file from there. Now I am trying to reinstall the same plug-in and eclipse prompts an error saying

我正在从 eclipse 卸载选项中卸载一个名为 X 的插件。现在为了明确方法,我转到 eclipse plugins 目录并从那里删除插件 jar 文件。现在我正在尝试重新安装相同的插件并且eclipse提示错误说

An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase. session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=). Error reading signed content. The file "D:\Testing\eclipse-jee-helios-SR1-win32\eclipse\plugins\x_1.1.3.jar" does not exist

在 org.eclipse.equinox.internal.p2.engine.phases.CheckTrust 阶段发生错误。会话上下文是:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust,operand=,action=)。读取签名内容时出错。文件“D:\Testing\eclipse-jee-helios-SR1-win32\eclipse\plugins\x_1.1.3.jar”不存在

Now how to resolve the above issue

现在如何解决上述问题

采纳答案by myusuf3

You should never delete plugins you installed using the Eclipse installer under Help>Install New Software. Now there is directory used to drop in plugins as jars, which I am assuming you used, if so deleting it would result in the desired behavior assuming you shut down eclipse before hand. If not then you need clean your configuration area. In the future when removing go to Help>Install New Software>Already Installed software, there should be a remove once your there. :)

永远不要删除使用 Eclipse 安装程序在 Help>Install New Software 下安装的插件。现在有一个目录用于将插件作为 jars 放入,我假设你使用过它,如果删除它会导致所需的行为,假设你事先关闭了 eclipse。如果没有,那么您需要清理配置区域。将来删除时,请转到“帮助”>“安装新软件”>“已安装的软件”,一旦您在那里就应该删除。:)

Goodluck.

祝你好运。

回答by maximilianus

I have similar issue. I deleted those plugins related files from eclipse/plugins and eclipse/features directory. The reason why I did that is because I have already uninstalled the plugins from eclipse but the files remain in both directories. I solved it by editing the eclipse/artifact.xml. I search all the artifacts with the id of my plugins and remove them. And I am able to reinstall the plugins again :)

我有类似的问题。我从 eclipse/plugins 和 eclipse/features 目录中删除了那些与插件相关的文件。我这样做的原因是因为我已经从 eclipse 中卸载了插件,但文件仍保留在两个目录中。我通过编辑 eclipse/artifact.xml 解决了它。我使用插件的 id 搜索所有工件并删除它们。我可以再次重新安装插件:)

回答by Sanjay Jain

As per eclipse documentation

根据日食文档

You should not remove plug-ins from Eclipse. Plug-ins should be installed as features using the Update Manager. The same Update Manager can be used to disable plug-ins by disabling the feature they belong to. Run Help > About Eclipse > Installation Details, select the software you no longer want and click Uninstall. (On Macintosh it is Eclipse > About Eclipse > Installation Details.) In older versions, you might need to Run Help > Software Updates > Manage Configuration..., select the feature of interest, and disable it with the task shown in the right window.

When a feature is disabled, all its plug-ins will be disabled also. They are still available on disk, and they can be enabled at any time in the future.

To physically remove the feature and its plug-ins, you will have to manually remove the feature from the eclipse/features directory and its plug-ins from the eclipse/plugins directory. We advise extreme caution here. Remove the wrong ones, and you may have quite some trouble restoring your Eclipse to a stable state. Unless you care a lot about hard disk use, we recommend leaving the plug-ins where they are.

Note that when manually removing plugins as described above, some metadata is still cached by Eclipse, which can lead to problems later on. Running Eclipse with the -clean option can help with that, as it causes Eclipse to clean the cached metadata

您不应从 Eclipse 中删除插件。插件应作为使用更新管理器的功能安装。通过禁用插件所属的功能,可以使用相同的更新管理器来禁用插件。运行 Help > About Eclipse > Installation Details,选择不再需要的软件,然后单击 Uninstall。(在 Macintosh 上,它是 Eclipse > About Eclipse > Installation Details。)在旧版本中,您可能需要运行 Help > Software Updates > Manage Configuration...,选择感兴趣的功能,然后使用右侧显示的任务禁用它窗户。

当一个功能被禁用时,它的所有插件也将被禁用。它们在磁盘上仍然可用,并且可以在将来的任何时间启用。

要以物理方式删除该功能部件及其插件,您必须手动从 eclipse/features 目录中删除该功能部件及其从 eclipse/plugins 目录中的插件。我们建议在此格外小心。删除错误的,您可能会在将 Eclipse 恢复到稳定状态时遇到一些麻烦。除非您非常关心硬盘的使用,否则我们建议您将插件留在原处。

请注意,当如上所述手动删除插件时,Eclipse 仍会缓存一些元数据,这可能会导致稍后出现问题。使用 -clean 选项运行 Eclipse 可以帮助解决这个问题,因为它会导致 Eclipse 清理缓存的元数据

回答by Rohit Mandiwal

  1. Run eclipse
  2. Rename eclipse exe to eclipse.exe.back
  3. Run updates
  4. Updates executed successfully
  1. 运行日食
  2. 将 eclipse exe 重命名为 eclipse.exe.back
  3. 运行更新
  4. 更新成功执行

回答by maxmelbin

Thanks .. I am not sure what action actually fixed the exact problem i had.
I removed the plugin related files from plugins and features folder, removed entries from the artifact.xml file and opened eclipse with -clean option.

谢谢.. 我不确定什么行动实际上解决了我遇到的确切问题。
我从 plugins 和 features 文件夹中删除了与插件相关的文件,从 artifact.xml 文件中删除了条目,并使用 -clean 选项打开了 eclipse。