All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.buschmais.jqassistant.scm.maven.AbstractModuleMojo Maven / Gradle / Ivy

Go to download

jQAssistant plugin for Apache Maven to integrate jQAssistant into a Maven based project.

There is a newer version: 2.5.0
Show 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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy