Eclipse .metadata\.plugins 磁盘空间

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

Eclipse .metadata\.plugins disk space

eclipsepluginsmetadatadiskspaceeclipse-metadata

提问by foobarometer

Eclipse's .metadata/.plugins seems to consume way too much space (235 MB), is there something I can safely throw away and still be happy?

Eclipse 的 .metadata/.plugins 似乎占用了太多空间(235 MB),有什么我可以安全地扔掉而仍然快乐的东西吗?

I archive my source root, and this seems to take away all my space. This is a project with several Java projects.

我归档了我的源根目录,这似乎占用了我所有的空间。这是一个包含多个 Java 项目的项目。

采纳答案by Udo Held

The plugins store your workspace configuration. If you delete them then your workspace may become unusable.

插件存储您的工作区配置。如果您删除它们,则您的工作区可能无法使用。

Depending on your plugins used and what you are doing you can probably delete some of them. Personally I'm regularly cleaning some of the plugins.

根据您使用的插件和您在做什么,您可能会删除其中的一些。我个人会定期清理一些插件。

What I delete:

我删除的内容:

  1. maven repository files/indexes
  2. project indexes
  3. Copies of deployed files to application servers.
  1. Maven 存储库文件/索引
  2. 项目索引
  3. 部署到应用程序服务器的文件副本。

I'd suggest you get a tool like WinDirStatand check, which plugins use up your space and maybe by name e.g. indexyou figure out that this plugin can be safely deleted.

我建议您使用WinDirStat 之类的工具并检查哪些插件占用了您的空间,也许可以通过名称进行检查,例如index您确定可以安全删除此插件。

回答by yurilo

In my case 85% of the workspace is occupied by the m2e plugin indexes. More information on that can be found in thisthread. You can disable it by adjusting plugin configuration parameters as shown on the image bellow: enter image description here

在我的例子中,85% 的工作空间被 m2e 插件索引占用。可以在线程中找到有关此的更多信息。您可以通过调整插件配置参数来禁用它,如下图所示: 在此处输入图片说明

Then you can remove .metadata/.plugins/org.eclipse.m2e.core/nexus directory from your workspace.

然后您可以从您的工作区中删除 .metadata/.plugins/org.eclipse.m2e.core/nexus 目录。

回答by fmucar

Generally web apps are deployed in one of the directories in .metadata and that's generallay the reason of large size

通常,Web 应用程序部署在 .metadata 中的目录之一中,这通常是大尺寸的原因

.metadata\.plugins\org.eclipse.wst.server.core

回答by Francis Upton IV

There is stuff associated with launch configs in .metadata/.plugins/org.eclipse.pde.core/. This can often accumulate a lot and can be safely deleted.

在 .metadata/.plugins/org.eclipse.pde.core/ 中有与启动配置相关的东西。这通常可以积累很多并且可以安全地删除。