I want to issue commands like -Dmaven.test.skip=true -Dcheckstyle.skip
Asked
Active
Viewed 2.6k times
57
3 Answers
97
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.

Vincent Ramdhanie
- 102,349
- 23
- 137
- 192
17
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.

mamboking
- 4,559
- 23
- 27
-
15In NetBeans 7.3, that option has moved to: Tools->Options->Java->Maven->"Skip tests" – Enwired Apr 12 '13 at 19:03
-
1You da real MVP Enwired! Your hint made the job! – tomalone Nov 30 '16 at 20:09
12
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)

Dave Jarvis
- 30,436
- 41
- 178
- 315

mp31415
- 6,531
- 1
- 44
- 34