@Mojo(name="tree", requiresDependencyCollection=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) |
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()
skip
public void setSkip(boolean skip)
skip
- skip
public DependencyNodeVisitor getSerializingDependencyNodeVisitor(Writer writer)
writer
- Writer
DependencyNodeVisitor
public static boolean containsVersion(VersionRange allowedRange, ArtifactVersion theVersion)
allowedRange
- range of allowed versions.theVersion
- the version to be checked.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.