org.apache.maven.execution
Interface MavenExecutionRequest

All Known Implementing Classes:
DefaultMavenExecutionRequest

public interface MavenExecutionRequest

Author:
Jason van Zyl

Field Summary
static String CHECKSUM_POLICY_FAIL
           
static String CHECKSUM_POLICY_WARN
           
static int LOGGING_LEVEL_DEBUG
           
static int LOGGING_LEVEL_DISABLED
           
static int LOGGING_LEVEL_ERROR
           
static int LOGGING_LEVEL_FATAL
           
static int LOGGING_LEVEL_INFO
           
static int LOGGING_LEVEL_WARN
           
static String REACTOR_FAIL_AT_END
           
static String REACTOR_FAIL_FAST
           
static String REACTOR_FAIL_NEVER
           
static String REACTOR_MAKE_BOTH
           
static String REACTOR_MAKE_DOWNSTREAM
           
static String REACTOR_MAKE_UPSTREAM
           
 
Method Summary
 MavenExecutionRequest addActiveProfile(String profile)
           
 MavenExecutionRequest addActiveProfiles(List<String> profiles)
           
 MavenExecutionRequest addInactiveProfile(String profile)
           
 MavenExecutionRequest addInactiveProfiles(List<String> profiles)
           
 MavenExecutionRequest addMirror(Mirror mirror)
           
 MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)
           
 MavenExecutionRequest addPluginGroup(String pluginGroup)
           
 MavenExecutionRequest addPluginGroups(List<String> pluginGroups)
           
 MavenExecutionRequest addProfile(Profile profile)
           
 MavenExecutionRequest addProxy(Proxy proxy)
           
 MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)
           
 MavenExecutionRequest addServer(Server server)
           
 List<String> getActiveProfiles()
           
 String getBaseDirectory()
           
 ExecutionListener getExecutionListener()
           
 String getGlobalChecksumPolicy()
           
 File getGlobalSettingsFile()
           
 List<String> getGoals()
           
 List<String> getInactiveProfiles()
           
 ArtifactRepository getLocalRepository()
           
 File getLocalRepositoryPath()
           
 int getLoggingLevel()
           
 String getMakeBehavior()
           
 List<Mirror> getMirrors()
           
 List<ArtifactRepository> getPluginArtifactRepositories()
           
 List<String> getPluginGroups()
           
 File getPom()
           
 List<Profile> getProfiles()
           
 ProjectBuildingRequest getProjectBuildingRequest()
           
 List<Proxy> getProxies()
           
 String getReactorFailureBehavior()
           
 List<ArtifactRepository> getRemoteRepositories()
           
 RepositoryCache getRepositoryCache()
           
 String getResumeFrom()
           
 List<String> getSelectedProjects()
           
 List<Server> getServers()
           
 Date getStartTime()
           
 Properties getSystemProperties()
          Gets the system properties to use for interpolation and profile activation.
 String getThreadCount()
           
 TransferListener getTransferListener()
           
 Properties getUserProperties()
          Gets the user properties to use for interpolation and profile activation.
 File getUserSettingsFile()
           
 File getUserToolchainsFile()
           
 WorkspaceReader getWorkspaceReader()
           
 boolean isCacheNotFound()
           
 boolean isCacheTransferError()
           
 boolean isInteractiveMode()
           
 boolean isNoSnapshotUpdates()
           
 boolean isOffline()
           
 boolean isPerCoreThreadCount()
           
 boolean isProjectPresent()
           
 boolean isRecursive()
           
 boolean isShowErrors()
           
 boolean isThreadConfigurationPresent()
           
 boolean isUpdateSnapshots()
           
 MavenExecutionRequest setActiveProfiles(List<String> profiles)
           
 MavenExecutionRequest setBaseDirectory(File basedir)
           
 MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)
           
 MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)
           
 MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
           
 MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy)
           
 MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile)
           
 MavenExecutionRequest setGoals(List<String> goals)
           
 MavenExecutionRequest setInactiveProfiles(List<String> profiles)
           
 MavenExecutionRequest setInteractiveMode(boolean interactive)
           
 MavenExecutionRequest setLocalRepository(ArtifactRepository repository)
           
 MavenExecutionRequest setLocalRepositoryPath(File localRepository)
           
 MavenExecutionRequest setLocalRepositoryPath(String localRepository)
           
 MavenExecutionRequest setLoggingLevel(int loggingLevel)
           
 MavenExecutionRequest setMakeBehavior(String makeBehavior)
           
 MavenExecutionRequest setMirrors(List<Mirror> mirrors)
           
 MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)
           
 MavenExecutionRequest setOffline(boolean offline)
           
 void setPerCoreThreadCount(boolean perCoreThreadCount)
           
 MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> repositories)
           
 MavenExecutionRequest setPluginGroups(List<String> pluginGroups)
           
 MavenExecutionRequest setPom(File pom)
           
 MavenExecutionRequest setProfiles(List<Profile> profiles)
           
 MavenExecutionRequest setProjectPresent(boolean isProjectPresent)
           
 MavenExecutionRequest setProxies(List<Proxy> proxies)
           
 MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)
           
 MavenExecutionRequest setRecursive(boolean recursive)
           
 MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> repositories)
          Set a new list of remote repositories to use the execution request.
 MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache)
           
 MavenExecutionRequest setResumeFrom(String project)
           
 MavenExecutionRequest setSelectedProjects(List<String> projects)
           
 MavenExecutionRequest setServers(List<Server> servers)
           
 MavenExecutionRequest setShowErrors(boolean showErrors)
           
 MavenExecutionRequest setStartTime(Date start)
           
 MavenExecutionRequest setSystemProperties(Properties systemProperties)
          Sets the system properties to use for interpolation and profile activation.
 void setThreadCount(String threadCount)
           
 MavenExecutionRequest setTransferListener(TransferListener transferListener)
           
 MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
           
 MavenExecutionRequest setUserProperties(Properties userProperties)
          Sets the user properties to use for interpolation and profile activation.
 MavenExecutionRequest setUserSettingsFile(File userSettingsFile)
           
 MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)
           
 MavenExecutionRequest setWorkspaceReader(WorkspaceReader workspaceReader)
           
 

