Thursday, February 19, 2009

How to debug or run a maven project

Here is the steps to add a tag for running or debugging a maven project. Open "Debug Configurations" by right click on the Eclipse. Also you can open this window by "Run" menu.
1. Give your tag a name, for exmaple, "run App";
2. Use "Browse file system " to fill in the Base directory. For my project, it should be "D:\Projects\netcomp\netcomp", the root path for the project.

3. Fill the blank of Goals by "clean package exec:java";

4. Click Configure at the right side of Maven Runtime and add an external address for the Maven running. It should be the path where your maven installed.

After all the steps, the "run App" tag for running a maven project is built up. When you need to do the debugging, enable the debug configurations window and click debug.

No comments: