com.github.odavid.maven.plugins.dependencyhandler.CopyMojo.groovy Maven / Gradle / Ivy
package com.github.odavid.maven.plugins.dependencyhandler
import org.apache.maven.plugin.MojoExecutionException
import org.apache.maven.plugin.MojoFailureException
import org.apache.maven.plugins.annotations.Mojo
import org.apache.maven.plugins.annotations.ResolutionScope
/**
* Copies dependencies to a ${outputDir}.
* Dependencies can be filtered by ${includes} and ${excludes} patterns groupId:artifactId:type:classifier. Patterns support wildcard '*'
* @author odavid
*/
@Mojo(name="copy", requiresDependencyResolution=ResolutionScope.COMPILE, requiresProject=true, threadSafe=true)
class CopyMojo extends AbstractDependencyHandlerMojo{
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
dependencyMavenPluginCopy(filterDependencies())
}
}