57

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

Tombart
  • 30,520
  • 16
  • 123
  • 136
bneil
  • 1,590
  • 3
  • 16
  • 26

3 Answers3

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.

Netbeans Property Window

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
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)

Skip Tests

Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
mp31415
  • 6,531
  • 1
  • 44
  • 34