Package org.apache.maven.execution
Interface MavenExecutionRequest
- All Known Implementing Classes:
- DefaultMavenExecutionRequest
public interface MavenExecutionRequest
- Author:
- Jason van Zyl
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionaddActiveProfile(String profile) Deprecated.addActiveProfiles(List<String> profiles) Deprecated.Since Maven 4: usegetProfileActivation().addInactiveProfile(String profile) Deprecated.Since Maven 4: usegetProfileActivation().addInactiveProfiles(List<String> profiles) Deprecated.Since Maven 4: usegetProfileActivation().addPluginArtifactRepository(ArtifactRepository repository) addPluginGroup(String pluginGroup) addPluginGroups(List<String> pluginGroups) addProfile(Profile profile) addRemoteRepository(ArtifactRepository repository) Deprecated.Since Maven 4: usegetProfileActivation().Controls theBuilderused by Maven by specification of the builders id.getData()intDeprecated.Since Maven 4: usegetProjectActivation().getGoals()Deprecated.Since Maven 4: usegetProfileActivation().intgetPom()Return the requested activation(s) of profile(s) in this execution.Return the requested activation(s) of project(s) in this execution.org.eclipse.aether.RepositoryCacheDeprecated.Since Maven 4: usegetProjectActivation().Gets the system properties to use for interpolation and profile activation.org.eclipse.aether.transfer.TransferListenerGets the user properties to use for interpolation and profile activation.org.eclipse.aether.repository.WorkspaceReaderbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisResume()booleanbooleanbooleanDeprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level.setActiveProfiles(List<String> profiles) Deprecated.Since Maven 4: usegetProfileActivation().setBaseDirectory(File basedir) setBuilderId(String builderId) Controls theBuilderused by Maven by specification of the builder's id.setCacheNotFound(boolean cacheNotFound) setCacheTransferError(boolean cacheTransferError) voidsetDegreeOfConcurrency(int degreeOfConcurrency) Set's the parallel degree of concurrency used by the build.setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher) setExcludedProjects(List<String> projects) Deprecated.Since Maven 4: usegetProjectActivation().setExecutionListener(ExecutionListener executionListener) setGlobalChecksumPolicy(String globalChecksumPolicy) setGlobalSettingsFile(File globalSettingsFile) setGlobalToolchainsFile(File globalToolchainsFile) setInactiveProfiles(List<String> profiles) Deprecated.Since Maven 4: usegetProfileActivation().setInteractiveMode(boolean interactive) setLocalRepository(ArtifactRepository repository) setLocalRepositoryPath(File localRepository) setLocalRepositoryPath(String localRepository) setLoggingLevel(int loggingLevel) setMakeBehavior(String makeBehavior) setMirrors(List<Mirror> mirrors) voidsetNoSnapshotUpdates(boolean noSnapshotUpdates) setOffline(boolean offline) setPluginArtifactRepositories(List<ArtifactRepository> repositories) setPluginGroups(List<String> pluginGroups) setProfiles(List<Profile> profiles) setProjectPresent(boolean isProjectPresent) setProxies(List<Proxy> proxies) setReactorFailureBehavior(String failureBehavior) setRecursive(boolean recursive) setRemoteRepositories(List<ArtifactRepository> repositories) Set a new list of remote repositories to use the execution request.setRepositoryCache(org.eclipse.aether.RepositoryCache repositoryCache) setResume(boolean resume) Sets whether the build should be resumed from the data in the resume.properties file.setResumeFrom(String project) setSelectedProjects(List<String> projects) Deprecated.Since Maven 4: usegetProjectActivation().setServers(List<Server> servers) setShowErrors(boolean showErrors) setStartTime(Date start) setSystemProperties(Properties systemProperties) 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 useLegacyLocalRepository) Deprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level.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) 
- 
Field Details- 
LOGGING_LEVEL_DEBUGstatic final int LOGGING_LEVEL_DEBUG- See Also:
 
- 
LOGGING_LEVEL_INFOstatic final int LOGGING_LEVEL_INFO- See Also:
 
- 
LOGGING_LEVEL_WARNstatic final int LOGGING_LEVEL_WARN- See Also:
 
- 
LOGGING_LEVEL_ERRORstatic final int LOGGING_LEVEL_ERROR- See Also:
 
- 
LOGGING_LEVEL_FATALstatic final int LOGGING_LEVEL_FATAL- See Also:
 
