Interface Node
- All Known Implementing Classes:
AbstractNode
,DefaultNode
Represents a dependency node within a Maven project's dependency collector.
- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(NodeVisitor visitor) Traverses this node and potentially its children using the specified visitor.asString()
Returns a detailed string representation of this dependency node.Returns a new tree starting at this node, filtering the children.Gets the child nodes of this node.The repository where this artifact has been downloaded from.stream()
Obtain a Stream containing this node and all its descendants.
-
Method Details
-
getArtifact
-
getDependency
- Returns:
- dependency for this node
-
getChildren
-
getRemoteRepositories
- Returns:
- repositories of this node
-
getRepository
The repository where this artifact has been downloaded from. -
accept
Traverses this node and potentially its children using the specified visitor.- Parameters:
visitor
- the visitor to call back, must not benull
- Returns:
true
to visit siblings nodes of this node as well,false
to skip siblings
-
filter
-
asString
Returns a detailed string representation of this dependency node.When verbose mode is disabled, returns the basic string representation in the format:
groupId:artifactId:version[:scope]
When verbose mode is enabled, additional details are included with the following format:
- For included dependencies:
groupId:artifactId:version[:scope] (details)
- For omitted dependencies:
(groupId:artifactId:version[:scope] - details)
- Version management information (if the version was managed from a different version)
- Scope management information (if the scope was managed from a different scope)
- Scope updates (if the scope was changed during resolution)
- Conflict resolution information (if the dependency was omitted due to conflicts or duplicates)
- Returns:
- a string representation of this dependency node with optional detailed information
- For included dependencies:
-
stream
-