Package org.apache.maven.project
Interface DependencyResolutionRequest
-
- All Known Implementing Classes:
DefaultDependencyResolutionRequest
public interface DependencyResolutionRequestA request to resolve the dependencies of a project.- Author:
- Benjamin Bentmann
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getMavenProject
MavenProject getMavenProject()
Gets the project to resolve dependencies for.- Returns:
- The project to resolve dependencies for or
nullif not set.
-
setMavenProject
DependencyResolutionRequest setMavenProject(MavenProject project)
Sets the project to resolve dependencies for.- Parameters:
project- The project to resolve dependencies for, may benull.- Returns:
- This request for chaining, never
null.
-
getResolutionFilter
org.eclipse.aether.graph.DependencyFilter getResolutionFilter()
Gets the filter used to exclude some dependencies from resolution.- Returns:
- The filter to exclude dependencies from resolution or
nullto resolve all dependencies.
-
setResolutionFilter
DependencyResolutionRequest setResolutionFilter(org.eclipse.aether.graph.DependencyFilter filter)
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.- Parameters:
filter- The filter to exclude dependencies from resolution, may benullto resolve all dependencies.- Returns:
- This request for chaining, never
null.
-
getRepositorySession
org.eclipse.aether.RepositorySystemSession getRepositorySession()
Gets the session to use for repository access.- Returns:
- The repository session or
nullif not set.
-
setRepositorySession
DependencyResolutionRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)
Sets the session to use for repository access.- Parameters:
repositorySession- The repository session to use.- Returns:
- This request for chaining, never
null.
-
-