@Mojo(name="tree", requiresDependencyResolution=TEST, threadSafe=true) public class TreeMojo extends AbstractMojo
Constructor and Description |
---|
TreeMojo() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsVersion(VersionRange allowedRange,
ArtifactVersion theVersion)
Copied from Artifact.VersionRange.
|
void |
execute() |
DependencyNode |
getDependencyGraph()
Gets the computed dependency graph root node for the Maven project.
|
MavenProject |
getProject()
Gets the Maven project used by this mojo.
|
DependencyNodeVisitor |
getSerializingDependencyNodeVisitor(Writer writer) |
protected static boolean |
isMaven2x()
Check the current Maven version to see if it's Maven 2.x.
|
boolean |
isSkip() |
void |
setSkip(boolean skip) |
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException, MojoFailureException
public MavenProject getProject()
public DependencyNode getDependencyGraph()
public boolean isSkip()
public void setSkip(boolean skip)
public DependencyNodeVisitor getSerializingDependencyNodeVisitor(Writer writer)
public static boolean containsVersion(VersionRange allowedRange, ArtifactVersion theVersion)
allowedRange
- range of allowed versions.theVersion
- the version to be checked.protected static boolean isMaven2x()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.