Package | Description |
---|---|
org.eclipse.aether.collection |
The types and extension points for collecting the transitive dependencies of an artifact and building a dependency
graph.
|
org.eclipse.aether.graph |
The representation of a dependency graph by means of connected dependency nodes.
|
org.eclipse.aether.internal.impl |
The various sub components that collectively implement the repository system.
|
org.eclipse.aether.internal.test.util |
Utility classes to ease unit testing.
|
org.eclipse.aether.resolution |
The types supporting the resolution of artifacts and metadata from repositories.
|
org.eclipse.aether.util.filter |
Various dependency filters for selecting nodes in a dependency graph.
|
org.eclipse.aether.util.graph.manager |
Various dependency managers for building a dependency graph.
|
org.eclipse.aether.util.graph.transformer |
Various dependency graph transformers for post-processing a dependency graph.
|
org.eclipse.aether.util.graph.visitor |
Various dependency visitors for inspecting a dependency graph.
|
Modifier and Type | Field and Description |
---|---|
private DependencyNode |
CollectResult.root |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<? extends java.util.List<? extends DependencyNode>> |
UnsolvableVersionConflictException.paths |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
CollectResult.getRoot()
Gets the root node of the dependency graph.
|
DependencyNode |
DependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
Transforms the dependency graph denoted by the specified root node.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends java.util.List<? extends DependencyNode>> |
UnsolvableVersionConflictException.getPaths()
Gets the paths leading to the conflicting dependencies.
|
Modifier and Type | Method and Description |
---|---|
CollectResult |
CollectResult.setRoot(DependencyNode root)
Sets the root node of the dependency graph.
|
DependencyNode |
DependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
Transforms the dependency graph denoted by the specified root node.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
UnsolvableVersionConflictException.toPath(java.util.List<? extends DependencyNode> path) |
private static java.lang.String |
UnsolvableVersionConflictException.toPaths(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths) |
Constructor and Description |
---|
UnsolvableVersionConflictException(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths)
Creates a new exception with the specified paths to conflicting nodes in the dependency graph.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDependencyNode
A node within a dependency graph.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<DependencyNode> |
DefaultDependencyNode.children |
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyNode> |
DefaultDependencyNode.getChildren() |
java.util.List<DependencyNode> |
DependencyNode.getChildren()
Gets the child nodes of this node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents)
Indicates whether the specified dependency node shall be included or excluded.
|
boolean |
DependencyVisitor.visitEnter(DependencyNode node)
Notifies the visitor of a node visit before its children have been processed.
|
boolean |
DependencyVisitor.visitLeave(DependencyNode node)
Notifies the visitor of a node visit after its children have been processed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents)
Indicates whether the specified dependency node shall be included or excluded.
|
void |
DefaultDependencyNode.setChildren(java.util.List<DependencyNode> children) |
void |
DependencyNode.setChildren(java.util.List<DependencyNode> children)
Sets the child nodes of this node.
|
Constructor and Description |
---|
DefaultDependencyNode(DependencyNode node)
Creates a mostly shallow clone of the specified node.
|
Modifier and Type | Field and Description |
---|---|
private DependencyNode[] |
NodeStack.nodes |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Object,java.util.List<DependencyNode>> |
DataPool.nodes |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
NodeStack.get(int index) |
DependencyNode |
NodeStack.top() |
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyNode> |
DataPool.getChildren(java.lang.Object key) |
Modifier and Type | Method and Description |
---|---|
private static DefaultDependencyNode |
DefaultDependencyCollector.createDependencyNode(java.util.List<Artifact> relocations,
DefaultDependencyCollector.PremanagedDependency preManaged,
VersionRangeResult rangeResult,
Version version,
Dependency d,
ArtifactDescriptorResult descriptorResult,
DependencyNode cycleNode) |
void |
NodeStack.push(DependencyNode node) |
boolean |
ArtifactRequestBuilder.visitEnter(DependencyNode node) |
boolean |
ArtifactRequestBuilder.visitLeave(DependencyNode node) |
Modifier and Type | Method and Description |
---|---|
void |
DataPool.putChildren(java.lang.Object key,
java.util.List<DependencyNode> children) |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
NodeBuilder.build() |
private DependencyNode |
DependencyGraphParser.build(DependencyNode parent,
DependencyGraphParser.LineContext ctx,
boolean isRoot) |
private DependencyNode |
DependencyGraphParser.parse(java.io.BufferedReader in) |
DependencyNode |
DependencyGraphParser.parse(java.net.URL resource)
Parse the graph definition read from the given URL.
|
DependencyNode |
DependencyGraphParser.parseLiteral(java.lang.String dependencyGraph)
Parse the given graph definition.
|
DependencyNode |
DependencyGraphParser.parseResource(java.lang.String resource)
Parse the graph definition read from the given classpath resource.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyNode> |
DependencyGraphParser.parseMultiResource(java.lang.String resource)
Parse multiple graphs in one resource, divided by "---".
|
Modifier and Type | Method and Description |
---|---|
private void |
DependencyGraphParser.addNode(DependencyNode root,
int level,
java.util.List<DependencyGraphParser.NodeEntry> entries) |
private DependencyNode |
DependencyGraphParser.build(DependencyNode parent,
DependencyGraphParser.LineContext ctx,
boolean isRoot) |
java.lang.String |
DependencyGraphParser.dump(DependencyNode root) |
Modifier and Type | Field and Description |
---|---|
private DependencyNode |
ArtifactRequest.node |
private DependencyNode |
DependencyRequest.root |
private DependencyNode |
DependencyResult.root |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
ArtifactRequest.getDependencyNode()
Gets the dependency node (if any) for which to resolve the artifact.
|
DependencyNode |
DependencyRequest.getRoot()
Gets the root node of the dependency graph whose artifacts should be resolved.
|
DependencyNode |
DependencyResult.getRoot()
Gets the root node of the resolved dependency graph.
|
Modifier and Type | Method and Description |
---|---|
ArtifactRequest |
ArtifactRequest.setDependencyNode(DependencyNode node)
Sets the dependency node to resolve.
|
DependencyRequest |
DependencyRequest.setRoot(DependencyNode root)
Sets the root node of the dependency graph whose artifacts should be resolved.
|
DependencyResult |
DependencyResult.setRoot(DependencyNode root)
Sets the root node of the resolved dependency graph.
|
Constructor and Description |
---|
ArtifactRequest(DependencyNode node)
Creates a request from the specified dependency node.
|
DependencyRequest(DependencyNode node,
DependencyFilter filter)
Creates a request for the specified dependency graph and with the given resolution filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractPatternDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
OrDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
ScopeDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
AndDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
NotDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
ExclusionsDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractPatternDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
OrDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
ScopeDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
AndDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
NotDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
boolean |
ExclusionsDependencyFilter.accept(DependencyNode node,
java.util.List<DependencyNode> parents) |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Exclusion> |
DependencyManagerUtils.getPremanagedExclusions(DependencyNode node)
Gets the
Exclusion s of the specified dependency node before dependency management was applied (if any). |
static java.lang.Boolean |
DependencyManagerUtils.getPremanagedOptional(DependencyNode node)
Gets the optional flag of the specified dependency node before dependency management was applied (if any).
|
static java.util.Map<java.lang.String,java.lang.String> |
DependencyManagerUtils.getPremanagedProperties(DependencyNode node)
Gets the properties of the specified dependency node before dependency management was applied (if any).
|
static java.lang.String |
DependencyManagerUtils.getPremanagedScope(DependencyNode node)
Gets the scope of the specified dependency node before dependency management was applied (if any).
|
static java.lang.String |
DependencyManagerUtils.getPremanagedVersion(DependencyNode node)
Gets the version or version range of the specified dependency node before dependency management was applied (if
any).
|
Modifier and Type | Field and Description |
---|---|
(package private) DependencyNode |
ConflictResolver.ConflictItem.node |
(package private) DependencyNode |
ConflictResolver.ConflictContext.root |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.util.List<DependencyNode>,ConflictResolver.NodeInfo> |
ConflictResolver.State.infos
The (conceptual) mapping from nodes to extra infos, technically keyed by the node's child list which better
captures the identity of a node since we're basically concerned with effects towards children.
|
(package private) java.util.List<DependencyNode> |
ConflictResolver.ConflictItem.parent |
(package private) java.util.List<DependencyNode> |
ConflictResolver.State.parentNodes
The stack of parent nodes.
|
(package private) java.util.Map<java.lang.Object,DependencyNode> |
ConflictResolver.State.resolvedIds
A mapping from conflict id to winner node, helps to recognize nodes that have their effective
scope&optionality set or are leftovers from previous removals.
|
(package private) java.util.Map<java.util.List<DependencyNode>,java.lang.Object> |
ConflictResolver.State.stack
The set of nodes on the DFS stack to detect cycles, technically keyed by the node's child list to match the
dirty graph structure produced by the dependency collector for cycles.
|
Modifier and Type | Method and Description |
---|---|
DependencyNode |
ConflictResolver.ConflictItem.getNode()
Gets the dependency node involved in the conflict.
|
DependencyNode |
ConflictResolver.ConflictContext.getRoot()
Gets the root node of the dependency graph being transformed.
|
private DependencyNode |
ConflictResolver.State.parent() |
DependencyNode |
ConflictIdSorter.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
ConflictMarker.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
After the execution of this method, every DependencyNode with an attached dependency is member of one conflict
group.
|
DependencyNode |
ConflictResolver.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
JavaDependencyContextRefiner.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
ChainedDependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
NoopDependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<DependencyNode,java.lang.Object> |
ConflictMarker.mark(java.util.Collection<DependencyNode> nodes,
java.util.Map<java.lang.Object,ConflictMarker.ConflictGroup> groups) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
ConflictResolver.State.add(DependencyNode node) |
private void |
ConflictMarker.analyze(DependencyNode node,
java.util.Map<DependencyNode,java.lang.Object> nodes,
java.util.Map<java.lang.Object,ConflictMarker.ConflictGroup> groups,
int[] counter) |
private void |
ConflictIdSorter.buildConflitIdDAG(java.util.Map<java.lang.Object,ConflictIdSorter.ConflictId> ids,
DependencyNode node,
ConflictIdSorter.ConflictId id,
int depth,
java.util.Map<DependencyNode,java.lang.Object> visited,
java.util.Map<?,?> conflictIds) |
private boolean |
ConflictResolver.State.deriveOptional(DependencyNode node,
java.lang.Object conflictId) |
private java.lang.String |
ConflictResolver.State.deriveScope(DependencyNode node,
java.lang.Object conflictId) |
private boolean |
ConflictResolver.gatherConflictItems(DependencyNode node,
ConflictResolver.State state) |
private java.lang.String |
JavaDependencyContextRefiner.getClasspathScope(DependencyNode node) |
ConflictResolver.VersionSelector |
ConflictResolver.VersionSelector.getInstance(DependencyNode root,
DependencyGraphTransformationContext context)
Retrieves the version selector for use during the specified graph transformation.
|
ConflictResolver.ScopeSelector |
ConflictResolver.ScopeSelector.getInstance(DependencyNode root,
DependencyGraphTransformationContext context)
Retrieves the scope selector for use during the specified graph transformation.
|
ConflictResolver.ScopeDeriver |
ConflictResolver.ScopeDeriver.getInstance(DependencyNode root,
DependencyGraphTransformationContext context)
Retrieves the scope deriver for use during the specified graph transformation.
|
ConflictResolver.OptionalitySelector |
ConflictResolver.OptionalitySelector.getInstance(DependencyNode root,
DependencyGraphTransformationContext context)
Retrieves the optionality selector for use during the specified graph transformation.
|
private java.util.Set<java.lang.Object> |
ConflictMarker.getKeys(DependencyNode node) |
boolean |
ConflictResolver.ConflictContext.isIncluded(DependencyNode node)
Determines whether the specified dependency node belongs to this conflict context.
|
(package private) boolean |
ConflictResolver.State.loser(DependencyNode node,
java.lang.Object conflictId) |
private ConflictResolver.ConflictItem |
ConflictResolver.State.newConflictItem(DependencyNode parent,
DependencyNode node) |
(package private) boolean |
ConflictResolver.State.push(DependencyNode node,
java.lang.Object conflictId) |
DependencyNode |
ConflictIdSorter.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
ConflictMarker.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
After the execution of this method, every DependencyNode with an attached dependency is member of one conflict
group.
|
DependencyNode |
ConflictResolver.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
JavaDependencyContextRefiner.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
ChainedDependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
DependencyNode |
NoopDependencyGraphTransformer.transformGraph(DependencyNode node,
DependencyGraphTransformationContext context) |
Modifier and Type | Method and Description |
---|---|
private void |
ConflictMarker.analyze(DependencyNode node,
java.util.Map<DependencyNode,java.lang.Object> nodes,
java.util.Map<java.lang.Object,ConflictMarker.ConflictGroup> groups,
int[] counter) |
private void |
ConflictIdSorter.buildConflitIdDAG(java.util.Map<java.lang.Object,ConflictIdSorter.ConflictId> ids,
DependencyNode node,
ConflictIdSorter.ConflictId id,
int depth,
java.util.Map<DependencyNode,java.lang.Object> visited,
java.util.Map<?,?> conflictIds) |
private java.util.Map<DependencyNode,java.lang.Object> |
ConflictMarker.mark(java.util.Collection<DependencyNode> nodes,
java.util.Map<java.lang.Object,ConflictMarker.ConflictGroup> groups) |
Constructor and Description |
---|
ConflictContext(DependencyNode root,
java.util.Map<?,?> conflictIds,
java.util.Collection<ConflictResolver.ConflictItem> items) |
ConflictContext(DependencyNode root,
java.lang.Object conflictId,
java.util.Map<DependencyNode,java.lang.Object> conflictIds,
java.util.Collection<ConflictResolver.ConflictItem> items)
Creates a new conflict context.
|
ConflictItem(DependencyNode parent,
DependencyNode node,
int depth,
int optionalities,
java.lang.String... scopes)
Creates a new conflict item with the specified properties.
|
ConflictItem(DependencyNode parent,
DependencyNode node,
java.lang.String scope,
boolean optional) |
State(DependencyNode root,
java.util.Map<?,?> conflictIds,
int conflictIdCount,
DependencyGraphTransformationContext context) |
Constructor and Description |
---|
ConflictContext(DependencyNode root,
java.lang.Object conflictId,
java.util.Map<DependencyNode,java.lang.Object> conflictIds,
java.util.Collection<ConflictResolver.ConflictItem> items)
Creates a new conflict context.
|
Modifier and Type | Field and Description |
---|---|
private DependencyNode |
CloningDependencyVisitor.root |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<DependencyNode,DependencyNode> |
CloningDependencyVisitor.clones |
private java.util.Map<DependencyNode,DependencyNode> |
CloningDependencyVisitor.clones |
protected java.util.List<DependencyNode> |
AbstractDepthFirstNodeListGenerator.nodes |
private Stack<DependencyNode> |
CloningDependencyVisitor.parents |
private Stack<DependencyNode> |
FilteringDependencyVisitor.parents |
private Stack<DependencyNode> |
PathRecordingDependencyVisitor.parents |
private java.util.List<java.util.List<DependencyNode>> |
PathRecordingDependencyVisitor.paths |
private java.util.Map<DependencyNode,java.lang.Object> |
PathRecordingDependencyVisitor.visited |
private java.util.Map<DependencyNode,java.lang.Object> |
TreeDependencyVisitor.visitedNodes |
private java.util.Map<DependencyNode,java.lang.Object> |
AbstractDepthFirstNodeListGenerator.visitedNodes |
Modifier and Type | Method and Description |
---|---|
protected DependencyNode |
CloningDependencyVisitor.clone(DependencyNode node)
Creates a clone of the specified node.
|
DependencyNode |
CloningDependencyVisitor.getRootNode()
Gets the root node of the cloned dependency graph.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyNode> |
AbstractDepthFirstNodeListGenerator.getNodes()
Gets the list of dependency nodes that was generated during the graph traversal.
|
java.util.List<java.util.List<DependencyNode>> |
PathRecordingDependencyVisitor.getPaths()
Gets the paths leading to nodes matching the filter that have been recorded during the graph visit.
|
Modifier and Type | Method and Description |
---|---|
protected DependencyNode |
CloningDependencyVisitor.clone(DependencyNode node)
Creates a clone of the specified node.
|
protected boolean |
AbstractDepthFirstNodeListGenerator.setVisited(DependencyNode node)
Marks the specified node as being visited and determines whether the node has been visited before.
|
boolean |
CloningDependencyVisitor.visitEnter(DependencyNode node) |
boolean |
PostorderNodeListGenerator.visitEnter(DependencyNode node) |
boolean |
PreorderNodeListGenerator.visitEnter(DependencyNode node) |
boolean |
TreeDependencyVisitor.visitEnter(DependencyNode node) |
abstract boolean |
AbstractDepthFirstNodeListGenerator.visitEnter(DependencyNode node) |
boolean |
FilteringDependencyVisitor.visitEnter(DependencyNode node) |
boolean |
PathRecordingDependencyVisitor.visitEnter(DependencyNode node) |
boolean |
CloningDependencyVisitor.visitLeave(DependencyNode node) |
boolean |
PostorderNodeListGenerator.visitLeave(DependencyNode node) |
boolean |
PreorderNodeListGenerator.visitLeave(DependencyNode node) |
boolean |
TreeDependencyVisitor.visitLeave(DependencyNode node) |
abstract boolean |
AbstractDepthFirstNodeListGenerator.visitLeave(DependencyNode node) |
boolean |
FilteringDependencyVisitor.visitLeave(DependencyNode node) |
boolean |
PathRecordingDependencyVisitor.visitLeave(DependencyNode node) |