Package org.apache.maven.internal.impl
Class DefaultDependencyCollector
java.lang.Object
org.apache.maven.internal.impl.DefaultDependencyCollector
- All Implemented Interfaces:
Service
,DependencyCollector
@Named
@Singleton
public class DefaultDependencyCollector
extends Object
implements DependencyCollector
-
Method Summary
Modifier and TypeMethodDescriptioncollect
(DependencyCollectorRequest request) Collects the transitive dependencies and builds a dependency graph.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.services.DependencyCollector
collect, collect, collect
-
Method Details
-
collect
@Nonnull public DependencyCollectorResult collect(@Nonnull DependencyCollectorRequest request) throws DependencyCollectorException, IllegalArgumentException Description copied from interface:DependencyCollector
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 interfaceDependencyCollector
- Parameters:
request
- the dependency collection request, must not benull
- Returns:
- the collection result, never
null
- Throws:
DependencyCollectorException
- if the dependency tree could not be builtIllegalArgumentException
- if an argument is null or invalid- See Also:
-