Package org.eclipse.aether.resolution
Class DependencyResult
java.lang.Object
org.eclipse.aether.resolution.DependencyResult
The result of a dependency resolution request.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDependencyResult(DependencyRequest request) Creates a new result for the specified request.
- 
Method SummaryModifier and TypeMethodDescriptionGets the resolution results for the dependency artifacts that matchedDependencyRequest.getFilter().Gets the exceptions that occurred while building the dependency graph.Gets the dependency cycles that were encountered while building the dependency graph.Gets the resolution results for the dependency nodes that matchedDependencyRequest.getFilter().Gets the resolution request that was made.getRoot()Gets the root node of the resolved dependency graph.setArtifactResults(List<ArtifactResult> results) Sets the resolution results for the artifacts that matchedDependencyRequest.getFilter().setCollectExceptions(List<Exception> exceptions) Records the specified exceptions while building the dependency graph.setCycles(List<DependencyCycle> cycles) Records the specified dependency cycles while building the dependency graph.setDependencyNodeResults(List<DependencyNode> results) Sets the resolution results for the dependency nodes that matchedDependencyRequest.getFilter().setRoot(DependencyNode root) Sets the root node of the resolved dependency graph.toString()
- 
Constructor Details- 
DependencyResultCreates a new result for the specified request.- Parameters:
- request- The resolution request, must not be- null.
 
 
- 
- 
Method Details- 
getRequestGets the resolution request that was made.- Returns:
- The resolution request, never null.
 
- 
getRootGets the root node of the resolved dependency graph. Note that this dependency graph might be incomplete/unfinished in case ofgetCollectExceptions()indicating errors during its calculation.- Returns:
- The root node of the resolved dependency graph or nullif none.
 
- 
setRootSets the root node of the resolved dependency graph.- Parameters:
- root- The root node of the resolved dependency graph, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getCyclesGets the dependency cycles that were encountered while building the dependency graph. Note that dependency cycles will only be reported here if the underlying request was created from aCollectRequest. If the underlyingDependencyRequestwas created from an existing dependency graph, information about cycles will not be available in this result.- Returns:
- The dependency cycles in the (raw) graph, never null.
 
- 
setCyclesRecords the specified dependency cycles while building the dependency graph.- Parameters:
- cycles- The dependency cycles to record, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getCollectExceptionsGets the exceptions that occurred while building the dependency graph.- Returns:
- The exceptions that occurred, never null.
 
- 
setCollectExceptionsRecords the specified exceptions while building the dependency graph.- Parameters:
- exceptions- The exceptions to record, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getDependencyNodeResultsGets the resolution results for the dependency nodes that matchedDependencyRequest.getFilter().- Returns:
- The resolution results for the dependency nodes, never null.
- Since:
- 2.0.0
 
- 
setDependencyNodeResultsSets the resolution results for the dependency nodes that matchedDependencyRequest.getFilter().- Parameters:
- results- The resolution results for the dependency nodes, may be- null.
- Returns:
- This result for chaining, never null.
- Since:
- 2.0.0
 
- 
getArtifactResultsGets the resolution results for the dependency artifacts that matchedDependencyRequest.getFilter().- Returns:
- The resolution results for the dependency artifacts, never null.
 
- 
setArtifactResultsSets the resolution results for the artifacts that matchedDependencyRequest.getFilter().- Parameters:
- results- The resolution results for the artifacts, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
toString
 
-