开发者

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

I want to issue commands like -开发者_运维技巧Dmaven.test.skip=true -Dcheckstyle.skip


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.

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


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.


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)

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