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
{noformat|
However, in some cases, you want to run the extra deploy-phase mojo bindings. To do this, run:
mvn -P deploy-optional deploy
Labels
