Package org.apache.maven.internal.impl
Class DefaultDependencyResolver
java.lang.Object
org.apache.maven.internal.impl.DefaultDependencyResolver
- All Implemented Interfaces:
Service
,DependencyResolver
@Named
@Singleton
public class DefaultDependencyResolver
extends Object
implements DependencyResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollect
(DependencyResolverRequest request) Collects the transitive dependencies and builds a dependency graph.Flattens a list of nodes.resolve
(DependencyResolverRequest request) Collects, flattens and resolves the dependencies.
-
Constructor Details
-
DefaultDependencyResolver
public DefaultDependencyResolver()
-
-
Method Details
-
collect
@Nonnull public DependencyResolverResult collect(@Nonnull DependencyResolverRequest request) throws DependencyResolverException, IllegalArgumentException Description copied from interface:DependencyResolver
Collects the transitive dependencies and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files.- Specified by:
collect
in interfaceDependencyResolver
- Parameters:
request
- the dependency collection request, must not benull
- Returns:
- the collection result, never
null
- Throws:
DependencyResolverException
- if the dependency tree could not be builtIllegalArgumentException
- if an argument is null or invalid- See Also:
-
flatten
Description copied from interface:DependencyResolver
Flattens a list of nodes.- Specified by:
flatten
in interfaceDependencyResolver
- Parameters:
s
-node
-scope
-- Returns:
- Throws:
DependencyResolverException
-
resolve
public DependencyResolverResult resolve(DependencyResolverRequest request) throws DependencyResolverException, DependencyResolverException, ArtifactResolverException Collects, flattens and resolves the dependencies.- Specified by:
resolve
in interfaceDependencyResolver
- Parameters:
request
- the request to resolve- Returns:
- the result of the resolution
- Throws:
DependencyResolverException
ArtifactResolverException
- See Also:
-