Package org.apache.maven.api.services
Interface DependencyResolverRequest
A request to collect the transitive dependencies and to build a dependency graph from them. There are three ways to
create a dependency graph. First, only the root dependency can be given. Second, a root dependency and direct
dependencies can be specified in which case the specified direct dependencies are merged with the direct dependencies
retrieved from the artifact descriptor of the root dependency. And last, only direct dependencies can be specified in
which case the root node of the resulting graph has no associated dependency.
- Since:
- 4.0.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies, PathScope scope) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact, PathScope scope) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency, PathScope scope) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequest
build
(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) builder()
Returns a filter for the types of path (class-path, module-path, …) accepted by the tool.getRoot()
boolean
-
Method Details
-
getSession
-
getRequestType
-
getProject
-
getRootArtifact
-
getRoot
-
getDependencies
-
getManagedDependencies
-
getVerbose
boolean getVerbose() -
getPathScope
-
getPathTypeFilter
Returns a filter for the types of path (class-path, module-path, …) accepted by the tool. For example, if a Java tools accepts only class-path elements, then the filter should returntrue
forJavaPathType.CLASSES
andfalse
forJavaPathType.MODULES
. If no filter is explicitly set, then the default is a filter accepting everything.- Returns:
- a filter for the types of path (class-path, module-path, …) accepted by the tool
-
getRepositories
-
builder
-
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact, PathScope scope) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, Project project) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency, PathScope scope) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies) -
build
@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies, PathScope scope)
-