开发者

Is it possible to change maven default goal?

开发者 https://www.devze.com 2022-12-29 03:47 出处:网络
Maven newbie question :) For \'war\' packaging, 开发者_运维知识库war:war default goal run in \'package\' build phase.

Maven newbie question :)

For 'war' packaging,

开发者_运维知识库war:war default goal run in 'package' build phase.

Is it possible to disable war:war ?

I'm using war:exploded instead.

and is it possible to disable 'compile:compile' goal completely ?

I don't use javac at all.

Thank you


You can't unbind a goal so you can't change the default Built-in Lifecycle Bindings. AFAIK, the only way to disable or replace a goal would be to use a packaging of type pom and to rebind everything manually on the various phases.

0

精彩评论

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

关注公众号