drypot
drypot

Reputation: 667

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

Upvotes: 3

Views: 3308

Answers (1)

Pascal Thivent
Pascal Thivent

Reputation: 570585

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.

Upvotes: 3

Related Questions