- 
LOGGING_LEVEL_DISABLEDstatic final int LOGGING_LEVEL_DISABLED- See Also:
 
- 
REACTOR_FAIL_FAST- See Also:
 
- 
REACTOR_FAIL_AT_END- See Also:
 
- 
REACTOR_FAIL_NEVER- See Also:
 
- 
REACTOR_MAKE_UPSTREAM- See Also:
 
- 
REACTOR_MAKE_DOWNSTREAM- See Also:
 
- 
REACTOR_MAKE_BOTH- See Also:
 
- 
CHECKSUM_POLICY_FAIL- See Also:
 
- 
CHECKSUM_POLICY_WARN- See Also:
 
 
- 
- 
Method Details- 
setBaseDirectory
- 
getBaseDirectoryString getBaseDirectory()
- 
setStartTime
- 
getStartTimeDate getStartTime()
- 
setGoals
- 
getGoals
- 
setSystemPropertiesSets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Parameters:
- systemProperties- The system properties, may be- null.
- Returns:
- This request, never null.
 
- 
getSystemPropertiesProperties getSystemProperties()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.- Returns:
- The system properties, never null.
 
- 
setUserPropertiesSets 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=valueparameter on the command line.- Parameters:
- userProperties- The user properties, may be- null.
- Returns:
- This request, never null.
 
- 
getUserPropertiesProperties 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=valueparameter on the command line.- Returns:
- The user properties, never null.
 
- 
setReactorFailureBehavior
- 
getReactorFailureBehaviorString getReactorFailureBehavior()
- 
setSelectedProjectsDeprecated.Since Maven 4: usegetProjectActivation().
- 
getSelectedProjectsDeprecated.Since Maven 4: usegetProjectActivation().
- 
setExcludedProjectsDeprecated.Since Maven 4: usegetProjectActivation().- Parameters:
- projects- the projects to exclude
- Returns:
- this MavenExecutionRequest
- Since:
- 3.2
 
- 
getExcludedProjectsDeprecated.Since Maven 4: usegetProjectActivation().- Returns:
- the excluded projects, never null
- Since:
- 3.2
 
- 
setResumeSets whether the build should be resumed from the data in the resume.properties file.- Parameters:
- resume- Whether or not to resume a previous build.
- Returns:
- This request, never null.
 
- 
isResumeboolean isResume()- Returns:
- Whether the build should be resumed from the data in the resume.properties file.
 
- 
setResumeFrom
- 
getResumeFromString getResumeFrom()
- 
setMakeBehavior
- 
getMakeBehaviorString getMakeBehavior()
- 
setDegreeOfConcurrencyvoid setDegreeOfConcurrency(int degreeOfConcurrency) Set's the parallel degree of concurrency used by the build.- Parameters:
- degreeOfConcurrency-
 
- 
getDegreeOfConcurrencyint getDegreeOfConcurrency()- Returns:
- the degree of concurrency for the build.
 
- 
setRecursive
- 
isRecursiveboolean isRecursive()
- 
setPom
- 
getPomFile getPom()
- 
setShowErrors
- 
isShowErrorsboolean isShowErrors()
- 
setTransferListenerMavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener) 
- 
getTransferListenerorg.eclipse.aether.transfer.TransferListener getTransferListener()
- 
setLoggingLevel
- 
getLoggingLevelint getLoggingLevel()
- 
setUpdateSnapshots
- 
isUpdateSnapshotsboolean isUpdateSnapshots()
- 
setNoSnapshotUpdates
- 
isNoSnapshotUpdatesboolean isNoSnapshotUpdates()
- 
setGlobalChecksumPolicy
- 
getGlobalChecksumPolicyString getGlobalChecksumPolicy()
- 
setLocalRepositoryPath
- 
setLocalRepositoryPath
- 
getLocalRepositoryPathFile getLocalRepositoryPath()
- 
setLocalRepository
- 
getLocalRepositoryArtifactRepository getLocalRepository()
- 
setInteractiveMode
- 
isInteractiveModeboolean isInteractiveMode()
- 
setOffline
- 
isOfflineboolean isOffline()
- 
isCacheTransferErrorboolean isCacheTransferError()
- 
setCacheTransferError
- 
isCacheNotFoundboolean isCacheNotFound()
- 
setCacheNotFound
- 
getProfiles
- 
addProfile
- 
setProfiles
- 
addActiveProfileDeprecated.Since Maven 4: usegetProfileActivation().
- 
addActiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().
- 
setActiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().
- 
getActiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().- Returns:
- The list of profiles that the user wants to activate.
 
