Package org.apache.maven.api.services
Interface DependencyResolver
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultDependencyResolver
Collects, flattens and resolves dependencies.
-
Method Summary
Modifier and TypeMethodDescriptionflatten
(Session session, Node node, ResolutionScope scope) resolve
(DependencyResolverRequest request) This method collects, flattens and resolves the dependencies.default DependencyResolverResult
resolve
(Session session, List<DependencyCoordinate> dependencies) default DependencyResolverResult
resolve
(Session session, List<DependencyCoordinate> dependencies, ResolutionScope scope) default DependencyResolverResult
resolve
(Session session, DependencyCoordinate dependency) default DependencyResolverResult
resolve
(Session session, DependencyCoordinate dependency, ResolutionScope scope) default DependencyResolverResult
default DependencyResolverResult
resolve
(Session session, Project project, ResolutionScope scope)
-
Method Details
-
flatten
List<Node> flatten(Session session, Node node, ResolutionScope scope) throws DependencyResolverException - Throws:
DependencyResolverException
-
resolve
DependencyResolverResult resolve(DependencyResolverRequest request) throws DependencyCollectorException, DependencyResolverException, ArtifactResolverException This method collects, flattens and resolves the dependencies.- Parameters:
request
- the request to resolve- Returns:
- the result of the resolution
- Throws:
DependencyCollectorException
DependencyResolverException
ArtifactResolverException
- See Also:
-
resolve
-
resolve
@Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull Project project, @Nonnull ResolutionScope scope) -
resolve
@Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull DependencyCoordinate dependency) -
resolve
@Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull DependencyCoordinate dependency, @Nonnull ResolutionScope scope) -
resolve
@Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull List<DependencyCoordinate> dependencies) -
resolve
@Nonnull default DependencyResolverResult resolve(@Nonnull Session session, @Nonnull List<DependencyCoordinate> dependencies, @Nonnull ResolutionScope scope)
-