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

io.takari.maven.plugins.resources.ProcessResources Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy