Class DefaultNode
java.lang.Object
org.apache.maven.impl.AbstractNode
org.apache.maven.impl.DefaultNode
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionasString()Returns a detailed string representation of this dependency node.Gets the child nodes of this node.Returns the remote repository from which this artifact was downloaded, if known.Methods inherited from class AbstractNode
accept, filter, toString
-
Field Details
-
session
-
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
- Returns:
- artifact for this node
-
getDependency
- Returns:
- dependency for this node
-
getChildren
-
getRemoteRepositories
- Returns:
- repositories of this node
-
getRepository
Description copied from interface:NodeReturns the remote repository from which this artifact was downloaded, if known.- Returns:
- an
Optionalcontaining the repository, or empty if not available (e.g. local artifact, root node, or when the local repository manager does not track artifact origins such asSimpleLocalRepositoryManager)
-
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:
-