org.apache.maven.plugin.dependency
Class AbstractFromDependenciesMojo
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
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- CopyDependenciesMojo, UnpackDependenciesMojo
public abstract class AbstractFromDependenciesMojo
- extends AbstractDependencyFilterMojo
Abstract Parent class used by mojos that get Artifact information from the
project dependencies.
- Version:
- $Id: AbstractFromDependenciesMojo.java 552528 2007-07-02 16:12:47Z markh $
- Author:
- Brian Fox
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, type |
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo |
archiverManager, artifactCollector, artifactMetadataSource, factory, local, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
stripVersion
protected boolean stripVersion
- Strip artifact version during copy
outputDirectory
protected java.io.File outputDirectory
- Default location used for mojo unless overridden in ArtifactItem
- Since:
- 1.0
useRepositoryLayout
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
- Since:
- 2.0-alpha-2
useSubDirectoryPerType
protected boolean useSubDirectoryPerType
- Place each type of file in a separate subdirectory. (example
/outputDirectory/jars /outputDirectory/wars etc)
- Since:
- 2.0
useSubDirectoryPerArtifact
protected boolean useSubDirectoryPerArtifact
- Place each file in a separate subdirectory. (example
/outputDirectory/junit-3.8.1-jar)
- Since:
- 2.0
failOnMissingClassifierArtifact
protected boolean failOnMissingClassifierArtifact
- This only applies if the classifier parameter is used.
- Since:
- 2.0-alpha-2
AbstractFromDependenciesMojo
public AbstractFromDependenciesMojo()
getOutputDirectory
public java.io.File getOutputDirectory()
- Returns:
- Returns the outputDirectory.
setOutputDirectory
public void setOutputDirectory(java.io.File theOutputDirectory)
- Parameters:
theOutputDirectory
- The outputDirectory to set.
isUseSubDirectoryPerArtifact
public boolean isUseSubDirectoryPerArtifact()
- Returns:
- Returns the useSubDirectoryPerArtifact.
setUseSubDirectoryPerArtifact
public void setUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact)
- Parameters:
theUseSubDirectoryPerArtifact
- The useSubDirectoryPerArtifact to set.
isUseSubDirectoryPerType
public boolean isUseSubDirectoryPerType()
- Returns:
- Returns the useSubDirectoryPerType.
setUseSubDirectoryPerType
public void setUseSubDirectoryPerType(boolean theUseSubDirectoryPerType)
- Parameters:
theUseSubDirectoryPerType
- The useSubDirectoryPerType to set.
isFailOnMissingClassifierArtifact
public boolean isFailOnMissingClassifierArtifact()
setFailOnMissingClassifierArtifact
public void setFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact)
isStripVersion
public boolean isStripVersion()
setStripVersion
public void setStripVersion(boolean stripVersion)
isUseRepositoryLayout
public boolean isUseRepositoryLayout()
- Returns:
- true, if dependencies must be planted in a repository layout
setUseRepositoryLayout
public void setUseRepositoryLayout(boolean useRepositoryLayout)
- Parameters:
useRepositoryLayout
- -
true if dependencies must be planted in a repository layout
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.