public class DefaultDependencyResolutionRequest extends Object implements DependencyResolutionRequest
Constructor and Description |
---|
DefaultDependencyResolutionRequest() |
DefaultDependencyResolutionRequest(MavenProject project,
RepositorySystemSession session) |
Modifier and Type | Method and Description |
---|---|
MavenProject |
getMavenProject()
Gets the project to resolve dependencies for.
|
RepositorySystemSession |
getRepositorySession()
Gets the session to use for repository access.
|
DependencyFilter |
getResolutionFilter()
Gets the filter used to exclude some dependencies from resolution.
|
DependencyResolutionRequest |
setMavenProject(MavenProject project)
Sets the project to resolve dependencies for.
|
DependencyResolutionRequest |
setRepositorySession(RepositorySystemSession repositorySession)
Sets the session to use for repository access.
|
DependencyResolutionRequest |
setResolutionFilter(DependencyFilter filter)
Sets the filter used to exclude some dependencies from resolution.
|
public DefaultDependencyResolutionRequest()
public DefaultDependencyResolutionRequest(MavenProject project, RepositorySystemSession session)
public DependencyFilter getResolutionFilter()
DependencyResolutionRequest
getResolutionFilter
in interface DependencyResolutionRequest
null
to resolve all dependencies.public MavenProject getMavenProject()
DependencyResolutionRequest
getMavenProject
in interface DependencyResolutionRequest
null
if not set.public RepositorySystemSession getRepositorySession()
DependencyResolutionRequest
getRepositorySession
in interface DependencyResolutionRequest
null
if not set.public DependencyResolutionRequest setResolutionFilter(DependencyFilter filter)
DependencyResolutionRequest
setResolutionFilter
in interface DependencyResolutionRequest
filter
- The filter to exclude dependencies from resolution, may be null
to resolve all
dependencies.null
.public DependencyResolutionRequest setMavenProject(MavenProject project)
DependencyResolutionRequest
setMavenProject
in interface DependencyResolutionRequest
project
- The project to resolve dependencies for, may be null
.null
.public DependencyResolutionRequest setRepositorySession(RepositorySystemSession repositorySession)
DependencyResolutionRequest
setRepositorySession
in interface DependencyResolutionRequest
repositorySession
- The repository session to use.null
.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.