Friday, July 13, 2012

What will Maven do?


As much as Maven makes it easy to deal with builds, the plethora of XML and the varying life cycles phases can sometimes make it hard to figure out what a build will actually do.

To help with this, I'm happy to make available the Eclipse plugin called the "Maven Inspector". This plugin provides a simple View called "Maven Execution" that presents for a given POM file the phases and associated MOJOs.


Enjoy!

2 comments:

Unknown said...

Thanks. It's pretty nice.

There's just a NPE when switching back to the view:

!ENTRY org.eclipse.ui.workbench 4 2 2012-07-20 12:34:10.390
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at net.rapicault.maveninspector.views.MavenExecutionView.setViewerInput(MavenExecutionView.java:185)
at net.rapicault.maveninspector.views.MavenExecutionView.fillView(MavenExecutionView.java:229)
at net.rapicault.maveninspector.views.MavenExecutionView.access$0(MavenExecutionView.java:223)
at net.rapicault.maveninspector.views.MavenExecutionView$1.partVisible(MavenExecutionView.java:110)
...

Pascal said...

A new version of the tool fixing this issue been published in the p2 repo.