org.seedstack.maven.EffectiveTestConfigMojo Maven / Gradle / Ivy
The newest version!
/*
* Copyright © 2013-2021, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.maven;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.seedstack.maven.runnables.ToolRunnable;
/**
* Defines the effective-test-config goal. This goal runs the effective-config Seed tool with the test classpath,
* which dumps the effective test configuration.
*/
@Mojo(name = "effective-test-config", requiresProject = true, threadSafe = true, defaultPhase = LifecyclePhase
.VALIDATE, requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PROCESS_TEST_CLASSES)
public class EffectiveTestConfigMojo extends AbstractExecutableMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
execute(new ToolRunnable("effective-config", getContext()), true);
waitForShutdown();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy