diff --git a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/AbstractNonDexMojo.java b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/AbstractNonDexMojo.java index 3cbd9d56..00114208 100644 --- a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/AbstractNonDexMojo.java +++ b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/AbstractNonDexMojo.java @@ -141,6 +141,8 @@ public abstract class AbstractNonDexMojo extends AbstractMojo { protected String loggingLevel; // Generic properties + @Parameter(property = "skip", defaultValue = "false") + protected boolean skip; @Parameter(property = "project") protected MavenProject mavenProject; @Parameter(defaultValue = "${project.build.directory}") diff --git a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/DebugMojo.java b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/DebugMojo.java index a525286d..531ce677 100644 --- a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/DebugMojo.java +++ b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/DebugMojo.java @@ -64,6 +64,10 @@ public class DebugMojo extends AbstractNonDexMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { + if (skip) { + Logger.getGlobal().log(Level.INFO, "Execution skipped"); + return; + } super.execute(); this.parseExecutions(); this.parseTests(); diff --git a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/NonDexMojo.java b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/NonDexMojo.java index 4ead7b94..e837a06f 100644 --- a/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/NonDexMojo.java +++ b/nondex-maven-plugin/src/main/java/edu/illinois/nondex/plugin/NonDexMojo.java @@ -62,6 +62,10 @@ public class NonDexMojo extends AbstractNonDexMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { + if (skip) { + Logger.getGlobal().log(Level.INFO, "Execution skipped"); + return; + } super.execute(); Logger.getGlobal().log(Level.INFO, "The original argline is: " + this.originalArgLine); MojoExecutionException allExceptions = null;