TaT ShowMavenBuildPlan

Show Maven Build Plan in NetBeans

Contributed By; Hubert A Klein Ikkink

Reposted from this blog entry- http://mrhaki.blogspot.com/2008/08/show-maven-build-plan-in-netbeans.html

Tips and Tricks

Running Maven goals from within NetBeans is easy. For example we can right-click on a Project Node and select the Clean and Build option. NetBeans will invoke Maven and use the clean and install goals. We can see in the output window the Maven output for all steps. We can click on the View Maven Build Plan button at the left of the output window. Or we can right-click in the output window and select View Build Plan.

File:Netbeans-maven-buildplan3 TaT ShowMavenBuildPlan.png

We now get a window with all the steps Maven takes to execute the clean and install goals. We see the different build phase cycles and which plugins are involved. The following screenshot shows a simple example; File:netbeans-maven-buildplan1_TaT_ShowMavenBuildPlan.png When we add a plugin to our pom.xml and connect it to a Maven build phase we can see this change also in the build plan. We add the following simple plugin definition to our pom.xml and connect it to the process-resources build phase;

     <echo message="Show build plan."/>

The next screenshot shows how NetBeans displays the build plan; File:netbeans-maven-buildplan2_TaT_ShowMavenBuildPlan.png Notice how NetBeans even shows the structure of the plugin we added.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo