Package org.apache.maven.impl
Class DefaultNode
java.lang.Object
org.apache.maven.impl.AbstractNode
org.apache.maven.impl.DefaultNode
- All Implemented Interfaces:
org.apache.maven.api.Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.eclipse.aether.graph.DependencyNodeprotected final InternalSessionprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionDefaultNode(InternalSession session, org.eclipse.aether.graph.DependencyNode node, boolean verbose) -
Method Summary
Methods inherited from class org.apache.maven.impl.AbstractNode
accept, filter, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.Node
stream
-
Field Details
-
session
-
node
@Nonnull protected final org.eclipse.aether.graph.DependencyNode node -
verbose
protected final boolean verbose
-
-
Constructor Details
-
DefaultNode
public DefaultNode(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.DependencyNode node, boolean verbose)
-
-
Method Details
-
getArtifact
public org.apache.maven.api.Artifact getArtifact() -
getDependency
public org.apache.maven.api.Dependency getDependency() -
getChildren
-
getRemoteRepositories
-
getRepository
-
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:
-