Interface DependencyNode
public interface DependencyNode
Represents a dependency node within a Maven project's dependency collector.
- Since:
- 0.12
- Author:
- Pim Moerenhout
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(DependencyVisitor visitor) Traverses this node and potentially its children using the specified visitor.org.apache.maven.artifact.Artifact
Gets the child nodes of this node.List
<org.apache.maven.artifact.repository.ArtifactRepository> getScope()
-
Method Details
-
getChildren
List<DependencyNode> getChildren()Gets the child nodes of this node.- Returns:
- the child nodes of this node, never
null
-
getArtifact
org.apache.maven.artifact.Artifact getArtifact()- Returns:
- artifact for this DependencyCollectorNode
-
getRemoteRepositories
List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()- Returns:
- repositories of this DependencyCollectorNode
-
getOptional
Boolean getOptional()- Returns:
- true for an optional dependency.
-
getScope
String getScope()- Returns:
- The scope on the dependency.
-