Henri Gomez wrote:
I wonder if there is a tricks to know for using m2eclipse to develop
and debug maven 2.1 ?

I'd like to fix some issues in the current 2.1 and I plan to use my
Eclipse 3.4 and m2eclipse 0.9.4 for such usage.
Igor would probably give you some in-depth details about debugging Maven, but generally you just import Maven code as multiple Maven projects using default settings from "File / Import... / Maven projects" and you should be good to go.

Note that you may need to set default goal to run on project import to "process-resources", or run "Maven / Update Project Configuration" after importing Maven projects (it uses "process-resources" goal by default).

After that you should have all Maven projects compiled in Eclipse without errors and you should be able to use "Debug as... / JUnit test" to launch Maven's tests, or use "Debug as... / Java Application" to launch Maven's main class org.apache.maven.cli.MavenCli. The latter one may have some issues, since there is code that checks presence of some property files, but maybe you could contribute fix for that to Maven...

 There is also some info about debugging Maven plugins [1].

 regards,
 Eugene

[1] http://docs.codehaus.org/display/M2ECLIPSE/Developing+and+debugging+Maven+plugins



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to