Package org.apache.maven.project
Class DefaultDependencyResolutionRequest
java.lang.Object
org.apache.maven.project.DefaultDependencyResolutionRequest
- All Implemented Interfaces:
DependencyResolutionRequest
public class DefaultDependencyResolutionRequest
extends Object
implements DependencyResolutionRequest
-
Constructor Summary
ConstructorDescriptionDefaultDependencyResolutionRequest
(MavenProject project, org.eclipse.aether.RepositorySystemSession session) -
Method Summary
Modifier and TypeMethodDescriptionGets the project to resolve dependencies for.org.eclipse.aether.RepositorySystemSession
Gets the session to use for repository access.org.eclipse.aether.graph.DependencyFilter
Gets the filter used to exclude some dependencies from resolution.setMavenProject
(MavenProject project) Sets the project to resolve dependencies for.setRepositorySession
(org.eclipse.aether.RepositorySystemSession repositorySession) Sets the session to use for repository access.setResolutionFilter
(org.eclipse.aether.graph.DependencyFilter filter) Sets the filter used to exclude some dependencies from resolution.
-
Constructor Details
-
DefaultDependencyResolutionRequest
public DefaultDependencyResolutionRequest() -
DefaultDependencyResolutionRequest
public DefaultDependencyResolutionRequest(MavenProject project, org.eclipse.aether.RepositorySystemSession session)
-
-
Method Details
-
getResolutionFilter
public org.eclipse.aether.graph.DependencyFilter getResolutionFilter()Description copied from interface:DependencyResolutionRequest
Gets the filter used to exclude some dependencies from resolution.- Specified by:
getResolutionFilter
in interfaceDependencyResolutionRequest
- Returns:
- The filter to exclude dependencies from resolution or
null
to resolve all dependencies.
-
getMavenProject
Description copied from interface:DependencyResolutionRequest
Gets the project to resolve dependencies for.- Specified by:
getMavenProject
in interfaceDependencyResolutionRequest
- Returns:
- The project to resolve dependencies for or
null
if not set.
-
getRepositorySession
public org.eclipse.aether.RepositorySystemSession getRepositorySession()Description copied from interface:DependencyResolutionRequest
Gets the session to use for repository access.- Specified by:
getRepositorySession
in interfaceDependencyResolutionRequest
- Returns:
- The repository session or
null
if not set.
-
setResolutionFilter
public DependencyResolutionRequest setResolutionFilter(org.eclipse.aether.graph.DependencyFilter filter) Description copied from interface:DependencyResolutionRequest
Sets the filter used to exclude some dependencies from resolution. Note that this filter only controls the resolution/download of dependency artifacts, not the inclusion of dependency nodes in the resolved dependency graph.- Specified by:
setResolutionFilter
in interfaceDependencyResolutionRequest
- Parameters:
filter
- The filter to exclude dependencies from resolution, may benull
to resolve all dependencies.- Returns:
- This request for chaining, never
null
.
-
setMavenProject
Description copied from interface:DependencyResolutionRequest
Sets the project to resolve dependencies for.- Specified by:
setMavenProject
in interfaceDependencyResolutionRequest
- Parameters:
project
- The project to resolve dependencies for, may benull
.- Returns:
- This request for chaining, never
null
.
-
setRepositorySession
public DependencyResolutionRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Description copied from interface:DependencyResolutionRequest
Sets the session to use for repository access.- Specified by:
setRepositorySession
in interfaceDependencyResolutionRequest
- Parameters:
repositorySession
- The repository session to use.- Returns:
- This request for chaining, never
null
.
-