Class AbstractFromDependenciesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
org.apache.maven.plugins.dependency.fromDependencies.AbstractFromDependenciesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- CopyDependenciesMojo,- UnpackDependenciesMojo
Abstract Parent class used by mojos that get Artifact information from the project dependencies.
- Author:
- Brian Fox
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanThis only applies if the classifier parameter is used.protected FileOutput location.protected booleanStrip artifact classifier during copy.protected booleanStrip artifact type during copy.protected booleanStrip artifact version during copy.protected booleanPlace each artifact in the same directory layout as a default repository.protected booleanPlace each file in a separate subdirectory.protected booleanPlace each type of file in a separate subdirectory.protected booleanPlace each type of file in a separate subdirectory.Fields inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojoclassifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, typeFields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojoreactorProjects, sessionFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractFromDependenciesMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil, org.apache.maven.project.ProjectBuilder projectBuilder, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact) voidsetOutputDirectory(File theOutputDirectory) voidsetStripType(boolean stripType) voidsetStripVersion(boolean stripVersion) voidsetUseRepositoryLayout(boolean useRepositoryLayout) voidsetUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact) voidsetUseSubDirectoryPerScope(boolean theUseSubDirectoryPerScope) voidsetUseSubDirectoryPerType(boolean theUseSubDirectoryPerType) Methods inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojofilterMarkedDependencies, getDependencySets, getDependencySets, getMarkedArtifactFilter, getMarkersDirectory, getResolvedDependencies, getResolverUtil, isPrependGroupId, setMarkersDirectory, setPrependGroupIdMethods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojodoExecute, execute, getProject, isSilent, isSkip, setSilent, setSkipMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Field Details- 
outputDirectory@Parameter(property="outputDirectory", defaultValue="${project.build.directory}/dependency") protected File outputDirectoryOutput location.- Since:
- 1.0
 
- 
stripVersion@Parameter(property="mdep.stripVersion", defaultValue="false") protected boolean stripVersionStrip artifact version during copy.
- 
stripType@Parameter(property="mdep.stripType", defaultValue="false") protected boolean stripTypeStrip artifact type during copy.- Since:
- 3.4.0
 
- 
stripClassifier@Parameter(property="mdep.stripClassifier", defaultValue="false") protected boolean stripClassifierStrip artifact classifier during copy.
- 
useRepositoryLayout@Parameter(property="mdep.useRepositoryLayout", defaultValue="false") protected boolean useRepositoryLayoutPlace each artifact in the same directory layout as a default repository. example: /outputDirectory/junit/junit/3.8.1/junit-3.8.1.jar - Since:
- 2.0-alpha-2
 
- 
useSubDirectoryPerScope@Parameter(property="mdep.useSubDirectoryPerScope", defaultValue="false") protected boolean useSubDirectoryPerScopePlace each type of file in a separate subdirectory. (example /outputDirectory/runtime /outputDirectory/provided etc.)- Since:
- 2.2
 
- 
useSubDirectoryPerType@Parameter(property="mdep.useSubDirectoryPerType", defaultValue="false") protected boolean useSubDirectoryPerTypePlace each type of file in a separate subdirectory. (example /outputDirectory/jars /outputDirectory/wars etc.)- Since:
- 2.0-alpha-1
 
- 
useSubDirectoryPerArtifact@Parameter(property="mdep.useSubDirectoryPerArtifact", defaultValue="false") protected boolean useSubDirectoryPerArtifactPlace each file in a separate subdirectory. (example/outputDirectory/junit-3.8.1-jar)- Since:
- 2.0-alpha-1
 
- 
failOnMissingClassifierArtifact@Parameter(property="mdep.failOnMissingClassifierArtifact", defaultValue="false") protected boolean failOnMissingClassifierArtifactThis only applies if the classifier parameter is used.- Since:
- 2.0-alpha-2
 
 
- 
- 
Constructor Details- 
AbstractFromDependenciesMojoprotected AbstractFromDependenciesMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil, org.apache.maven.project.ProjectBuilder projectBuilder, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager) 
 
- 
- 
Method Details- 
getOutputDirectory- Returns:
- returns the output directory
 
- 
setOutputDirectory- Parameters:
- theOutputDirectory- the outputDirectory to set
 
- 
isUseSubDirectoryPerArtifactpublic boolean isUseSubDirectoryPerArtifact()- Returns:
- returns the useSubDirectoryPerArtifact
 
- 
setUseSubDirectoryPerArtifactpublic void setUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact) - Parameters:
- theUseSubDirectoryPerArtifact- the useSubDirectoryPerArtifact to set
 
- 
isUseSubDirectoryPerScopepublic boolean isUseSubDirectoryPerScope()- Returns:
- returns the useSubDirectoryPerScope
 
- 
setUseSubDirectoryPerScopepublic void setUseSubDirectoryPerScope(boolean theUseSubDirectoryPerScope) - Parameters:
- theUseSubDirectoryPerScope- the useSubDirectoryPerScope to set
 
- 
isUseSubDirectoryPerTypepublic boolean isUseSubDirectoryPerType()- Returns:
- returns the useSubDirectoryPerType
 
- 
setUseSubDirectoryPerTypepublic void setUseSubDirectoryPerType(boolean theUseSubDirectoryPerType) - Parameters:
- theUseSubDirectoryPerType- the useSubDirectoryPerType to set
 
- 
isFailOnMissingClassifierArtifactpublic boolean isFailOnMissingClassifierArtifact()- Returns:
- failOnMissingClassifierArtifact
 
- 
setFailOnMissingClassifierArtifactpublic void setFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact) - Parameters:
- failOnMissingClassifierArtifact-- failOnMissingClassifierArtifact
 
- 
isStripVersionpublic boolean isStripVersion()- Returns:
- stripVersion
 
- 
setStripVersionpublic void setStripVersion(boolean stripVersion) - Parameters:
- stripVersion-- stripVersion
 
- 
isStripTypepublic boolean isStripType()- Returns:
- stripType
 
- 
setStripTypepublic void setStripType(boolean stripType) - Parameters:
- stripType-- stripType
 
- 
isUseRepositoryLayoutpublic boolean isUseRepositoryLayout()- Returns:
- true, if dependencies must be planted in a repository layout
 
- 
setUseRepositoryLayoutpublic void setUseRepositoryLayout(boolean useRepositoryLayout) - Parameters:
- useRepositoryLayout- true if dependencies must be planted in a repository layout
 
 
-