Package org.apache.maven.project
Class DefaultDependencyResolutionRequest
- java.lang.Object
-
- org.apache.maven.project.DefaultDependencyResolutionRequest
-
- All Implemented Interfaces:
DependencyResolutionRequest
public class DefaultDependencyResolutionRequest extends java.lang.Object implements DependencyResolutionRequest
- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencyResolutionRequest()DefaultDependencyResolutionRequest(MavenProject project, org.eclipse.aether.RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MavenProjectgetMavenProject()Gets the project to resolve dependencies for.org.eclipse.aether.RepositorySystemSessiongetRepositorySession()Gets the session to use for repository access.org.eclipse.aether.graph.DependencyFiltergetResolutionFilter()Gets the filter used to exclude some dependencies from resolution.DependencyResolutionRequestsetMavenProject(MavenProject project)Sets the project to resolve dependencies for.DependencyResolutionRequestsetRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)Sets the session to use for repository access.DependencyResolutionRequestsetResolutionFilter(org.eclipse.aether.graph.DependencyFilter filter)Sets the filter used to exclude some dependencies from resolution.
-
-
-
Constructor Detail
-
DefaultDependencyResolutionRequest
public DefaultDependencyResolutionRequest()
-
DefaultDependencyResolutionRequest
public DefaultDependencyResolutionRequest(MavenProject project, org.eclipse.aether.RepositorySystemSession session)
-
-
Method Detail
-
getResolutionFilter
public org.eclipse.aether.graph.DependencyFilter getResolutionFilter()
Description copied from interface:DependencyResolutionRequestGets the filter used to exclude some dependencies from resolution.- Specified by:
getResolutionFilterin interfaceDependencyResolutionRequest- Returns:
- The filter to exclude dependencies from resolution or
nullto resolve all dependencies.
-
getMavenProject
public MavenProject getMavenProject()
Description copied from interface:DependencyResolutionRequestGets the project to resolve dependencies for.- Specified by:
getMavenProjectin interfaceDependencyResolutionRequest- Returns:
- The project to resolve dependencies for or
nullif not set.
-
getRepositorySession
public org.eclipse.aether.RepositorySystemSession getRepositorySession()
Description copied from interface:DependencyResolutionRequestGets the session to use for repository access.- Specified by:
getRepositorySessionin interfaceDependencyResolutionRequest- Returns:
- The repository session or
nullif not set.
-
setResolutionFilter
public DependencyResolutionRequest setResolutionFilter(org.eclipse.aether.graph.DependencyFilter filter)
Description copied from interface:DependencyResolutionRequestSets 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:
setResolutionFilterin interfaceDependencyResolutionRequest- Parameters:
filter- The filter to exclude dependencies from resolution, may benullto resolve all dependencies.- Returns:
- This request for chaining, never
null.
-
setMavenProject
public DependencyResolutionRequest setMavenProject(MavenProject project)
Description copied from interface:DependencyResolutionRequestSets the project to resolve dependencies for.- Specified by:
setMavenProjectin 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:DependencyResolutionRequestSets the session to use for repository access.- Specified by:
setRepositorySessionin interfaceDependencyResolutionRequest- Parameters:
repositorySession- The repository session to use.- Returns:
- This request for chaining, never
null.
-
-