@Experimental public interface DependencyCollector extends Service
| Modifier and Type | Method and Description |
|---|---|
DependencyCollectorResult |
collect(DependencyCollectorRequest request)
Collects the transitive dependencies and builds a dependency graph.
|
default DependencyCollectorResult |
collect(Session session,
Artifact artifact)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
|
default DependencyCollectorResult |
collect(Session session,
DependencyCoordinate root)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
|
default DependencyCollectorResult |
collect(Session session,
Project project)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
|
@Nonnull DependencyCollectorResult collect(@Nonnull DependencyCollectorRequest request)
request - The dependency collection request, must not be null.null.DependencyCollectorException - If the dependency tree could not be built.IllegalArgumentException - if an argument is null or invalidcollect(Session, Project),
collect(Session, DependencyCoordinate),
collect(Session, Artifact)@Nonnull default DependencyCollectorResult collect(@Nonnull Session session, @Nonnull DependencyCoordinate root)
session - The Session, must not be null.root - The Maven Dependency, must not be null.null.DependencyCollectorException - If the dependency tree could not be built.IllegalArgumentException - if an argument is null or invalidcollect(DependencyCollectorRequest)@Nonnull default DependencyCollectorResult collect(@Nonnull Session session, @Nonnull Project project)
session - The Session, must not be null.project - The Project, must not be null.null.DependencyCollectorException - If the dependency tree could not be built.IllegalArgumentException - if an argument is null or invalidcollect(DependencyCollectorRequest)@Nonnull default DependencyCollectorResult collect(@Nonnull Session session, @Nonnull Artifact artifact)
session - The Session, must not be null.artifact - The Artifact, must not be null.null.DependencyCollectorException - If the dependency tree could not be built.IllegalArgumentException - if an argument is null or invalidcollect(DependencyCollectorRequest)Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.