Field Detail

LOGGING_LEVEL_DEBUG

static final int LOGGING_LEVEL_DEBUG
See Also:
Constant Field Values

LOGGING_LEVEL_INFO

static final int LOGGING_LEVEL_INFO
See Also:
Constant Field Values

LOGGING_LEVEL_WARN

static final int LOGGING_LEVEL_WARN
See Also:
Constant Field Values

LOGGING_LEVEL_ERROR

static final int LOGGING_LEVEL_ERROR
See Also:
Constant Field Values

LOGGING_LEVEL_FATAL

static final int LOGGING_LEVEL_FATAL
See Also:
Constant Field Values

LOGGING_LEVEL_DISABLED

static final int LOGGING_LEVEL_DISABLED
See Also:
Constant Field Values

REACTOR_FAIL_FAST

static final String REACTOR_FAIL_FAST
See Also:
Constant Field Values

REACTOR_FAIL_AT_END

static final String REACTOR_FAIL_AT_END
See Also:
Constant Field Values

REACTOR_FAIL_NEVER

static final String REACTOR_FAIL_NEVER
See Also:
Constant Field Values

REACTOR_MAKE_UPSTREAM

static final String REACTOR_MAKE_UPSTREAM
See Also:
Constant Field Values

REACTOR_MAKE_DOWNSTREAM

static final String REACTOR_MAKE_DOWNSTREAM
See Also:
Constant Field Values

REACTOR_MAKE_BOTH

static final String REACTOR_MAKE_BOTH
See Also:
Constant Field Values

CHECKSUM_POLICY_FAIL

static final String CHECKSUM_POLICY_FAIL
See Also:
Constant Field Values

CHECKSUM_POLICY_WARN

static final String CHECKSUM_POLICY_WARN
See Also:
Constant Field Values
Method Detail

setBaseDirectory

MavenExecutionRequest setBaseDirectory(File basedir)

getBaseDirectory

String getBaseDirectory()

setStartTime

MavenExecutionRequest setStartTime(Date start)

getStartTime

Date getStartTime()

setGoals

MavenExecutionRequest setGoals(List<String> goals)

getGoals

List<String> getGoals()

setSystemProperties

MavenExecutionRequest 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

MavenExecutionRequest 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.

setReactorFailureBehavior

MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)

getReactorFailureBehavior

String getReactorFailureBehavior()

setSelectedProjects

MavenExecutionRequest setSelectedProjects(List<String> projects)

getSelectedProjects

List<String> getSelectedProjects()

setResumeFrom

MavenExecutionRequest setResumeFrom(String project)

getResumeFrom

String getResumeFrom()

setMakeBehavior

MavenExecutionRequest setMakeBehavior(String makeBehavior)

getMakeBehavior

String getMakeBehavior()

setThreadCount

void setThreadCount(String threadCount)

getThreadCount

String getThreadCount()

isThreadConfigurationPresent

boolean isThreadConfigurationPresent()

setPerCoreThreadCount

void setPerCoreThreadCount(boolean perCoreThreadCount)

isPerCoreThreadCount

boolean isPerCoreThreadCount()

setRecursive

MavenExecutionRequest setRecursive(boolean recursive)

isRecursive

boolean isRecursive()

setPom

MavenExecutionRequest setPom(File pom)

getPom

File getPom()

setShowErrors

MavenExecutionRequest setShowErrors(boolean showErrors)

isShowErrors

boolean isShowErrors()

