开发者

Is it possible to change maven default goal?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