org.apache.maven.execution
Class DefaultMavenExecutionRequest

java.lang.Object
  extended by org.apache.maven.execution.DefaultMavenExecutionRequest
All Implemented Interfaces:
MavenExecutionRequest

public class DefaultMavenExecutionRequest
extends Object
implements MavenExecutionRequest

Author:
Jason van Zyl

Field Summary
 
Fields inherited from interface org.apache.maven.execution.MavenExecutionRequest
CHECKSUM_POLICY_FAIL, CHECKSUM_POLICY_WARN, LOGGING_LEVEL_DEBUG, LOGGING_LEVEL_DISABLED, LOGGING_LEVEL_ERROR, LOGGING_LEVEL_FATAL, LOGGING_LEVEL_INFO, LOGGING_LEVEL_WARN, REACTOR_FAIL_AT_END, REACTOR_FAIL_FAST, REACTOR_FAIL_NEVER, REACTOR_MAKE_BOTH, REACTOR_MAKE_DOWNSTREAM, REACTOR_MAKE_UPSTREAM
 
Constructor Summary
DefaultMavenExecutionRequest()
           
 
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)
           
static MavenExecutionRequest copy(MavenExecutionRequest original)
           
 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> activeProfiles)
           
 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> inactiveProfiles)
           
 MavenExecutionRequest setInteractiveMode(boolean interactive)
           
 MavenExecutionRequest setLocalRepository(ArtifactRepository localRepository)
           
 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> pluginArtifactRepositories)
           
 MavenExecutionRequest setPluginGroups(List<String> pluginGroups)
           
 MavenExecutionRequest setPom(File pom)
           
 MavenExecutionRequest setPomFile(String pomFilename)
          Deprecated. use setPom(File)
 MavenExecutionRequest setProfiles(List<Profile> profiles)
           
 void setProjectBuildingConfiguration(ProjectBuildingRequest projectBuildingConfiguration)
           
 MavenExecutionRequest setProjectPresent(boolean projectPresent)
           
 MavenExecutionRequest setProxies(List<Proxy> proxies)
           
 MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)
           
 MavenExecutionRequest setRecursive(boolean recursive)
           
 MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
          Set a new list of remote repositories to use the execution request.
 MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache)
           
 MavenExecutionRequest setResumeFrom(String project)
           
 MavenExecutionRequest setSelectedProjects(List<String> selectedProjects)
           
 MavenExecutionRequest setServers(List<Server> servers)
           
 MavenExecutionRequest setShowErrors(boolean showErrors)
           
 MavenExecutionRequest setStartTime(Date startTime)
           
 MavenExecutionRequest setSystemProperties(Properties properties)
          Sets the system properties to use for interpolation and profile activation.
 void setThreadCount(String threadCount)
           
 MavenExecutionRequest setTransferListener(TransferListener transferListener)
           
 MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
           
 MavenExecutionRequest setUseReactor(boolean reactorActive)
           
 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)
           
 boolean useReactor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMavenExecutionRequest

public DefaultMavenExecutionRequest()
Method Detail

copy

public static MavenExecutionRequest copy(MavenExecutionRequest original)

getBaseDirectory

public String getBaseDirectory()
Specified by:
getBaseDirectory in interface MavenExecutionRequest

getLocalRepository

public ArtifactRepository getLocalRepository()
Specified by:
getLocalRepository in interface MavenExecutionRequest

getLocalRepositoryPath

public File getLocalRepositoryPath()
Specified by:
getLocalRepositoryPath in interface MavenExecutionRequest

getGoals

public List<String> getGoals()
Specified by:
getGoals in interface MavenExecutionRequest

getSystemProperties

public Properties getSystemProperties()
Description copied from interface: MavenExecutionRequest
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.

Specified by:
getSystemProperties in interface MavenExecutionRequest
Returns:
The system properties, never null.

getUserProperties

public Properties getUserProperties()
Description copied from interface: MavenExecutionRequest
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.

Specified by:
getUserProperties in interface MavenExecutionRequest
Returns:
The user properties, never null.

getPom

public File getPom()
Specified by:
getPom in interface MavenExecutionRequest

getReactorFailureBehavior

public String getReactorFailureBehavior()
Specified by:
getReactorFailureBehavior in interface MavenExecutionRequest

getSelectedProjects

public List<String> getSelectedProjects()
Specified by:
getSelectedProjects in interface MavenExecutionRequest

