On 06/02/2013 2:06 PM, Joachim Durchholz wrote:
Am 06.02.2013 19:03, schrieb Baptiste MATHUS:
Le 6 févr. 2013 18:26, "Joachim Durchholz" <j...@durchholz.org> a écrit :

I have two issues here:
1) The m2e repo is soaking up disk space (which isn't a real issue except
it's slowing down backups)
2) The m2e repo is defining coordinates that I want to get rid to, to
double-check that my poms don't refer to these invalid coordinates. This
actually bit me - a build worked because it happened to find an old
snapshot artifact that I had renamed, and my coworker didn't have that
coordinate because that invalid artifact never hit any disk except mine.

A good practice is to just wipe out the Maven local repo on a regular basis (I do it something like once a week on my machine and it's configured to do
that in CI once a day)

To mention it about the fifth time:
The m2e repo is NOT the local cache repo.
The m2e repo lives in in an Eclipse-managed directory (in .metadata/plugins IIRC).
The local (cache) repo lives in ~/.m2.

These two repos are shown in the Maven Repositories tab in Eclipse, .m2 as "Local Repositories -> Local Repository", the m2e one as "Local Repositories -> Workspace Projects".

I do not have any repo in .metadata/plugins. that I could find.
I am not sure where they came from but I would be surprised if they could not be deleted and automatically repopulated by maven and m2e. I switch workspaces every so often and start with a new one with no ill effects.


This use case can happen, but one should never consider local repository as something to manage (you should exclude it.from the backup btw). The *local
repo is a _cache_ really*.

Yes, and it should be named "local cache" instead of "local repository" to eliminate just the kind of confusion you just exhibited.
+1


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to