com.buschmais.jqassistant.scm.maven.ResetMojo 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.
package com.buschmais.jqassistant.scm.maven;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Resets the store.
*/
@Mojo(name = "reset", aggregator = true, requiresProject = false, threadSafe = true)
public class ResetMojo extends AbstractProjectMojo {
@Override
protected void aggregate(MojoExecutionContext mojoExecutionContext) throws MojoExecutionException, MojoFailureException {
withStore(store -> store.reset(), mojoExecutionContext);
}
}