- 
addInactiveProfileDeprecated.Since Maven 4: usegetProfileActivation().
- 
addInactiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().
- 
setInactiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().
- 
getInactiveProfilesDeprecated.Since Maven 4: usegetProfileActivation().- Returns:
- The list of profiles that the user wants to de-activate.
 
- 
getProjectActivationProjectActivation getProjectActivation()Return the requested activation(s) of project(s) in this execution.- Returns:
- requested (de-)activation(s) of project(s) in this execution. Never null.
 
- 
getProfileActivationProfileActivation getProfileActivation()Return the requested activation(s) of profile(s) in this execution.- Returns:
- requested (de-)activation(s) of profile(s) in this execution. Never null.
 
- 
getProxies
- 
setProxies
- 
addProxy
- 
getServers
- 
setServers
- 
addServer
- 
getMirrors
- 
setMirrors
- 
addMirror
- 
getPluginGroups
- 
setPluginGroups
- 
addPluginGroup
- 
addPluginGroups
- 
isProjectPresentboolean isProjectPresent()
- 
setProjectPresent
- 
getUserSettingsFileFile getUserSettingsFile()
- 
setUserSettingsFile
- 
getGlobalSettingsFileFile getGlobalSettingsFile()
- 
setGlobalSettingsFile
- 
addRemoteRepository
- 
addPluginArtifactRepository
- 
setRemoteRepositoriesSet 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:
- This request, never null.
 
- 
getRemoteRepositoriesList<ArtifactRepository> getRemoteRepositories()
- 
setPluginArtifactRepositories
- 
getPluginArtifactRepositoriesList<ArtifactRepository> getPluginArtifactRepositories()
- 
setRepositoryCache
- 
getRepositoryCacheorg.eclipse.aether.RepositoryCache getRepositoryCache()
- 
getWorkspaceReaderorg.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()
- 
setWorkspaceReaderMavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) 
- 
getUserToolchainsFileFile getUserToolchainsFile()
- 
setUserToolchainsFile
- 
getGlobalToolchainsFileFile getGlobalToolchainsFile()- Returns:
- the global toolchains file
- Since:
- 3.3.0
 
- 
setGlobalToolchainsFile- Parameters:
- globalToolchainsFile- the global toolchains file
- Returns:
- this request
- Since:
- 3.3.0
 
- 
getExecutionListenerExecutionListener getExecutionListener()
- 
setExecutionListener
- 
getProjectBuildingRequestProjectBuildingRequest getProjectBuildingRequest()
- 
isUseLegacyLocalRepositoryDeprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level. See Resolver Configuration page optionaether.artifactResolver.simpleLrmInteropthat provides similar semantics. This method should be never invoked, and always returnsfalse.- Since:
- 3.1
 
- 
setUseLegacyLocalRepositoryDeprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level. See Resolver Configuration page optionaether.artifactResolver.simpleLrmInteropthat provides similar semantics. This method should be never invoked, and ignores parameter (value remains alwaysfalse).- Since:
- 3.1
 
- 
setBuilderIdControls theBuilderused by Maven by specification of the builder's id.- Since:
- 3.2.0
 
- 
getBuilderIdString getBuilderId()Controls theBuilderused by Maven by specification of the builders id.- Since:
- 3.2.0
 
- 
setToolchains- Parameters:
- toolchains- all toolchains grouped by type
- Returns:
- this request
- Since:
- 3.3.0
 
- 
getToolchainsMap<String,List<ToolchainModel>> getToolchains()- Returns:
- all toolchains grouped by type, never null
- Since:
- 3.3.0
 
- 
setMultiModuleProjectDirectory- Since:
- 3.3.0
 
- 
getMultiModuleProjectDirectoryFile getMultiModuleProjectDirectory()- Since:
- 3.3.0
 
- 
setEventSpyDispatcher- Since:
- 3.3.0
 
- 
getEventSpyDispatcherEventSpyDispatcher getEventSpyDispatcher()- Since:
- 3.3.0
 
- 
getData- Since:
- 3.3.0
 
 
- 
getProfileActivation().