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

com.atlassian.maven.plugins.aws.it.AwsCleanupMojo Maven / Gradle / Ivy

package com.atlassian.maven.plugins.aws.it;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import java.io.File;

/**
 * Cleans infrastructure provisioned by the provision-aws goal.
 */
@Mojo(name = "cleanup-aws", defaultPhase = LifecyclePhase.POST_INTEGRATION_TEST)
public class AwsCleanupMojo extends AbstractMojo {

    @Parameter(
            defaultValue = "${project.build.directory}",
            readonly = true
    )
    private File buildDirectory;

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        Cleaner cleaner = new Cleaner(buildDirectory, getLog());
        cleaner.clean();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy