@Mojo(name="unpack-dependencies", requiresDependencyResolution=TEST, defaultPhase=PROCESS_SOURCES, threadSafe=true) public class UnpackDependenciesMojo extends AbstractFromDependenciesMojo
failOnMissingClassifierArtifact, outputDirectory, stripClassifier, stripVersion, useRepositoryLayout, useSubDirectoryPerArtifact, useSubDirectoryPerScope, useSubDirectoryPerTypeclassifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, typeoutputAbsoluteArtifactFilename, reactorProjects, session| Constructor and Description |
|---|
UnpackDependenciesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Main entry into mojo.
|
String |
getEncoding() |
String |
getExcludes() |
FileMapper[] |
getFileMappers() |
String |
getIncludes() |
protected ArtifactsFilter |
getMarkedArtifactFilter()
Return an
ArtifactsFilter indicating which artifacts must be filtered out. |
void |
setEncoding(String encoding) |
void |
setExcludes(String excludes) |
void |
setFileMappers(FileMapper[] fileMappers) |
void |
setIncludes(String includes) |
getOutputDirectory, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerScope, isUseSubDirectoryPerType, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerScope, setUseSubDirectoryPerTypefilterMarkedDependencies, getArtifactResolver, getClassifierTranslatedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, isPrependGroupId, resolve, setMarkersDirectory, setPrependGroupIdcopyFile, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpackgetLog, getPluginContext, setLog, setPluginContextprotected void doExecute()
throws MojoExecutionException
doExecute in class AbstractDependencyMojoMojoExecutionException - with a message if an error occurs.AbstractDependencyFilterMojo.getDependencySets(boolean),
AbstractDependencyMojo.unpack(Artifact, String, File, String, String, String, FileMapper[]),
AbstractDependencyMojo.unpack(Artifact, File, String, FileMapper[]),
AbstractDependencyMojo.unpack(Artifact, File, String, String, String, FileMapper[])protected ArtifactsFilter getMarkedArtifactFilter()
AbstractDependencyFilterMojoArtifactsFilter indicating which artifacts must be filtered out.getMarkedArtifactFilter in class AbstractDependencyFilterMojoArtifactsFilter indicating which artifacts must be filtered out.public String getExcludes()
public void setExcludes(String excludes)
excludes - A comma separated list of items to exclude i.e. **\/*.xml, **\/*.propertiespublic String getIncludes()
public void setIncludes(String includes)
includes - A comma separated list of items to include i.e. **\/*.xml, **\/*.propertiespublic void setEncoding(String encoding)
encoding - The encoding to set.public String getEncoding()
public FileMapper[] getFileMappers()
FileMappers to be used for rewriting each target path, or null if no rewriting shall
happen.public void setFileMappers(FileMapper[] fileMappers)
fileMappers - FileMappers to be used for rewriting each target path, or null if no
rewriting shall happen.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.