What you need:
How to:
Code Snippets and Todos for debbuging:
- Write a Maven Project which uses your maven-plugin (@see code snippet 2)
- Install everything in your local maven repository (mvn clean install)
- Set a breakpoint in your custom maven plugin. (@see code snippet 3)
- Open the debug-view in Eclipse (@see pic 1)
- Invoke your plugin's sayhi-goal in your maven project via m2eclipse-plugin by configuring it over the external tools settings in Eclipse. (@see pic 2)
- Eclipse then will automatically stop where you have set your breakpoint! (@see pic 3)
How cool is this!! Finally, you don't have to System.out.println everything to check your custom maven-plugins' variables. Very, very helpful !!!
Cheers
No comments:
Post a Comment