org.apache.maven.project
Interface DependencyResolutionResult


public interface DependencyResolutionResult

The result of a project dependency resolution.

Author:
Benjamin Bentmann

Method Summary
 List<Exception> getCollectionErrors()
          Gets the errors that occurred while building the dependency graph.
 List<Dependency> getDependencies()
          Gets the transitive dependencies of the project that were not excluded by DependencyResolutionRequest.getResolutionFilter().
 DependencyNode getDependencyGraph()
          Gets the dependency graph of the project.
 List<Exception> getResolutionErrors(Dependency dependency)
          Gets the errors that occurred while resolving the specified dependency.
 List<Dependency> getResolvedDependencies()
          Gets the dependencies that were successfully resolved.
 List<Dependency> getUnresolvedDependencies()
          Gets the dependencies that could not be resolved.
 

Method Detail

getDependencyGraph

DependencyNode getDependencyGraph()
Gets the dependency graph of the project.

Returns:
The dependency graph or null if not available.

getDependencies

List<Dependency> getDependencies()
Gets the transitive dependencies of the project that were not excluded by DependencyResolutionRequest.getResolutionFilter(). This list is a union of the results from getResolvedDependencies() and getUnresolvedDependencies().

Returns:
The transitive dependencies, never null.

getResolvedDependencies

List<Dependency> getResolvedDependencies()
Gets the dependencies that were successfully resolved.

Returns:
The resolved dependencies, never null.

getUnresolvedDependencies

List<Dependency> getUnresolvedDependencies()
Gets the dependencies that could not be resolved.

Returns:
The unresolved dependencies, never null.

getCollectionErrors

List<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

List<Exception> getResolutionErrors(Dependency dependency)
Gets the errors that occurred while resolving the specified dependency.

Parameters:
dependency - The dependency for which to retrieve the errors, must not be null.
Returns:
The resolution errors for the specified dependency, never null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.