Class DefaultNode

java.lang.Object
org.apache.maven.impl.AbstractNode
org.apache.maven.impl.DefaultNode
All Implemented Interfaces:
Node

public class DefaultNode extends AbstractNode
  • Field Details

    • session

      @Nonnull protected final InternalSession session
    • node

      @Nonnull protected final org.eclipse.aether.graph.DependencyNode node
    • verbose

      protected final boolean verbose
  • Constructor Details

  • Method Details

    • getArtifact

      public Artifact getArtifact()
    • getDependency

      public Dependency getDependency()
    • getChildren

      public List<Node> getChildren()
    • getRemoteRepositories

      public List<RemoteRepository> getRemoteRepositories()
    • getRepository

      public Optional<RemoteRepository> getRepository()
    • asString

      @Nonnull public String 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)
      Where details may include:
      • 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