setTransferListener

MavenExecutionRequest setTransferListener(TransferListener transferListener)

getTransferListener

TransferListener getTransferListener()

setLoggingLevel

MavenExecutionRequest setLoggingLevel(int loggingLevel)

getLoggingLevel

int getLoggingLevel()

setUpdateSnapshots

MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)

isUpdateSnapshots

boolean isUpdateSnapshots()

setNoSnapshotUpdates

MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)

isNoSnapshotUpdates

boolean isNoSnapshotUpdates()

setGlobalChecksumPolicy

MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy)

getGlobalChecksumPolicy

String getGlobalChecksumPolicy()

setLocalRepositoryPath

MavenExecutionRequest setLocalRepositoryPath(String localRepository)

setLocalRepositoryPath

MavenExecutionRequest setLocalRepositoryPath(File localRepository)

getLocalRepositoryPath

File getLocalRepositoryPath()

setLocalRepository

MavenExecutionRequest setLocalRepository(ArtifactRepository repository)

getLocalRepository

ArtifactRepository getLocalRepository()

setInteractiveMode

MavenExecutionRequest setInteractiveMode(boolean interactive)

isInteractiveMode

boolean isInteractiveMode()

setOffline

MavenExecutionRequest setOffline(boolean offline)

isOffline

boolean isOffline()

isCacheTransferError

boolean isCacheTransferError()

setCacheTransferError

MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)

isCacheNotFound

boolean isCacheNotFound()

setCacheNotFound

MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)

getProfiles

List<Profile> getProfiles()

addProfile

MavenExecutionRequest addProfile(Profile profile)

setProfiles

MavenExecutionRequest setProfiles(List<Profile> profiles)

addActiveProfile

MavenExecutionRequest addActiveProfile(String profile)

addActiveProfiles

MavenExecutionRequest addActiveProfiles(List<String> profiles)

setActiveProfiles

MavenExecutionRequest setActiveProfiles(List<String> profiles)

getActiveProfiles

List<String> getActiveProfiles()

addInactiveProfile

MavenExecutionRequest addInactiveProfile(String profile)

addInactiveProfiles

MavenExecutionRequest addInactiveProfiles(List<String> profiles)

setInactiveProfiles

MavenExecutionRequest setInactiveProfiles(List<String> profiles)

getInactiveProfiles

List<String> getInactiveProfiles()

getProxies

List<Proxy> getProxies()

setProxies

MavenExecutionRequest setProxies(List<Proxy> proxies)

addProxy

MavenExecutionRequest addProxy(Proxy proxy)

getServers

List<Server> getServers()

setServers

MavenExecutionRequest setServers(List<Server> servers)

addServer

MavenExecutionRequest addServer(Server server)

getMirrors

List<Mirror> getMirrors()

setMirrors

MavenExecutionRequest setMirrors(List<Mirror> mirrors)

addMirror

MavenExecutionRequest addMirror(Mirror mirror)

getPluginGroups

List<String> getPluginGroups()

setPluginGroups

MavenExecutionRequest setPluginGroups(List<String> pluginGroups)

addPluginGroup

MavenExecutionRequest addPluginGroup(String pluginGroup)

addPluginGroups

MavenExecutionRequest addPluginGroups(List<String> pluginGroups)

isProjectPresent

boolean isProjectPresent()

setProjectPresent

MavenExecutionRequest setProjectPresent(boolean isProjectPresent)

getUserSettingsFile

File getUserSettingsFile()

setUserSettingsFile

MavenExecutionRequest setUserSettingsFile(File userSettingsFile)

getGlobalSettingsFile

File getGlobalSettingsFile()

setGlobalSettingsFile

MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile)

addRemoteRepository

MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)

addPluginArtifactRepository

MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)

setRemoteRepositories

MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> repositories)
Set a new list of remote repositories to use the execution request. This is necessary if you perform transformations on the remote repositories being used. For example if you replace existing repositories with mirrors then it's easier to just replace the whole list with a new list of transformed repositories.

Parameters:
repositories -
Returns:

getRemoteRepositories

List<ArtifactRepository> getRemoteRepositories()

setPluginArtifactRepositories

MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> repositories)

getPluginArtifactRepositories

List<ArtifactRepository> getPluginArtifactRepositories()

setRepositoryCache

MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache)

getRepositoryCache

RepositoryCache getRepositoryCache()

getWorkspaceReader

WorkspaceReader getWorkspaceReader()

setWorkspaceReader

MavenExecutionRequest setWorkspaceReader(WorkspaceReader workspaceReader)

getUserToolchainsFile

File getUserToolchainsFile()

setUserToolchainsFile

MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)

getExecutionListener

ExecutionListener getExecutionListener()

setExecutionListener

MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)

getProjectBuildingRequest

ProjectBuildingRequest getProjectBuildingRequest()


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