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 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
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(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(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(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
File getUserToolchainsFile()
setUserToolchainsFile
MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)
getExecutionListener
ExecutionListener getExecutionListener()
setExecutionListener
MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
getProjectBuildingRequest
ProjectBuildingRequest getProjectBuildingRequest()
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.