public abstract class AbstractFromDependenciesMojo extends AbstractDependencyFilterMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnMissingClassifierArtifact
This only applies if the classifier parameter is used.
|
protected File |
outputDirectory
Output location.
|
protected boolean |
stripClassifier
Strip artifact classifier during copy
|
protected boolean |
stripType
Strip artifact type during copy
|
protected boolean |
stripVersion
Strip artifact version during copy
|
protected boolean |
useRepositoryLayout
Place each artifact in the same directory layout as a default repository.
|
protected boolean |
useSubDirectoryPerArtifact
Place each file in a separate subdirectory.
|
protected boolean |
useSubDirectoryPerScope
Place each type of file in a separate subdirectory.
|
protected boolean |
useSubDirectoryPerType
Place each type of file in a separate subdirectory.
|
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, typeoutputAbsoluteArtifactFilename, reactorProjects, session| Constructor and Description |
|---|
AbstractFromDependenciesMojo() |
| Modifier and Type | Method and Description |
|---|---|
File |
getOutputDirectory() |
boolean |
isFailOnMissingClassifierArtifact() |
boolean |
isStripType() |
boolean |
isStripVersion() |
boolean |
isUseRepositoryLayout() |
boolean |
isUseSubDirectoryPerArtifact() |
boolean |
isUseSubDirectoryPerScope() |
boolean |
isUseSubDirectoryPerType() |
void |
setFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact) |
void |
setOutputDirectory(File theOutputDirectory) |
void |
setStripType(boolean stripType) |
void |
setStripVersion(boolean stripVersion) |
void |
setUseRepositoryLayout(boolean useRepositoryLayout) |
void |
setUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact) |
void |
setUseSubDirectoryPerScope(boolean theUseSubDirectoryPerScope) |
void |
setUseSubDirectoryPerType(boolean theUseSubDirectoryPerType) |
filterMarkedDependencies, getArtifactResolver, getClassifierTranslatedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkedArtifactFilter, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, isPrependGroupId, resolve, setMarkersDirectory, setPrependGroupIdcopyFile, doExecute, execute, getProject, isSilent, isSkip, newResolveArtifactProjectBuildingRequest, newResolvePluginProjectBuildingRequest, setSilent, setSkip@Parameter(property="outputDirectory",
defaultValue="${project.build.directory}/dependency")
protected File outputDirectory
@Parameter(property="mdep.stripVersion",
defaultValue="false")
protected boolean stripVersion
@Parameter(property="mdep.stripType",
defaultValue="false")
protected boolean stripType
@Parameter(property="mdep.stripClassifier",
defaultValue="false")
protected boolean stripClassifier
@Parameter(property="mdep.useRepositoryLayout",
defaultValue="false")
protected boolean useRepositoryLayout
Place each artifact in the same directory layout as a default repository.
example:
/outputDirectory/junit/junit/3.8.1/junit-3.8.1.jar
@Parameter(property="mdep.useSubDirectoryPerScope",
defaultValue="false")
protected boolean useSubDirectoryPerScope
@Parameter(property="mdep.useSubDirectoryPerType",
defaultValue="false")
protected boolean useSubDirectoryPerType
@Parameter(property="mdep.useSubDirectoryPerArtifact",
defaultValue="false")
protected boolean useSubDirectoryPerArtifact
/outputDirectory/junit-3.8.1-jar)@Parameter(property="mdep.failOnMissingClassifierArtifact",
defaultValue="false")
protected boolean failOnMissingClassifierArtifact
public File getOutputDirectory()
public void setOutputDirectory(File theOutputDirectory)
theOutputDirectory - The outputDirectory to set.public boolean isUseSubDirectoryPerArtifact()
public void setUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact)
theUseSubDirectoryPerArtifact - The useSubDirectoryPerArtifact to set.public boolean isUseSubDirectoryPerScope()
public void setUseSubDirectoryPerScope(boolean theUseSubDirectoryPerScope)
theUseSubDirectoryPerScope - The useSubDirectoryPerScope to set.public boolean isUseSubDirectoryPerType()
public void setUseSubDirectoryPerType(boolean theUseSubDirectoryPerType)
theUseSubDirectoryPerType - The useSubDirectoryPerType to set.public boolean isFailOnMissingClassifierArtifact()
failOnMissingClassifierArtifactpublic void setFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact)
failOnMissingClassifierArtifact - failOnMissingClassifierArtifactpublic boolean isStripVersion()
stripVersionpublic void setStripVersion(boolean stripVersion)
stripVersion - stripVersionpublic boolean isStripType()
stripTypepublic void setStripType(boolean stripType)
stripType - stripTypepublic boolean isUseRepositoryLayout()
public void setUseRepositoryLayout(boolean useRepositoryLayout)
useRepositoryLayout - - true if dependencies must be planted in a repository layoutCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.