In netbeans 7 how do I skip testing and add maven additional parameters when building a maven project?

JavaMaven 2Maven PluginNetbeans 7

Java Problem Overview


I want to issue commands like -Dmaven.test.skip=true -Dcheckstyle.skip

Java Solutions


Solution 1 - Java

Go to your project properties. Right click on the project name in Project Explorer and click Properties. Select Actions.

Select the configuration that you are interested in. Select the action that you are interested in. Under set properties you can add the skip test and so on.

Netbeans Property Window

Solution 2 - Java

You can also set up global commands by going to:

Tools->Options->Miscellaneous->Maven->Edit Global Custom Goal Definitions.

These will be available to all maven projects.

Solution 3 - Java

In Netbeans 8.2 in addition to

Tools->Options->Java->Maven->Execution->Skip Tests (checkbox)

in the same dialog you may need to add -Dmaven.test.skip to the

Global Execution Options (textfield)

Skip Tests

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbneilView Question on Stackoverflow
Solution 1 - JavaVincent RamdhanieView Answer on Stackoverflow
Solution 2 - JavamambokingView Answer on Stackoverflow
Solution 3 - Javamp31415View Answer on Stackoverflow