Skip to end of metadata
Go to start of metadata


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.


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