getResumeFrom

public String getResumeFrom()
Specified by:
getResumeFrom in interface MavenExecutionRequest

getMakeBehavior

public String getMakeBehavior()
Specified by:
getMakeBehavior in interface MavenExecutionRequest

getStartTime

public Date getStartTime()
Specified by:
getStartTime in interface MavenExecutionRequest

isShowErrors

public boolean isShowErrors()
Specified by:
isShowErrors in interface MavenExecutionRequest

isInteractiveMode

public boolean isInteractiveMode()
Specified by:
isInteractiveMode in interface MavenExecutionRequest

setActiveProfiles

public MavenExecutionRequest setActiveProfiles(List<String> activeProfiles)
Specified by:
setActiveProfiles in interface MavenExecutionRequest

setInactiveProfiles

public MavenExecutionRequest setInactiveProfiles(List<String> inactiveProfiles)
Specified by:
setInactiveProfiles in interface MavenExecutionRequest

setRemoteRepositories

public MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
Description copied from interface: MavenExecutionRequest
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.

Specified by:
setRemoteRepositories in interface MavenExecutionRequest
Returns:

setPluginArtifactRepositories

public MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
Specified by:
setPluginArtifactRepositories in interface MavenExecutionRequest

setProjectBuildingConfiguration

public void setProjectBuildingConfiguration(ProjectBuildingRequest projectBuildingConfiguration)

getActiveProfiles

public List<String> getActiveProfiles()
Specified by:
getActiveProfiles in interface MavenExecutionRequest

getInactiveProfiles

public List<String> getInactiveProfiles()
Specified by:
getInactiveProfiles in interface MavenExecutionRequest

getTransferListener

public TransferListener getTransferListener()
Specified by:
getTransferListener in interface MavenExecutionRequest

getLoggingLevel

public int getLoggingLevel()
Specified by:
getLoggingLevel in interface MavenExecutionRequest

isOffline

public boolean isOffline()
Specified by:
isOffline in interface MavenExecutionRequest

isUpdateSnapshots

public boolean isUpdateSnapshots()
Specified by:
isUpdateSnapshots in interface MavenExecutionRequest

isNoSnapshotUpdates

public boolean isNoSnapshotUpdates()
Specified by:
isNoSnapshotUpdates in interface MavenExecutionRequest

getGlobalChecksumPolicy

public String getGlobalChecksumPolicy()
Specified by:
getGlobalChecksumPolicy in interface MavenExecutionRequest

isRecursive

public boolean isRecursive()
Specified by:
isRecursive in interface MavenExecutionRequest

setBaseDirectory

public MavenExecutionRequest setBaseDirectory(File basedir)
Specified by:
setBaseDirectory in interface MavenExecutionRequest

setStartTime

public MavenExecutionRequest setStartTime(Date startTime)
Specified by:
setStartTime in interface MavenExecutionRequest

setShowErrors

public MavenExecutionRequest setShowErrors(boolean showErrors)
Specified by:
setShowErrors in interface MavenExecutionRequest

setGoals

public MavenExecutionRequest setGoals(List<String> goals)
Specified by:
setGoals in interface MavenExecutionRequest

setLocalRepository

public MavenExecutionRequest setLocalRepository(ArtifactRepository localRepository)
Specified by:
setLocalRepository in interface MavenExecutionRequest

setLocalRepositoryPath

public MavenExecutionRequest setLocalRepositoryPath(File localRepository)
Specified by:
setLocalRepositoryPath in interface MavenExecutionRequest

setLocalRepositoryPath

public MavenExecutionRequest setLocalRepositoryPath(String localRepository)
Specified by:
setLocalRepositoryPath in interface MavenExecutionRequest

setSystemProperties

public MavenExecutionRequest setSystemProperties(Properties properties)
Description copied from interface: MavenExecutionRequest
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.

Specified by:
setSystemProperties in interface MavenExecutionRequest
Parameters:
properties - The system properties, may be null.
Returns:
This request, never null.

setUserProperties

public MavenExecutionRequest setUserProperties(Properties userProperties)
Description copied from interface: MavenExecutionRequest
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.

Specified by:
setUserProperties in interface MavenExecutionRequest
Parameters:
userProperties - The user properties, may be null.
Returns:
This request, never null.

setReactorFailureBehavior

public MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)
Specified by:
setReactorFailureBehavior in interface MavenExecutionRequest

setSelectedProjects

public MavenExecutionRequest setSelectedProjects(List<String> selectedProjects)
Specified by:
setSelectedProjects in interface MavenExecutionRequest

setResumeFrom

public MavenExecutionRequest setResumeFrom(String project)
Specified by:
setResumeFrom in interface MavenExecutionRequest

setMakeBehavior

public MavenExecutionRequest setMakeBehavior(String makeBehavior)
Specified by:
setMakeBehavior in interface MavenExecutionRequest

addActiveProfile

public MavenExecutionRequest addActiveProfile(String profile)
Specified by:
addActiveProfile in interface MavenExecutionRequest

addInactiveProfile

public MavenExecutionRequest addInactiveProfile(String profile)
Specified by:
addInactiveProfile in interface MavenExecutionRequest

addActiveProfiles

public MavenExecutionRequest addActiveProfiles(List<String> profiles)
Specified by:
addActiveProfiles in interface MavenExecutionRequest

addInactiveProfiles

public MavenExecutionRequest addInactiveProfiles(List<String> profiles)
Specified by:
addInactiveProfiles in interface MavenExecutionRequest

setUseReactor

public MavenExecutionRequest setUseReactor(boolean reactorActive)

useReactor

public boolean useReactor()

setPomFile

public MavenExecutionRequest setPomFile(String pomFilename)
Deprecated. use setPom(File)


setPom

public MavenExecutionRequest setPom(File pom)
Specified by:
setPom in interface MavenExecutionRequest

setInteractiveMode

public MavenExecutionRequest setInteractiveMode(boolean interactive)
Specified by:
setInteractiveMode in interface MavenExecutionRequest

setTransferListener

public MavenExecutionRequest setTransferListener(TransferListener transferListener)
Specified by:
setTransferListener in interface MavenExecutionRequest

setLoggingLevel

public MavenExecutionRequest setLoggingLevel(int loggingLevel)
Specified by:
setLoggingLevel in interface MavenExecutionRequest

setOffline

public MavenExecutionRequest setOffline(boolean offline)
Specified by:
setOffline in interface MavenExecutionRequest

setUpdateSnapshots

public MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
Specified by:
setUpdateSnapshots in interface MavenExecutionRequest

setNoSnapshotUpdates

public MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)
Specified by:
setNoSnapshotUpdates in interface MavenExecutionRequest

setGlobalChecksumPolicy

public MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy)
Specified by:
setGlobalChecksumPolicy in interface MavenExecutionRequest

getProxies

public List<Proxy> getProxies()
Specified by:
getProxies in interface MavenExecutionRequest

setProxies

public MavenExecutionRequest setProxies(List<Proxy> proxies)
Specified by:
setProxies in interface MavenExecutionRequest

addProxy

public MavenExecutionRequest addProxy(Proxy proxy)
Specified by:
addProxy in interface MavenExecutionRequest

getServers

public List<Server> getServers()
Specified by:
getServers in interface MavenExecutionRequest

setServers

public MavenExecutionRequest setServers(List<Server> servers)
Specified by:
setServers in interface MavenExecutionRequest

addServer

public MavenExecutionRequest addServer(Server server)
Specified by:
addServer in interface MavenExecutionRequest

getMirrors

public List<Mirror> getMirrors()
Specified by:
getMirrors in interface MavenExecutionRequest

setMirrors

public MavenExecutionRequest setMirrors(List<Mirror> mirrors)
Specified by:
setMirrors in interface MavenExecutionRequest

addMirror

public MavenExecutionRequest addMirror(Mirror mirror)
Specified by:
addMirror in interface MavenExecutionRequest

getProfiles

public List<Profile> getProfiles()
Specified by:
getProfiles in interface MavenExecutionRequest

setProfiles

public MavenExecutionRequest setProfiles(List<Profile> profiles)
Specified by:
setProfiles in interface MavenExecutionRequest

getPluginGroups

public List<String> getPluginGroups()
Specified by:
getPluginGroups in interface MavenExecutionRequest

setPluginGroups

public MavenExecutionRequest setPluginGroups(List<String> pluginGroups)
Specified by:
setPluginGroups in interface MavenExecutionRequest

addPluginGroup

public MavenExecutionRequest addPluginGroup(String pluginGroup)
Specified by:
addPluginGroup in interface MavenExecutionRequest

