org.apache.maven.execution
Interface MavenExecutionRequest
- All Known Implementing Classes:
- DefaultMavenExecutionRequest
public interface MavenExecutionRequest
- Version:
- $Id: MavenExecutionRequest.java 995600 2010-09-09 22:52:57Z bentmann $
- Author:
- Jason van Zyl
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 java.lang.String REACTOR_FAIL_FAST
- See Also:
- Constant Field Values
REACTOR_FAIL_AT_END
static final java.lang.String REACTOR_FAIL_AT_END
- See Also:
- Constant Field Values
REACTOR_FAIL_NEVER
static final java.lang.String REACTOR_FAIL_NEVER
- See Also:
- Constant Field Values
REACTOR_MAKE_UPSTREAM
static final java.lang.String REACTOR_MAKE_UPSTREAM
- See Also:
- Constant Field Values
REACTOR_MAKE_DOWNSTREAM
static final java.lang.String REACTOR_MAKE_DOWNSTREAM
- See Also:
- Constant Field Values
REACTOR_MAKE_BOTH
static final java.lang.String REACTOR_MAKE_BOTH
- See Also:
- Constant Field Values
CHECKSUM_POLICY_FAIL
static final java.lang.String CHECKSUM_POLICY_FAIL
- See Also:
- Constant Field Values
CHECKSUM_POLICY_WARN
static final java.lang.String CHECKSUM_POLICY_WARN
- See Also:
- Constant Field Values
setBaseDirectory
MavenExecutionRequest setBaseDirectory(java.io.File basedir)
getBaseDirectory
java.lang.String getBaseDirectory()
setStartTime
MavenExecutionRequest setStartTime(java.util.Date start)
getStartTime
java.util.Date getStartTime()
setGoals
MavenExecutionRequest setGoals(java.util.List<java.lang.String> goals)
getGoals
java.util.List<java.lang.String> getGoals()
setSystemProperties
MavenExecutionRequest setSystemProperties(java.util.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
java.util.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(java.util.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
java.util.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(java.lang.String failureBehavior)
getReactorFailureBehavior
java.lang.String getReactorFailureBehavior()
setSelectedProjects
MavenExecutionRequest setSelectedProjects(java.util.List<java.lang.String> projects)
getSelectedProjects
java.util.List<java.lang.String> getSelectedProjects()
setResumeFrom
MavenExecutionRequest setResumeFrom(java.lang.String project)
getResumeFrom
java.lang.String getResumeFrom()
setMakeBehavior
MavenExecutionRequest setMakeBehavior(java.lang.String makeBehavior)
getMakeBehavior
java.lang.String getMakeBehavior()
setThreadCount
void setThreadCount(java.lang.String threadCount)
getThreadCount
java.lang.String getThreadCount()
isThreadConfigurationPresent
boolean isThreadConfigurationPresent()
setPerCoreThreadCount
void setPerCoreThreadCount(boolean perCoreThreadCount)
isPerCoreThreadCount
boolean isPerCoreThreadCount()
setRecursive
MavenExecutionRequest setRecursive(boolean recursive)
isRecursive
boolean isRecursive()
setPom
MavenExecutionRequest setPom(java.io.File pom)
getPom
java.io.File getPom()
setShowErrors
MavenExecutionRequest setShowErrors(boolean showErrors)
isShowErrors
boolean isShowErrors()
setTransferListener
MavenExecutionRequest setTransferListener(org.sonatype.aether.transfer.TransferListener transferListener)
getTransferListener
org.sonatype.aether.transfer.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(java.lang.String globalChecksumPolicy)
getGlobalChecksumPolicy
java.lang.String getGlobalChecksumPolicy()
setLocalRepositoryPath
MavenExecutionRequest setLocalRepositoryPath(java.lang.String localRepository)
setLocalRepositoryPath
MavenExecutionRequest setLocalRepositoryPath(java.io.File localRepository)
getLocalRepositoryPath
java.io.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
java.util.List<Profile> getProfiles()
addProfile
MavenExecutionRequest addProfile(Profile profile)
setProfiles
MavenExecutionRequest setProfiles(java.util.List<Profile> profiles)
addActiveProfile
MavenExecutionRequest addActiveProfile(java.lang.String profile)
addActiveProfiles
MavenExecutionRequest addActiveProfiles(java.util.List<java.lang.String> profiles)
setActiveProfiles
MavenExecutionRequest setActiveProfiles(java.util.List<java.lang.String> profiles)
getActiveProfiles
java.util.List<java.lang.String> getActiveProfiles()
addInactiveProfile
MavenExecutionRequest addInactiveProfile(java.lang.String profile)
addInactiveProfiles
MavenExecutionRequest addInactiveProfiles(java.util.List<java.lang.String> profiles)
setInactiveProfiles
MavenExecutionRequest setInactiveProfiles(java.util.List<java.lang.String> profiles)
getInactiveProfiles
java.util.List<java.lang.String> getInactiveProfiles()
getProxies
java.util.List<Proxy> getProxies()
setProxies
MavenExecutionRequest setProxies(java.util.List<Proxy> proxies)
addProxy
MavenExecutionRequest addProxy(Proxy proxy)
getServers
java.util.List<Server> getServers()
setServers
MavenExecutionRequest setServers(java.util.List<Server> servers)
addServer
MavenExecutionRequest addServer(Server server)
getMirrors
java.util.List<Mirror> getMirrors()
setMirrors
MavenExecutionRequest setMirrors(java.util.List<Mirror> mirrors)
addMirror
MavenExecutionRequest addMirror(Mirror mirror)
getPluginGroups
java.util.List<java.lang.String> getPluginGroups()
setPluginGroups
MavenExecutionRequest setPluginGroups(java.util.List<java.lang.String> pluginGroups)
addPluginGroup
MavenExecutionRequest addPluginGroup(java.lang.String pluginGroup)
addPluginGroups
MavenExecutionRequest addPluginGroups(java.util.List<java.lang.String> pluginGroups)
isProjectPresent
boolean isProjectPresent()
setProjectPresent
MavenExecutionRequest setProjectPresent(boolean isProjectPresent)
getUserSettingsFile
java.io.File getUserSettingsFile()
setUserSettingsFile
MavenExecutionRequest setUserSettingsFile(java.io.File userSettingsFile)
getGlobalSettingsFile
java.io.File getGlobalSettingsFile()
setGlobalSettingsFile
MavenExecutionRequest setGlobalSettingsFile(java.io.File globalSettingsFile)
addRemoteRepository
MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)
addPluginArtifactRepository
MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)
setRemoteRepositories
MavenExecutionRequest setRemoteRepositories(java.util.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
java.util.List<ArtifactRepository> getRemoteRepositories()
setPluginArtifactRepositories
MavenExecutionRequest setPluginArtifactRepositories(java.util.List<ArtifactRepository> repositories)
getPluginArtifactRepositories
java.util.List<ArtifactRepository> getPluginArtifactRepositories()
setRepositoryCache
MavenExecutionRequest setRepositoryCache(org.sonatype.aether.RepositoryCache repositoryCache)
getRepositoryCache
org.sonatype.aether.RepositoryCache getRepositoryCache()
getWorkspaceReader
org.sonatype.aether.repository.WorkspaceReader getWorkspaceReader()
setWorkspaceReader
MavenExecutionRequest setWorkspaceReader(org.sonatype.aether.repository.WorkspaceReader workspaceReader)
getUserToolchainsFile
java.io.File getUserToolchainsFile()
setUserToolchainsFile
MavenExecutionRequest setUserToolchainsFile(java.io.File userToolchainsFile)
getExecutionListener
ExecutionListener getExecutionListener()
setExecutionListener
MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
getProjectBuildingRequest
ProjectBuildingRequest getProjectBuildingRequest()
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.