org.apache.maven.project
Interface ProjectBuildingRequest

All Known Implementing Classes:
DefaultProjectBuildingRequest

public interface ProjectBuildingRequest


Nested Class Summary
static class ProjectBuildingRequest.RepositoryMerging
          The possible merge modes for combining remote repositories.
 
Method Summary
 void addProfile(Profile profile)
          Add a Profile that has come from an external source.
 List<String> getActiveProfileIds()
           
 Date getBuildStartTime()
          Gets the start time of the build.
 List<String> getInactiveProfileIds()
           
 ArtifactRepository getLocalRepository()
           
 List<ArtifactRepository> getPluginArtifactRepositories()
           
 List<Profile> getProfiles()
           
 MavenProject getProject()
           
 List<ArtifactRepository> getRemoteRepositories()
           
 ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
          Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this request
 RepositorySystemSession getRepositorySession()
           
 Properties getSystemProperties()
          Gets the system properties to use for interpolation and profile activation.
 Properties getUserProperties()
          Gets the user properties to use for interpolation and profile activation.
 int getValidationLevel()
          Gets the level of validation to perform on processed models.
 boolean isProcessPlugins()
           
 boolean isResolveDependencies()
           
 void setActiveProfileIds(List<String> activeProfileIds)
          Set any active profiles that the ProjectBuilder should consider while constructing a MavenProject.
 void setBuildStartTime(Date buildStartTime)
          Sets the start time of the build.
 void setInactiveProfileIds(List<String> inactiveProfileIds)
           
 ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)
           
 ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifacgRepositories)
           
 ProjectBuildingRequest setProcessPlugins(boolean processPlugins)
           
 void setProfiles(List<Profile> profiles)
           
 void setProject(MavenProject mavenProject)
           
 ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
           
 ProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging mode)
          Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this request.
 ProjectBuildingRequest setRepositorySession(RepositorySystemSession repositorySession)
           
 ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)
           
 ProjectBuildingRequest setSystemProperties(Properties systemProperties)
          Sets the system properties to use for interpolation and profile activation.
 ProjectBuildingRequest setUserProperties(Properties userProperties)
          Sets the user properties to use for interpolation and profile activation.
 ProjectBuildingRequest setValidationLevel(int validationLevel)
          Controls the level of validation to perform on processed models.
 

Method Detail

setLocalRepository

ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)

getLocalRepository

ArtifactRepository getLocalRepository()

setRemoteRepositories

ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)

getRemoteRepositories

List<ArtifactRepository> getRemoteRepositories()

setPluginArtifactRepositories

ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifacgRepositories)

getPluginArtifactRepositories

List<ArtifactRepository> getPluginArtifactRepositories()

setSystemProperties

ProjectBuildingRequest setSystemProperties(Properties systemProperties)
Sets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment like System.getProperties() and environment variables.

Parameters:
systemProperties - The system properties, may be null.
Returns:
This request, never null.

getSystemProperties

Properties getSystemProperties()
Gets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment like System.getProperties() and environment variables.

Returns:
The system properties, never null.

setUserProperties

ProjectBuildingRequest setUserProperties(Properties userProperties)
Sets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the -Dkey=value parameter on the command line.

Parameters:
userProperties - The user properties, may be null.
Returns:
This request, never null.

getUserProperties

Properties getUserProperties()
Gets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the -Dkey=value parameter on the command line.

Returns:
The user properties, never null.

setProject

void setProject(MavenProject mavenProject)

getProject

MavenProject getProject()

setProcessPlugins

ProjectBuildingRequest setProcessPlugins(boolean processPlugins)

isProcessPlugins

boolean isProcessPlugins()

setResolveDependencies

ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)

isResolveDependencies

boolean isResolveDependencies()

setValidationLevel

ProjectBuildingRequest setValidationLevel(int validationLevel)
Controls the level of validation to perform on processed models. By default, models are validated in strict mode.

Parameters:
validationLevel - The level of validation to perform on processed models, e.g. ModelBuildingRequest.VALIDATION_LEVEL_STRICT.
Returns:
This configuration, never null.

getValidationLevel

int getValidationLevel()
Gets the level of validation to perform on processed models.

Returns:
The level of validation to perform on processed models.

setActiveProfileIds

void setActiveProfileIds(List<String> activeProfileIds)
Set any active profiles that the ProjectBuilder should consider while constructing a MavenProject.


getActiveProfileIds

List<String> getActiveProfileIds()

setInactiveProfileIds

void setInactiveProfileIds(List<String> inactiveProfileIds)

getInactiveProfileIds

List<String> getInactiveProfileIds()

addProfile

void addProfile(Profile profile)
Add a Profile that has come from an external source. This may be from a custom configuration like the MavenCLI settings.xml file, or from a custom dialog in an IDE integration like M2Eclipse.

Parameters:
profile -

setProfiles

void setProfiles(List<Profile> profiles)

getProfiles

List<Profile> getProfiles()

getBuildStartTime

Date getBuildStartTime()
Gets the start time of the build.

Returns:
The start time of the build or null if unknown.

setBuildStartTime

void setBuildStartTime(Date buildStartTime)
Sets the start time of the build.

Parameters:
buildStartTime - The start time of the build, may be null.

getRepositorySession

RepositorySystemSession getRepositorySession()

setRepositorySession

ProjectBuildingRequest setRepositorySession(RepositorySystemSession repositorySession)

setRepositoryMerging

ProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging mode)
Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this request.

Parameters:
mode - The repository merge mode, must not be null.
Returns:
This request for chaining, never null.
See Also:
setRemoteRepositories(List)

getRepositoryMerging

ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this request

Returns:
The merge mode, never null.


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