public class Graph extends Object
Modifier and Type | Field and Description |
---|---|
TreeMap<String,Node> |
nodes |
List<Node> |
roots |
Constructor and Description |
---|
Graph() |
Modifier and Type | Method and Description |
---|---|
void |
addNode(Node node) |
Node |
addRootNode(org.eclipse.aether.graph.Dependency dependency) |
Node |
addRootNode(org.eclipse.aether.graph.DependencyNode root) |
Node |
addRootNode(org.apache.maven.project.MavenProject pom)
Add a root node given a Maven Project POM.
|
Node |
addRootNode(Node node) |
Node |
addRootNode(String key) |
protected org.eclipse.aether.graph.DependencyNode |
collect(org.eclipse.aether.collection.CollectRequest collectRequest) |
org.eclipse.aether.graph.DependencyNode |
collectDependencies(org.eclipse.aether.graph.Dependency dependency) |
org.eclipse.aether.graph.DependencyNode |
collectDependencies(org.apache.maven.project.MavenProject project) |
Node |
collectRootNode(org.eclipse.aether.graph.Dependency dependency) |
Node |
collectRootNode(org.apache.maven.project.MavenProject pom) |
Collection<Node> |
find(String pattern) |
Node |
findFirst(String pattern)
Deprecated.
Since 2.0.4. This method is not very interesting.
|
Node |
findFirst(String pattern,
boolean stopIfNotUnique) |
Node |
findNode(ArtifactDescriptor ad) |
Node |
findNode(String key) |
Node |
findNode(String key,
ArtifactDescriptor ad) |
Node |
getNode(org.eclipse.aether.graph.Dependency dependency) |
Collection<Node> |
getNodes() |
List<Node> |
getRoots() |
void |
resolveDependencies(Filter filter,
int depth)
Resolve graph starting from its root nodes.
|
protected void |
tryResolutionOnLocalBaseVersion(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.resolver.ArtifactNotFoundException e)
Try to locally resolve an artifact with its "unique" version.
|
public Collection<Node> getNodes()
@Deprecated public Node findFirst(String pattern)
findFirst(String, boolean)
which will fail if two artifacts match the
pattern.public Collection<Node> find(String pattern)
public Node addRootNode(org.apache.maven.project.MavenProject pom)
public Node addRootNode(org.eclipse.aether.graph.Dependency dependency)
public Node collectRootNode(org.eclipse.aether.graph.Dependency dependency)
public Node addRootNode(org.eclipse.aether.graph.DependencyNode root)
public Node collectRootNode(org.apache.maven.project.MavenProject pom)
public void addNode(Node node)
public Node findNode(ArtifactDescriptor ad)
public org.eclipse.aether.graph.DependencyNode collectDependencies(org.eclipse.aether.graph.Dependency dependency)
protected org.eclipse.aether.graph.DependencyNode collect(org.eclipse.aether.collection.CollectRequest collectRequest)
public org.eclipse.aether.graph.DependencyNode collectDependencies(org.apache.maven.project.MavenProject project)
public void resolveDependencies(Filter filter, int depth)
protected void tryResolutionOnLocalBaseVersion(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.resolver.ArtifactNotFoundException e) throws org.apache.maven.artifact.resolver.ArtifactNotFoundException
artifact
- Artifact to resolve with its unique versione
- ArtifactNotFoundException originally thrownorg.apache.maven.artifact.resolver.ArtifactNotFoundException
- If alternate resolution failed.Artifact.getBaseVersion()
public Node getNode(org.eclipse.aether.graph.Dependency dependency)
public Node findNode(String key) throws org.apache.tools.ant.BuildException
key
- org.apache.tools.ant.BuildException
public Node findNode(String key, ArtifactDescriptor ad) throws org.apache.tools.ant.BuildException
key
- ad
- org.apache.tools.ant.BuildException
Copyright © 2016 Nuxeo SA. All Rights Reserved.