29

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?

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

M A
  • 71,713
  • 13
  • 134
  • 174
foobarometer
  • 751
  • 1
  • 9
  • 20

5 Answers5

34

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

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

Community
  • 1
  • 1
yurilo
  • 3,079
  • 2
  • 23
  • 14
  • Are there any downsides to disabling Nexus? That is, will any functionality be lost, or will it slow down builds? – Psychonaut Nov 23 '16 at 22:56
7

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.

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

Udo Held
  • 12,314
  • 11
  • 67
  • 93
2

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

.metadata\.plugins\org.eclipse.wst.server.core
fmucar
  • 14,361
  • 2
  • 45
  • 50
0

In my case, The following directory was with big size. .plugins/org.eclipse.jdt.core

shashank joshi
  • 140
  • 1
  • 4
0

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.

Francis Upton IV
  • 19,322
  • 3
  • 53
  • 57