Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ abstract class ProcessClassesMojo extends AbstractMojo {
@Parameter(defaultValue = "${project}", readonly = true)
protected MavenProject project;

/**
* Whether to skip execution of this plugin.
*
* @since 2.5.8
*/
@Parameter(defaultValue = "false", property = "skip", required = false)
public boolean skip;

/**
* Directory of the Java 8 installation for running Retrolambda.
* The JRE to be used will be determined in priority order:
Expand Down Expand Up @@ -115,6 +123,11 @@ abstract class ProcessClassesMojo extends AbstractMojo {

@Override
public void execute() throws MojoExecutionException {
if (skip) {
getLog().info("Skipping execution (skip=true)");
return;
}

validateTarget();
validateFork();

Expand Down