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:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- GoOfflineMojo, ResolveDependenciesMojo, ResolveDependencySourcesMojo, ResolvePluginsMojo
public abstract class AbstractResolveMojo
- extends AbstractDependencyFilterMojo
- Version:
- $Id: AbstractResolveMojo.java 728546 2008-12-21 22:56:51Z bentmann $
- Author:
- Brian Fox
Field Summary |
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
Project builder -- builds a model from a pom.xml |
protected java.io.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, 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 |
Method Summary |
protected java.util.Set |
resolveArtifactDependencies(org.apache.maven.artifact.Artifact artifact)
This method resolves all transitive dependencies of an artifact. |
protected java.util.Set |
resolveDependencyArtifacts(org.apache.maven.project.MavenProject theProject)
This method resolves the dependency artifacts from the project. |
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, 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 |
mavenProjectBuilder
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
- Project builder -- builds a model from a pom.xml
- Is a Plexus component defined by:
- role:
- org.apache.maven.project.MavenProjectBuilder
- Is readonly.
- Is required.
outputFile
protected java.io.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
- Is defined by:
- expression:
- ${outputFile}
AbstractResolveMojo
public AbstractResolveMojo()
resolveDependencyArtifacts
protected java.util.Set resolveDependencyArtifacts(org.apache.maven.project.MavenProject theProject)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
org.apache.maven.project.artifact.InvalidDependencyVersionException
- This method resolves the dependency artifacts from the project.
- Parameters:
theProject
- The POM.
- Returns:
- resolved set of dependency artifacts.
- Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
org.apache.maven.project.artifact.InvalidDependencyVersionException
resolveArtifactDependencies
protected java.util.Set resolveArtifactDependencies(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
org.apache.maven.project.ProjectBuildingException,
org.apache.maven.project.artifact.InvalidDependencyVersionException
- This method resolves all transitive dependencies of an artifact.
- Parameters:
artifact
- the artifact used to retrieve dependencies
- Returns:
- resolved set of dependencies
- Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
org.apache.maven.project.ProjectBuildingException
org.apache.maven.project.artifact.InvalidDependencyVersionException
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.