January 17, 2011

note to self: get maven nature on projects in (my)eclipse

myeclipse: v8.6
plugins/ software:
mavensupport for myeclipse (m4e)
maven integration for eclipse (m2)

now, if a project wasn't "maven-enabled", i often had to manually edit the .project file to make it so, even with mavensupport installed.

but if you also install "maven integration for eclipse", you can right-click a project without maven nature and select "(m2) myeclipse maven -> enable dependency management".

a last piece of the puzzle seems to be needed - i think i enabled some advanced option in m4e (might even have been seemingly unrelated, like advanced tabs in pom).  but a coworker disabled m4e after installing m2 and then got the right-click option to enable maven for a project...

edit: it seems i only had to enter the maven settings (myeclipse -> maven), and then exit (apply).  without changing anything... then the "(m2) myeclipse maven -> enable dependency management" option emerged...