@Mojo(name="unpack-dependencies",
requiresDependencyResolution=TEST,
defaultPhase=PROCESS_SOURCES,
threadSafe=true)
public class UnpackDependenciesMojo
extends org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo
| Modifier and Type | Field and Description |
|---|---|
protected ArchiveContentListerManager |
archiveContentListerManager
To look up ArchiveContentLister implementations
origin : org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo
|
protected String |
excludeRegexClassifiers
Comma Separated list of Classifiers to exclude.
|
protected List |
flattenDestDirs
Directory where dependencies shall be flattened
|
protected String |
includeRegexClassifiers
Comma Separated list of Classifiers to include.
|
failOnMissingClassifierArtifact, outputDirectory, stripClassifier, stripVersion, useRepositoryLayout, useSubDirectoryPerArtifact, useSubDirectoryPerScope, useSubDirectoryPerTypeclassifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type| Constructor and Description |
|---|
UnpackDependenciesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Main entry into mojo.
|
protected org.apache.maven.plugin.dependency.utils.DependencyStatusSets |
getDependencySets(boolean stopOnFailure,
boolean includeParents)
Method creates filters and filters the projects dependencies.
|
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter() |
protected void |
listAndFlatCopy(org.apache.maven.artifact.Artifact artifact,
File srcRoot,
File location,
String includes,
String excludes)
flat copy the archive content.
|
getExcludes, getIncludes, setExcludes, setIncludesgetOutputDirectory, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerScope, isUseSubDirectoryPerType, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerScope, setUseSubDirectoryPerTypefilterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getMarkersDirectory, getResolvedDependencies, isPrependGroupId, setMarkersDirectory, setPrependGroupIdcopyFile, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpack@Component protected ArchiveContentListerManager archiveContentListerManager
@Parameter(property="mdep.unpack.flattenDestDirs") protected List flattenDestDirs
@Parameter(property="includeRegexClassifiers",
defaultValue="")
protected String includeRegexClassifiers
@Parameter(property="excludeRegexClassifiers",
defaultValue="")
protected String excludeRegexClassifiers
protected void listAndFlatCopy(org.apache.maven.artifact.Artifact artifact,
File srcRoot,
File location,
String includes,
String excludes)
throws org.apache.maven.plugin.MojoExecutionException
artifact - File to be unpacked.srcRoot - Location where the whole archive was unpacked.location - Location where to put the unpacked files.includes - Comma separated list of file patterns to include i.e. **/.xml,
**/*.propertiesexcludes - Comma separated list of file patterns to exclude i.e. **/*.xml,
**/*.propertiesorg.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.plugin.dependency.utils.DependencyStatusSets getDependencySets(boolean stopOnFailure,
boolean includeParents)
throws org.apache.maven.plugin.MojoExecutionException
getDependencySets in class org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojostopOnFailure - org.apache.maven.plugin.MojoExecutionExceptionprotected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
doExecute in class org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojoorg.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.getDependencySets(boolean, boolean),
AbstractDependencyMojo.unpack(org.apache.maven.artifact.Artifact, java.io.File),
listAndFlatCopy(org.apache.maven.artifact.Artifact, java.io.File, java.io.File, java.lang.String, java.lang.String)protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
getMarkedArtifactFilter in class org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojoCopyright © 2010–2017 Neticoa SAS. All rights reserved.