com.buschmais.jqassistant.scm.maven.AbstractModuleMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jqassistant-maven-plugin Show documentation
Show all versions of jqassistant-maven-plugin Show documentation
jQAssistant plugin for Apache Maven to integrate jQAssistant
into a Maven based project.
The newest version!
package com.buschmais.jqassistant.scm.maven;
import java.util.Set;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
/**
* Abstract base class for mojos which are executed per module.
*/
public abstract class AbstractModuleMojo extends AbstractMojo {
@Override
public final void execute(MojoExecutionContext mojoExecutionContext, Set executedModules) throws MojoExecutionException, MojoFailureException {
if (mojoExecutionContext.getConfiguration()
.maven()
.module()
.skip()) {
getLog().info("Skipping module.");
} else {
execute(mojoExecutionContext);
}
}
protected abstract void execute(MojoExecutionContext mojoExecutionContext)
throws MojoExecutionException, MojoFailureException;
}