Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Scenario

You have a plugin that you want to add to two phases: test, and deploy. The test-phase binding should always run, but the deploy-phase binding should be optional.

How-To

Simply put the deploy-phase binding into a profile.

Run It!

Under normal circumstances, you don't want the optional deployment bindings to execute, so you simply use:

mvn deploy

However, in some cases, you want to run the extra deploy-phase mojo bindings. To do this, run:

mvn \-P deploy-optional deploy
  • No labels