org.apache.maven.project
Interface DependencyResolutionRequest

All Known Implementing Classes:
DefaultDependencyResolutionRequest

public interface DependencyResolutionRequest

A request to resolve the dependencies of a project.

Author:
Benjamin Bentmann

Method Summary
 MavenProject getMavenProject()
          Gets the project to resolve dependencies for.
 org.sonatype.aether.RepositorySystemSession getRepositorySession()
          Gets the session to use for repository access.
 org.sonatype.aether.graph.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(org.sonatype.aether.RepositorySystemSession repositorySession)
          Sets the session to use for repository access.
 DependencyResolutionRequest setResolutionFilter(org.sonatype.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 null if not set.

setMavenProject

DependencyResolutionRequest setMavenProject(MavenProject project)
Sets the project to resolve dependencies for.

Parameters:
project - The project to resolve dependencies for, may be null.
Returns:
This request for chaining, never null.

getResolutionFilter

org.sonatype.aether.graph.DependencyFilter getResolutionFilter()
Gets the filter used to exclude some dependencies from resolution.

Returns:
The filter to exclude dependencies from resolution or null to resolve all dependencies.

setResolutionFilter

DependencyResolutionRequest setResolutionFilter(org.sonatype.aether.graph.DependencyFilter filter)
Sets the filter used to exclude some dependencies from resolution.

Parameters:
filter - The filter to exclude dependencies from resolution, may be null to resolve all dependencies.
Returns:
This request for chaining, never null.

getRepositorySession

org.sonatype.aether.RepositorySystemSession getRepositorySession()
Gets the session to use for repository access.

Returns:
The repository session or null if not set.

setRepositorySession

DependencyResolutionRequest setRepositorySession(org.sonatype.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.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.