In netbeans 7, how to skip testing and add additional parameters when creating a maven project?

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

+43
java maven-2 maven-plugin netbeans-7
May 20 '11 at 16:12
source share
3 answers

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

Select the configuration you are interested in. Choose the action that interests you. Within the specified properties, you can add a skip test, etc.

Netbeans Property Window

+70
May 20 '11 at 16:54
source share

You can also configure global commands by going to:

Tools-> Options-> Miscellaneous-> Maven-> Modify global custom target definitions.

They will be available for all maven projects.

+15
May 20 '11 at 17:57
source share

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

 Global Execution Options (textfield) 

Skip tests

+6
Apr 04 '17 at 16:28
source share



All Articles