addPluginGroups

public MavenExecutionRequest addPluginGroups(List<String> pluginGroups)
Specified by:
addPluginGroups in interface MavenExecutionRequest

setRecursive

public MavenExecutionRequest setRecursive(boolean recursive)
Specified by:
setRecursive in interface MavenExecutionRequest

isProjectPresent

public boolean isProjectPresent()
Specified by:
isProjectPresent in interface MavenExecutionRequest

setProjectPresent

public MavenExecutionRequest setProjectPresent(boolean projectPresent)
Specified by:
setProjectPresent in interface MavenExecutionRequest

getUserSettingsFile

public File getUserSettingsFile()
Specified by:
getUserSettingsFile in interface MavenExecutionRequest

setUserSettingsFile

public MavenExecutionRequest setUserSettingsFile(File userSettingsFile)
Specified by:
setUserSettingsFile in interface MavenExecutionRequest

getGlobalSettingsFile

public File getGlobalSettingsFile()
Specified by:
getGlobalSettingsFile in interface MavenExecutionRequest

setGlobalSettingsFile

public MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile)
Specified by:
setGlobalSettingsFile in interface MavenExecutionRequest

getUserToolchainsFile

public File getUserToolchainsFile()
Specified by:
getUserToolchainsFile in interface MavenExecutionRequest

setUserToolchainsFile

public MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)
Specified by:
setUserToolchainsFile in interface MavenExecutionRequest

addRemoteRepository

public MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)
Specified by:
addRemoteRepository in interface MavenExecutionRequest

getRemoteRepositories

public List<ArtifactRepository> getRemoteRepositories()
Specified by:
getRemoteRepositories in interface MavenExecutionRequest

addPluginArtifactRepository

public MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)
Specified by:
addPluginArtifactRepository in interface MavenExecutionRequest

getPluginArtifactRepositories

public List<ArtifactRepository> getPluginArtifactRepositories()
Specified by:
getPluginArtifactRepositories in interface MavenExecutionRequest

getProjectBuildingRequest

public ProjectBuildingRequest getProjectBuildingRequest()
Specified by:
getProjectBuildingRequest in interface MavenExecutionRequest

addProfile

public MavenExecutionRequest addProfile(Profile profile)
Specified by:
addProfile in interface MavenExecutionRequest

getRepositoryCache

public RepositoryCache getRepositoryCache()
Specified by:
getRepositoryCache in interface MavenExecutionRequest

setRepositoryCache

public MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache)
Specified by:
setRepositoryCache in interface MavenExecutionRequest

getExecutionListener

public ExecutionListener getExecutionListener()
Specified by:
getExecutionListener in interface MavenExecutionRequest

setExecutionListener

public MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
Specified by:
setExecutionListener in interface MavenExecutionRequest

getThreadCount

public String getThreadCount()
Specified by:
getThreadCount in interface MavenExecutionRequest

setThreadCount

public void setThreadCount(String threadCount)
Specified by:
setThreadCount in interface MavenExecutionRequest

isThreadConfigurationPresent

public boolean isThreadConfigurationPresent()
Specified by:
isThreadConfigurationPresent in interface MavenExecutionRequest

isPerCoreThreadCount

public boolean isPerCoreThreadCount()
Specified by:
isPerCoreThreadCount in interface MavenExecutionRequest

setPerCoreThreadCount

public void setPerCoreThreadCount(boolean perCoreThreadCount)
Specified by:
setPerCoreThreadCount in interface MavenExecutionRequest

getWorkspaceReader

public WorkspaceReader getWorkspaceReader()
Specified by:
getWorkspaceReader in interface MavenExecutionRequest

setWorkspaceReader

public MavenExecutionRequest setWorkspaceReader(WorkspaceReader workspaceReader)
Specified by:
setWorkspaceReader in interface MavenExecutionRequest

isCacheTransferError

public boolean isCacheTransferError()
Specified by:
isCacheTransferError in interface MavenExecutionRequest

setCacheTransferError

public MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)
Specified by:
setCacheTransferError in interface MavenExecutionRequest

isCacheNotFound

public boolean isCacheNotFound()
Specified by:
isCacheNotFound in interface MavenExecutionRequest

setCacheNotFound

public MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)
Specified by:
setCacheNotFound in interface MavenExecutionRequest


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