org.apache.maven.plugin.dependency.fromDependencies
Class UnpackDependenciesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.dependency.AbstractDependencyMojo
          extended by org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojo
              extended by org.apache.maven.plugin.dependency.fromDependencies.AbstractFromDependenciesMojo
                  extended by org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo
All Implemented Interfaces:
ContextEnabled, Mojo

@Mojo(name="unpack-dependencies",
      requiresDependencyResolution=TEST,
      defaultPhase=PROCESS_SOURCES,
      threadSafe=true)
public class UnpackDependenciesMojo
extends AbstractFromDependenciesMojo

Goal that unpacks the project dependencies from the repository to a defined location.

Since:
1.0
Version:
$Id: UnpackDependenciesMojo.html 861760 2013-05-12 17:31:26Z hboutemy $
Author:
Brian Fox

Field Summary
 
Fields inherited from class org.apache.maven.plugin.dependency.fromDependencies.AbstractFromDependenciesMojo
failOnMissingClassifierArtifact, outputDirectory, stripClassifier, stripVersion, useRepositoryLayout, useSubDirectoryPerArtifact, useSubDirectoryPerScope, useSubDirectoryPerType
 
Fields inherited from class org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojo
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type
 
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo
archiverManager, artifactCollector, artifactMetadataSource, factory, ignorePermissions, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent, useJvmChmod
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UnpackDependenciesMojo()
           
 
Method Summary
protected  void doExecute()
          Main entry into mojo.
 String getExcludes()
           
 String getIncludes()
           
protected  ArtifactsFilter getMarkedArtifactFilter()
          Return an ArtifactsFilter indicating which artifacts must be filtered out.
 void setExcludes(String excludes)
           
 void setIncludes(String includes)
           
 
Methods inherited from class org.apache.maven.plugin.dependency.fromDependencies.AbstractFromDependenciesMojo
getOutputDirectory, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerScope, isUseSubDirectoryPerType, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerScope, setUseSubDirectoryPerType
 
Methods inherited from class org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojo
filterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getDependencySets, getMarkersDirectory, getResolvedDependencies, isPrependGroupId, setMarkersDirectory, setPrependGroupId
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo
copyFile, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpack
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpackDependenciesMojo

public UnpackDependenciesMojo()
Method Detail

doExecute

protected void doExecute()
                  throws MojoExecutionException
Main entry into mojo. This method gets the dependencies and iterates through each one passing it to DependencyUtil.unpackFile().

Specified by:
doExecute in class AbstractDependencyMojo
Throws:
MojoExecutionException - with a message if an error occurs.
See Also:
#getDependencies, DependencyUtil#unpackFile(Artifact, File, File, ArchiverManager, Log)

getMarkedArtifactFilter

protected ArtifactsFilter getMarkedArtifactFilter()
Description copied from class: AbstractDependencyFilterMojo
Return an ArtifactsFilter indicating which artifacts must be filtered out.

Specified by:
getMarkedArtifactFilter in class AbstractDependencyFilterMojo
Returns:
an ArtifactsFilter indicating which artifacts must be filtered out.

getExcludes

public String getExcludes()
Returns:
Returns a comma separated list of excluded items

setExcludes

public void setExcludes(String excludes)
Parameters:
excludes - A comma separated list of items to exclude i.e. **\/*.xml, **\/*.properties

getIncludes

public String getIncludes()
Returns:
Returns a comma separated list of included items

setIncludes

public void setIncludes(String includes)
Parameters:
includes - A comma separated list of items to include i.e. **\/*.xml, **\/*.properties


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.