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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enum
- 
Method SummaryModifier and TypeMethodDescriptionstatic DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies) static DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies, PathScope scope) static DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) static DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency) static DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency, PathScope scope) static DependencyResolverRequestbuild(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequestbuild(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
- 
getVerboseboolean getVerbose()
- 
getPathScope
- 
getPathTypeFilterReturns 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 returntrueforJavaPathType.CLASSESandfalseforJavaPathType.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
 
- 
builder
- 
build@Nonnull static DependencyResolverRequest build(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) 
- 
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) 
 
-