io.takari.maven.plugins.resources.ProcessResources Maven / Gradle / Ivy
package io.takari.maven.plugins.resources;
import java.io.File;
import java.util.List;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.*;
@Mojo(name = "process-resources", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
public class ProcessResources extends AbstractProcessResourcesMojo {
@Parameter(defaultValue = "${project.build.outputDirectory}", property = "resources.outputDirectory")
private File outputDirectory;
@Parameter
private List resources;
@Override
protected void executeMojo() throws MojoExecutionException {
process(resources != null ? resources : project.getBuild().getResources(), outputDirectory);
}
}