Class ResolutionNode
java.lang.Object
org.apache.maven.artifact.resolver.ResolutionNode
ResolutionNode
-
Constructor Summary
ConstructorDescriptionResolutionNode
(Artifact artifact, List<ArtifactRepository> remoteRepositories) ResolutionNode
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ResolutionNode parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependencies
(Set<Artifact> artifacts, List<ArtifactRepository> remoteRepositories, ArtifactFilter filter) void
disable()
void
enable()
boolean
filterTrail
(ArtifactFilter filter) int
getDepth()
getKey()
boolean
isActive()
boolean
Test whether the node is direct or transitive dependency.boolean
void
setArtifact
(Artifact artifact) toString()
-
Constructor Details
-
ResolutionNode
-
ResolutionNode
public ResolutionNode(Artifact artifact, List<ArtifactRepository> remoteRepositories, ResolutionNode parent)
-
-
Method Details
-
getArtifact
-
getKey
-
addDependencies
public void addDependencies(Set<Artifact> artifacts, List<ArtifactRepository> remoteRepositories, ArtifactFilter filter) throws CyclicDependencyException, OverConstrainedVersionException -
getDependencyTrail
- Returns:
List
<String
> with artifact ids- Throws:
OverConstrainedVersionException
- if version specification is over constrained
-
isResolved
public boolean isResolved() -
isChildOfRootNode
public boolean isChildOfRootNode()Test whether the node is direct or transitive dependency.- Returns:
- whether the node is direct or transitive dependency
-
getChildrenIterator
-
getDepth
public int getDepth() -
getRemoteRepositories
-
isActive
public boolean isActive() -
enable
public void enable() -
disable
public void disable() -
filterTrail
- Throws:
OverConstrainedVersionException
-
toString
-
setArtifact
-