Package org.apache.maven.project
Interface DependencyResolutionResult
-
public interface DependencyResolutionResultThe result of a project dependency resolution.- Author:
- Benjamin Bentmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.Exception>getCollectionErrors()Gets the errors that occurred while building the dependency graph.java.util.List<org.eclipse.aether.graph.Dependency>getDependencies()Gets the transitive dependencies of the project that were not excluded byDependencyResolutionRequest.getResolutionFilter().org.eclipse.aether.graph.DependencyNodegetDependencyGraph()Gets the dependency graph of the project.java.util.List<java.lang.Exception>getResolutionErrors(org.eclipse.aether.graph.Dependency dependency)Gets the errors that occurred while resolving the specified dependency.java.util.List<org.eclipse.aether.graph.Dependency>getResolvedDependencies()Gets the dependencies that were successfully resolved.java.util.List<org.eclipse.aether.graph.Dependency>getUnresolvedDependencies()Gets the dependencies that could not be resolved.
-
-
-
Method Detail
-
getDependencyGraph
org.eclipse.aether.graph.DependencyNode getDependencyGraph()
Gets the dependency graph of the project.- Returns:
- The dependency graph or
nullif not available.
-
getDependencies
java.util.List<org.eclipse.aether.graph.Dependency> getDependencies()
Gets the transitive dependencies of the project that were not excluded byDependencyResolutionRequest.getResolutionFilter(). This list is a union of the results fromgetResolvedDependencies()andgetUnresolvedDependencies().- Returns:
- The transitive dependencies, never
null.
-
getResolvedDependencies
java.util.List<org.eclipse.aether.graph.Dependency> getResolvedDependencies()
Gets the dependencies that were successfully resolved.- Returns:
- The resolved dependencies, never
null.
-
getUnresolvedDependencies
java.util.List<org.eclipse.aether.graph.Dependency> getUnresolvedDependencies()
Gets the dependencies that could not be resolved.- Returns:
- The unresolved dependencies, never
null.
-
getCollectionErrors
java.util.List<java.lang.Exception> getCollectionErrors()
Gets the errors that occurred while building the dependency graph.- Returns:
- The errors that occurred while building the dependency graph, never
null.
-
getResolutionErrors
java.util.List<java.lang.Exception> getResolutionErrors(org.eclipse.aether.graph.Dependency dependency)
Gets the errors that occurred while resolving the specified dependency.- Parameters:
dependency- The dependency for which to retrieve the errors, must not benull.- Returns:
- The resolution errors for the specified dependency, never
null.
-
-