org.apache.maven.plugin.dependency
Class AbstractResolveMojo
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.AbstractResolveMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- GoOfflineMojo, ResolveDependenciesMojo, ResolvePluginsMojo
public abstract class AbstractResolveMojo
- extends AbstractDependencyFilterMojo
- Version:
- $Id: AbstractResolveMojo.java 1448351 2013-02-20 19:02:48Z jdcasey $
- Author:
- Brian Fox
Field Summary |
protected boolean |
appendOutput
Whether to append outputs into the output file or overwrite it. |
protected boolean |
excludeReactor
Don't resolve plugins that are in the current reactor. |
protected MavenProjectBuilder |
mavenProjectBuilder
Project builder -- builds a model from a pom.xml |
protected File |
outputFile
If specified, this parameter will cause the dependencies to be written to the path specified, instead of writing
to the console. |
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, prependGroupId, type |
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo |
archiverManager, artifactCollector, artifactMetadataSource, factory, ignorePermissions, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent, useJvmChmod |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo |
copyFile, doExecute, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mavenProjectBuilder
@Component
protected MavenProjectBuilder mavenProjectBuilder
- Project builder -- builds a model from a pom.xml
outputFile
@Parameter(property="outputFile")
protected File outputFile
- If specified, this parameter will cause the dependencies to be written to the path specified, instead of writing
to the console.
- Since:
- 2.0
appendOutput
@Parameter(property="appendOutput",
defaultValue="false")
protected boolean appendOutput
- Whether to append outputs into the output file or overwrite it.
- Since:
- 2.2
excludeReactor
@Parameter(property="excludeReactor",
defaultValue="true")
protected boolean excludeReactor
- Don't resolve plugins that are in the current reactor.
Only works for plugins at the moment.
- Since:
- 2.7
AbstractResolveMojo
public AbstractResolveMojo()
getPluginArtifactsFilter
protected FilterArtifacts getPluginArtifactsFilter()
resolveDependencyArtifacts
protected Set<Artifact> resolveDependencyArtifacts(MavenProject theProject)
throws ArtifactResolutionException,
ArtifactNotFoundException,
InvalidDependencyVersionException
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
InvalidDependencyVersionException
resolveArtifactDependencies
protected Set<Artifact> resolveArtifactDependencies(Artifact artifact)
throws ArtifactResolutionException,
ArtifactNotFoundException,
ProjectBuildingException,
InvalidDependencyVersionException
- This method resolves all transitive dependencies of an artifact.
- Parameters:
artifact
- the artifact used to retrieve dependencies
- Returns:
- resolved set of dependencies
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
ProjectBuildingException
InvalidDependencyVersionException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.