Package org.apache.maven.project
Interface DependencyResolutionRequest
- All Known Implementing Classes:
DefaultDependencyResolutionRequest
Deprecated.
A request to resolve the dependencies of a project.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the project to resolve dependencies for.org.eclipse.aether.RepositorySystemSessionDeprecated.Gets the session to use for repository access.org.eclipse.aether.graph.DependencyFilterDeprecated.Gets the filter used to exclude some dependencies from resolution.setMavenProject(MavenProject project) Deprecated.Sets the project to resolve dependencies for.setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Deprecated.Sets the session to use for repository access.setResolutionFilter(org.eclipse.aether.graph.DependencyFilter filter) Deprecated.Sets the filter used to exclude some dependencies from resolution.
-
Method Details
-
getMavenProject
MavenProject getMavenProject()Deprecated.Gets the project to resolve dependencies for.- Returns:
- The project to resolve dependencies for or
nullif not set.
-
setMavenProject
Deprecated.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()Deprecated.Gets the filter used to exclude some dependencies from resolution.- Returns:
- The filter to exclude dependencies from resolution or
nullto resolve all dependencies.
-
setResolutionFilter
Deprecated.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()Deprecated.Gets the session to use for repository access.- Returns:
- The repository session or
nullif not set.
-
setRepositorySession
DependencyResolutionRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Deprecated.Sets the session to use for repository access.- Parameters:
repositorySession- The repository session to use.- Returns:
- This request for chaining, never
null.
-
org.apache.maven.api.services.ProjectBuilderinstead