Cleaning Maven m2e .cache directory -


my maven installation (windows 7 64-bit) has .cache directory 3.5gb! contains m2e directory. (i'm running eclipse 4.3m7 m2e.) surely things inside aren't needed @ present, , don't know stuff is! find no maven documentation of .cache directory online.

so .m2/repository/.cache , .m2/repository/.cache/m2e directories? why have stuff years ago? how dispose of stuff that's not needed anymore?

in contrast other answers, make sure keep .m2/*.xml (your settings) , .m2/repository (not strictly necessary keep, maven have download half internet again).

now, .cache folder: if open eclipse, m2eclipse run job akin "downloading repository indexes". these indexes allow find artifact using m2e's "add dependency" wizard if know (part of) artifact id. needs put downloaded index files somewhere, , according http://dev.eclipse.org/mhonarc/lists/m2e-users/msg02486.html .cache folder go:

also note m2e keeps @ least 3 copies of each repository index. original .gz files downloaded remote repositories. shared lucene instance used optimize time spent processing gz files. , per-workspace lucene indexes. first 2 stored under local repository .cache/m2e directory, last 1 per-workspace.

the lucene stuff they're talking optimized search databases, makes faster m2e search given artifact if enter partial artifact id or group id.

if read http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01708.html correctly should safe remove them:

m2e caches lucene index in 2 places. per-workspace indexes stored under .metadata/.plugins/org.eclipse.m2e.core/nexus , there global cache in ~/.m2/repository/.cache/m2e/${m2e.version}.

try cleaning caches , see if problem goes away.

keep in mind though m2e notice missing folder next time open eclipse, prepared wait while downloads repository indexes again!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -