org.apache.maven.plugin.dependency
Class UnpackDependenciesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.dependency.AbstractDependencyMojo
org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo
org.apache.maven.plugin.dependency.AbstractFromDependenciesMojo
org.apache.maven.plugin.dependency.UnpackDependenciesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class UnpackDependenciesMojo
- extends AbstractFromDependenciesMojo
Goal that unpacks the project dependencies from the repository to a defined
location.
- Since:
- 1.0
- Version:
- $Id: UnpackDependenciesMojo.java 1085777 2011-03-26 18:13:19Z hboutemy $
- Author:
- Brian Fox
- Is defined by the goal name:
- unpack-dependencies
- Is bound to the specified phase of the standard build lifecycle:
- process-sources
- Requires the dependencies in this specified scope:
- test
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo |
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.dependency.AbstractFromDependenciesMojo |
getOutputDirectory, isCopyPom, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerScope, isUseSubDirectoryPerType, setCopyPom, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerScope, setUseSubDirectoryPerType |
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo |
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, 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 |
UnpackDependenciesMojo
public UnpackDependenciesMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Main entry into mojo. This method gets the dependencies and iterates
through each one passing it to DependencyUtil.unpackFile().
- Throws:
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.- See Also:
#getDependencies
,
DependencyUtil#unpackFile(Artifact, File, File, ArchiverManager,
Log)
getMarkedArtifactFilter
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
- Specified by:
getMarkedArtifactFilter
in class AbstractDependencyFilterMojo
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-2011 The Apache Software Foundation. All Rights Reserved.