[Trivia] generating eclipse project dependencies with maven2

When we migrated to maven2 a few months back we had little problems, accept that we could not figure out how to automatically generate project dependencies for eclipse. Apparently, maven1 has a special tag for this, but this did not make it into maven2.

Recently, (and by that I mean a few weeks back, just didn't bother to post this yet) one of my co-workers found out that you can simple pass the location to your eclipse-workspace to the eclipse:eclipse tag:

mvn eclipse:eclipse -Declipse.workspace=/path/to/your/workspace


and we all lived happily ever after ...

1 comment:

Sander Mak said...

A plugin like m2eclipse can also manage Eclipse project dependencies based on a POM file. Especially nice that it can download and manage source attachments (for your debugging pleasure :) ) et cetera. Still, I feel Eclipse is kind of lacking this department...