org.apache.maven.plugin.dependency.resolvers
Class ResolveDependenciesMojo
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
org.apache.maven.plugin.dependency.resolvers.ResolveDependenciesMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- ListMojo
@Mojo(name="resolve",
requiresDependencyResolution=TEST,
defaultPhase=GENERATE_SOURCES)
public class ResolveDependenciesMojo
- extends AbstractResolveMojo
Goal that resolves the project dependencies from the repository.
- Since:
- 2.0
- Version:
- $Id: ResolveDependenciesMojo.java 1357251 2012-07-04 13:28:33Z olamy $
- Author:
- Brian Fox
Field Summary |
protected boolean |
outputScope
If we should display the scope when resolving |
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 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, unpack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputScope
@Parameter(property="mdep.outputScope",
defaultValue="true")
protected boolean outputScope
- If we should display the scope when resolving
- Since:
- 2.0-alpha-2
ResolveDependenciesMojo
public ResolveDependenciesMojo()
execute
public void execute()
throws MojoExecutionException
- Main entry into mojo. Gets the list of dependencies and iterates through displaying the resolved version.
- Throws:
MojoExecutionException
- with a message if an error occurs.
getResults
public DependencyStatusSets getResults()
- Returns:
- Returns the results.
getMarkedArtifactFilter
protected ArtifactsFilter getMarkedArtifactFilter()
- Specified by:
getMarkedArtifactFilter
in class AbstractDependencyFilterMojo
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.