Method to run maven command in Netbean

maven, netbeans, netbeans-7

Solution

To activate the profile via Netbeans, you may try the following task: -

- Right click at your project and select `properties` from the context menu.

- Select the `Configurations` from `Categories` on the left panel.

- At the right panel you will see the various profiles defined in your pom. You can `Activate` them by selecting them and click `Activate` button or you can create the new on by clicking the `Add` button.

To achieve your requirement as `mvn clean install -Pjnlp` is simply just `right click` at the project and select `Clean and Build`. The `Clean and Build` calls `mvn clean install` together with the activate profile.

I hope this may help.

Problem

How can I run `mvn clean install -Pjnlp` command in Netbean 7.3 ?

Original source