Expose skip property consistently

This commit makes sure that the `skip` command-line property can be used
for all goals of the maven plugin.

A dedicated sample for integration tests has also been added as this
change may confuse users, especially those who wish to skip a certain
goal and not the plugin execution altogether.

Closes gh-7313
This commit is contained in:
Stephane Nicoll
2016-11-25 11:17:58 +01:00
parent 0befc310cd
commit 6e79521fff
5 changed files with 68 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* Skip the execution.
* @since 1.3.2
*/
@Parameter(defaultValue = "false")
@Parameter(property = "skip", defaultValue = "false")
private boolean skip;
@Override

View File

@@ -75,7 +75,7 @@ public class StopMojo extends AbstractMojo {
* Skip the execution.
* @since 1.3.2
*/
@Parameter(defaultValue = "false")
@Parameter(property = "skip", defaultValue = "false")
private boolean skip;
@Override