Package org.apache.maven.execution
Class DefaultMavenExecutionRequest
java.lang.Object
org.apache.maven.execution.DefaultMavenExecutionRequest
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionaddActiveProfile
(String profile) addActiveProfiles
(List<String> profiles) addInactiveProfile
(String profile) addInactiveProfiles
(List<String> profiles) addPluginArtifactRepository
(ArtifactRepository repository) addPluginGroup
(String pluginGroup) addPluginGroups
(List<String> pluginGroups) addProfile
(Profile profile) addRemoteRepository
(ArtifactRepository repository) static MavenExecutionRequest
copy
(MavenExecutionRequest original) Controls theBuilder
used by Maven by specification of the builders id.getData()
int
getGoals()
int
getPom()
org.eclipse.aether.RepositoryCache
Gets the system properties to use for interpolation and profile activation.org.eclipse.aether.transfer.TransferListener
Gets the user properties to use for interpolation and profile activation.org.eclipse.aether.repository.WorkspaceReader
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
setActiveProfiles
(List<String> activeProfiles) setBaseDirectory
(File basedir) setBuilderId
(String builderId) Controls theBuilder
used by Maven by specification of the builder's id.setCacheNotFound
(boolean cacheNotFound) setCacheTransferError
(boolean cacheTransferError) void
setDegreeOfConcurrency
(int degreeOfConcurrency) Set's the parallel degree of concurrency used by the build.setEventSpyDispatcher
(EventSpyDispatcher eventSpyDispatcher) setExcludedProjects
(List<String> excludedProjects) setExecutionListener
(ExecutionListener executionListener) setGlobalChecksumPolicy
(String globalChecksumPolicy) setGlobalSettingsFile
(File globalSettingsFile) setGlobalToolchainsFile
(File globalToolchainsFile) setIgnoreTransitiveRepositories
(boolean ignoreTransitiveRepositories) setInactiveProfiles
(List<String> inactiveProfiles) setInteractiveMode
(boolean interactive) setLocalRepository
(ArtifactRepository localRepository) setLocalRepositoryPath
(File localRepository) setLocalRepositoryPath
(String localRepository) setLoggingLevel
(int loggingLevel) setMakeBehavior
(String makeBehavior) setMirrors
(List<Mirror> mirrors) void
setMultiModuleProjectDirectory
(File directory) setNoSnapshotUpdates
(boolean noSnapshotUpdates) setOffline
(boolean offline) setPluginArtifactRepositories
(List<ArtifactRepository> pluginArtifactRepositories) setPluginGroups
(List<String> pluginGroups) setPomFile
(String pomFilename) Deprecated.setProfiles
(List<Profile> profiles) void
setProjectBuildingConfiguration
(ProjectBuildingRequest projectBuildingConfiguration) setProjectPresent
(boolean projectPresent) setProxies
(List<Proxy> proxies) setReactorFailureBehavior
(String failureBehavior) setRecursive
(boolean recursive) setRemoteRepositories
(List<ArtifactRepository> remoteRepositories) Set a new list of remote repositories to use the execution request.setRepositoryCache
(org.eclipse.aether.RepositoryCache repositoryCache) setResumeFrom
(String project) setSelectedProjects
(List<String> selectedProjects) setServers
(List<Server> servers) setShowErrors
(boolean showErrors) setStartTime
(Date startTime) setSystemProperties
(Properties properties) Sets the system properties to use for interpolation and profile activation.setToolchains
(Map<String, List<ToolchainModel>> toolchains) setTransferListener
(org.eclipse.aether.transfer.TransferListener transferListener) setUpdateSnapshots
(boolean updateSnapshots) setUseLegacyLocalRepository
(boolean useLegacyLocalRepositoryManager) setUseReactor
(boolean reactorActive) setUserProperties
(Properties userProperties) Sets the user properties to use for interpolation and profile activation.setUserSettingsFile
(File userSettingsFile) setUserToolchainsFile
(File userToolchainsFile) setWorkspaceReader
(org.eclipse.aether.repository.WorkspaceReader workspaceReader) boolean
-
Constructor Details
-
DefaultMavenExecutionRequest
public DefaultMavenExecutionRequest()
-
-
Method Details
-
copy
-
getBaseDirectory
- Specified by:
getBaseDirectory
in interfaceMavenExecutionRequest
-
getLocalRepository
- Specified by:
getLocalRepository
in interfaceMavenExecutionRequest
-
getLocalRepositoryPath
- Specified by:
getLocalRepositoryPath
in interfaceMavenExecutionRequest
-
getGoals
- Specified by:
getGoals
in interfaceMavenExecutionRequest
-
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 likeSystem.getProperties()
and environment variables.- Specified by:
getSystemProperties
in interfaceMavenExecutionRequest
- Returns:
- The system properties, never
null
.
-
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 interfaceMavenExecutionRequest
- Returns:
- The user properties, never
null
.
-
getPom
- Specified by:
getPom
in interfaceMavenExecutionRequest
-
getReactorFailureBehavior
- Specified by:
getReactorFailureBehavior
in interfaceMavenExecutionRequest
-
getSelectedProjects
- Specified by:
getSelectedProjects
in interfaceMavenExecutionRequest
-
getExcludedProjects
- Specified by:
getExcludedProjects
in interfaceMavenExecutionRequest
- Returns:
- the excluded projects, never
null
-
getResumeFrom
- Specified by:
getResumeFrom
in interfaceMavenExecutionRequest
-
getMakeBehavior
- Specified by:
getMakeBehavior
in interfaceMavenExecutionRequest
-
getStartTime
- Specified by:
getStartTime
in interfaceMavenExecutionRequest
-
isShowErrors
public boolean isShowErrors()- Specified by:
isShowErrors
in interfaceMavenExecutionRequest
-
isInteractiveMode
public boolean isInteractiveMode()- Specified by:
isInteractiveMode
in interfaceMavenExecutionRequest
-
setActiveProfiles
- Specified by:
setActiveProfiles
in interfaceMavenExecutionRequest
-
setInactiveProfiles
- Specified by:
setInactiveProfiles
in interfaceMavenExecutionRequest
-
setRemoteRepositories
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 interfaceMavenExecutionRequest
- Parameters:
remoteRepositories
-- Returns:
- This request, never
null
.
-
setPluginArtifactRepositories
public MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) - Specified by:
setPluginArtifactRepositories
in interfaceMavenExecutionRequest
-
setProjectBuildingConfiguration
-
getActiveProfiles
- Specified by:
getActiveProfiles
in interfaceMavenExecutionRequest
-
getInactiveProfiles
- Specified by:
getInactiveProfiles
in interfaceMavenExecutionRequest
-
getTransferListener
public org.eclipse.aether.transfer.TransferListener getTransferListener()- Specified by:
getTransferListener
in interfaceMavenExecutionRequest
-
getLoggingLevel
public int getLoggingLevel()- Specified by:
getLoggingLevel
in interfaceMavenExecutionRequest
-
isOffline
public boolean isOffline()- Specified by:
isOffline
in interfaceMavenExecutionRequest
-
isUpdateSnapshots
public boolean isUpdateSnapshots()- Specified by:
isUpdateSnapshots
in interfaceMavenExecutionRequest
-
isNoSnapshotUpdates
public boolean isNoSnapshotUpdates()- Specified by:
isNoSnapshotUpdates
in interfaceMavenExecutionRequest
-
getGlobalChecksumPolicy
- Specified by:
getGlobalChecksumPolicy
in interfaceMavenExecutionRequest
-
isRecursive
public boolean isRecursive()- Specified by:
isRecursive
in interfaceMavenExecutionRequest
-
setBaseDirectory
- Specified by:
setBaseDirectory
in interfaceMavenExecutionRequest
-
setStartTime
- Specified by:
setStartTime
in interfaceMavenExecutionRequest
-
setShowErrors
- Specified by:
setShowErrors
in interfaceMavenExecutionRequest
-
setGoals
- Specified by:
setGoals
in interfaceMavenExecutionRequest
-
setLocalRepository
- Specified by:
setLocalRepository
in interfaceMavenExecutionRequest
-
setLocalRepositoryPath
- Specified by:
setLocalRepositoryPath
in interfaceMavenExecutionRequest
-
setLocalRepositoryPath
- Specified by:
setLocalRepositoryPath
in interfaceMavenExecutionRequest
-
setSystemProperties
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 likeSystem.getProperties()
and environment variables.- Specified by:
setSystemProperties
in interfaceMavenExecutionRequest
- Parameters:
properties
- The system properties, may benull
.- Returns:
- This request, never
null
.
-
setUserProperties
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 interfaceMavenExecutionRequest
- Parameters:
userProperties
- The user properties, may benull
.- Returns:
- This request, never
null
.
-
setReactorFailureBehavior
- Specified by:
setReactorFailureBehavior
in interfaceMavenExecutionRequest
-
setSelectedProjects
- Specified by:
setSelectedProjects
in interfaceMavenExecutionRequest
-
setExcludedProjects
- Specified by:
setExcludedProjects
in interfaceMavenExecutionRequest
- Parameters:
excludedProjects
- the projects to exclude- Returns:
- this MavenExecutionRequest
-
setResumeFrom
- Specified by:
setResumeFrom
in interfaceMavenExecutionRequest
-
setMakeBehavior
- Specified by:
setMakeBehavior
in interfaceMavenExecutionRequest
-
addActiveProfile
- Specified by:
addActiveProfile
in interfaceMavenExecutionRequest
-
addInactiveProfile
- Specified by:
addInactiveProfile
in interfaceMavenExecutionRequest
-
addActiveProfiles
- Specified by:
addActiveProfiles
in interfaceMavenExecutionRequest
-
addInactiveProfiles
- Specified by:
addInactiveProfiles
in interfaceMavenExecutionRequest
-
setUseReactor
-
useReactor
public boolean useReactor() -
setPomFile
Deprecated.usesetPom(File)
-
setPom
- Specified by:
setPom
in interfaceMavenExecutionRequest
-
setInteractiveMode
- Specified by:
setInteractiveMode
in interfaceMavenExecutionRequest
-
setTransferListener
public MavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener) - Specified by:
setTransferListener
in interfaceMavenExecutionRequest
-
setLoggingLevel
- Specified by:
setLoggingLevel
in interfaceMavenExecutionRequest
-
setOffline
- Specified by:
setOffline
in interfaceMavenExecutionRequest
-
setUpdateSnapshots
- Specified by:
setUpdateSnapshots
in interfaceMavenExecutionRequest
-
setNoSnapshotUpdates
- Specified by:
setNoSnapshotUpdates
in interfaceMavenExecutionRequest
-
setGlobalChecksumPolicy
- Specified by:
setGlobalChecksumPolicy
in interfaceMavenExecutionRequest
-
getProxies
- Specified by:
getProxies
in interfaceMavenExecutionRequest
-
setProxies
- Specified by:
setProxies
in interfaceMavenExecutionRequest
-
addProxy
- Specified by:
addProxy
in interfaceMavenExecutionRequest
-
getServers
- Specified by:
getServers
in interfaceMavenExecutionRequest
-
setServers
- Specified by:
setServers
in interfaceMavenExecutionRequest
-
addServer
- Specified by:
addServer
in interfaceMavenExecutionRequest
-
getMirrors
- Specified by:
getMirrors
in interfaceMavenExecutionRequest
-
setMirrors
- Specified by:
setMirrors
in interfaceMavenExecutionRequest
-
addMirror
- Specified by:
addMirror
in interfaceMavenExecutionRequest
-
getProfiles
- Specified by:
getProfiles
in interfaceMavenExecutionRequest
-
setProfiles
- Specified by:
setProfiles
in interfaceMavenExecutionRequest
-
getPluginGroups
- Specified by:
getPluginGroups
in interfaceMavenExecutionRequest
-
setPluginGroups
- Specified by:
setPluginGroups
in interfaceMavenExecutionRequest
-
addPluginGroup
- Specified by:
addPluginGroup
in interfaceMavenExecutionRequest
-
addPluginGroups
- Specified by:
addPluginGroups
in interfaceMavenExecutionRequest
-
setRecursive
- Specified by:
setRecursive
in interfaceMavenExecutionRequest
-
isProjectPresent
public boolean isProjectPresent()- Specified by:
isProjectPresent
in interfaceMavenExecutionRequest
-
setProjectPresent
- Specified by:
setProjectPresent
in interfaceMavenExecutionRequest
-
getUserSettingsFile
- Specified by:
getUserSettingsFile
in interfaceMavenExecutionRequest
-
setUserSettingsFile
- Specified by:
setUserSettingsFile
in interfaceMavenExecutionRequest
-
getGlobalSettingsFile
- Specified by:
getGlobalSettingsFile
in interfaceMavenExecutionRequest
-
setGlobalSettingsFile
- Specified by:
setGlobalSettingsFile
in interfaceMavenExecutionRequest
-
getUserToolchainsFile
- Specified by:
getUserToolchainsFile
in interfaceMavenExecutionRequest
-
setUserToolchainsFile
- Specified by:
setUserToolchainsFile
in interfaceMavenExecutionRequest
-
getGlobalToolchainsFile
- Specified by:
getGlobalToolchainsFile
in interfaceMavenExecutionRequest
- Returns:
- the global toolchains file
-
setGlobalToolchainsFile
- Specified by:
setGlobalToolchainsFile
in interfaceMavenExecutionRequest
- Parameters:
globalToolchainsFile
- the global toolchains file- Returns:
- this request
-
addRemoteRepository
- Specified by:
addRemoteRepository
in interfaceMavenExecutionRequest
-
getRemoteRepositories
- Specified by:
getRemoteRepositories
in interfaceMavenExecutionRequest
-
addPluginArtifactRepository
- Specified by:
addPluginArtifactRepository
in interfaceMavenExecutionRequest
-
getPluginArtifactRepositories
- Specified by:
getPluginArtifactRepositories
in interfaceMavenExecutionRequest
-
getProjectBuildingRequest
- Specified by:
getProjectBuildingRequest
in interfaceMavenExecutionRequest
-
addProfile
- Specified by:
addProfile
in interfaceMavenExecutionRequest
-
getRepositoryCache
public org.eclipse.aether.RepositoryCache getRepositoryCache()- Specified by:
getRepositoryCache
in interfaceMavenExecutionRequest
-
setRepositoryCache
- Specified by:
setRepositoryCache
in interfaceMavenExecutionRequest
-
getExecutionListener
- Specified by:
getExecutionListener
in interfaceMavenExecutionRequest
-
setExecutionListener
- Specified by:
setExecutionListener
in interfaceMavenExecutionRequest
-
setDegreeOfConcurrency
public void setDegreeOfConcurrency(int degreeOfConcurrency) Description copied from interface:MavenExecutionRequest
Set's the parallel degree of concurrency used by the build.- Specified by:
setDegreeOfConcurrency
in interfaceMavenExecutionRequest
- Parameters:
degreeOfConcurrency
-
-
getDegreeOfConcurrency
public int getDegreeOfConcurrency()- Specified by:
getDegreeOfConcurrency
in interfaceMavenExecutionRequest
- Returns:
- the degree of concurrency for the build.
-
getWorkspaceReader
public org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()- Specified by:
getWorkspaceReader
in interfaceMavenExecutionRequest
-
setWorkspaceReader
public MavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) - Specified by:
setWorkspaceReader
in interfaceMavenExecutionRequest
-
isCacheTransferError
public boolean isCacheTransferError()- Specified by:
isCacheTransferError
in interfaceMavenExecutionRequest
-
setCacheTransferError
- Specified by:
setCacheTransferError
in interfaceMavenExecutionRequest
-
isCacheNotFound
public boolean isCacheNotFound()- Specified by:
isCacheNotFound
in interfaceMavenExecutionRequest
-
setCacheNotFound
- Specified by:
setCacheNotFound
in interfaceMavenExecutionRequest
-
isIgnoreTransitiveRepositories
public boolean isIgnoreTransitiveRepositories()- Specified by:
isIgnoreTransitiveRepositories
in interfaceMavenExecutionRequest
-
setIgnoreTransitiveRepositories
- Specified by:
setIgnoreTransitiveRepositories
in interfaceMavenExecutionRequest
-
isUseLegacyLocalRepository
public boolean isUseLegacyLocalRepository()- Specified by:
isUseLegacyLocalRepository
in interfaceMavenExecutionRequest
-
setUseLegacyLocalRepository
- Specified by:
setUseLegacyLocalRepository
in interfaceMavenExecutionRequest
-
setBuilderId
Description copied from interface:MavenExecutionRequest
Controls theBuilder
used by Maven by specification of the builder's id.- Specified by:
setBuilderId
in interfaceMavenExecutionRequest
-
getBuilderId
Description copied from interface:MavenExecutionRequest
Controls theBuilder
used by Maven by specification of the builders id.- Specified by:
getBuilderId
in interfaceMavenExecutionRequest
-
getToolchains
- Specified by:
getToolchains
in interfaceMavenExecutionRequest
- Returns:
- all toolchains grouped by type, never
null
-
setToolchains
- Specified by:
setToolchains
in interfaceMavenExecutionRequest
- Parameters:
toolchains
- all toolchains grouped by type- Returns:
- this request
-
setMultiModuleProjectDirectory
- Specified by:
setMultiModuleProjectDirectory
in interfaceMavenExecutionRequest
-
getMultiModuleProjectDirectory
- Specified by:
getMultiModuleProjectDirectory
in interfaceMavenExecutionRequest
-
setEventSpyDispatcher
- Specified by:
setEventSpyDispatcher
in interfaceMavenExecutionRequest
-
getEventSpyDispatcher
- Specified by:
getEventSpyDispatcher
in interfaceMavenExecutionRequest
-
getData
- Specified by:
getData
in interfaceMavenExecutionRequest
-
setPom(File)