Package org.apache.maven.execution
Class DefaultMavenExecutionRequest
java.lang.Object
org.apache.maven.execution.DefaultMavenExecutionRequest
- All Implemented Interfaces:
- MavenExecutionRequest
- Author:
- Jason van Zyl
- 
Field SummaryFields inherited from interface org.apache.maven.execution.MavenExecutionRequestCHECKSUM_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 SummaryConstructors
- 
Method SummaryModifier 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 MavenExecutionRequestcopy(MavenExecutionRequest original) Controls theBuilderused by Maven by specification of the builders id.getData()intgetGoals()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.RepositoryCacheGets 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()booleanbooleanbooleansetActiveProfiles(List<String> activeProfiles) 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> excludedProjects) setExecutionListener(ExecutionListener executionListener) setGlobalChecksumPolicy(String globalChecksumPolicy) setGlobalSettingsFile(File globalSettingsFile) setGlobalToolchainsFile(File globalToolchainsFile) 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) voidsetMultiModuleProjectDirectory(File directory) setNoSnapshotUpdates(boolean noSnapshotUpdates) setOffline(boolean offline) setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) setPluginGroups(List<String> pluginGroups) setPomFile(String pomFilename) Deprecated.setProfiles(List<Profile> profiles) voidsetProjectBuildingConfiguration(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) setResume(boolean resume) Sets whether the build should be resumed from the data in the resume.properties file.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- 
DefaultMavenExecutionRequestpublic DefaultMavenExecutionRequest()
 
- 
- 
Method Details- 
copy
- 
getBaseDirectory- Specified by:
- getBaseDirectoryin interface- MavenExecutionRequest
 
- 
getLocalRepository- Specified by:
- getLocalRepositoryin interface- MavenExecutionRequest
 
- 
getLocalRepositoryPath- Specified by:
- getLocalRepositoryPathin interface- MavenExecutionRequest
 
- 
getGoals- Specified by:
- getGoalsin interface- MavenExecutionRequest
 
- 
getSystemPropertiesDescription copied from interface:MavenExecutionRequestGets 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:
- getSystemPropertiesin interface- MavenExecutionRequest
- Returns:
- The system properties, never null.
 
- 
getUserPropertiesDescription copied from interface:MavenExecutionRequestGets 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.- Specified by:
- getUserPropertiesin interface- MavenExecutionRequest
- Returns:
- The user properties, never null.
 
- 
getPom- Specified by:
- getPomin interface- MavenExecutionRequest
 
- 
getReactorFailureBehavior- Specified by:
- getReactorFailureBehaviorin interface- MavenExecutionRequest
 
- 
getSelectedProjects- Specified by:
- getSelectedProjectsin interface- MavenExecutionRequest
 
- 
getExcludedProjects- Specified by:
- getExcludedProjectsin interface- MavenExecutionRequest
- Returns:
- the excluded projects, never null
 
- 
isResumepublic boolean isResume()- Specified by:
- isResumein interface- MavenExecutionRequest
- Returns:
- Whether the build should be resumed from the data in the resume.properties file.
 
- 
getResumeFrom- Specified by:
- getResumeFromin interface- MavenExecutionRequest
 
- 
getMakeBehavior- Specified by:
- getMakeBehaviorin interface- MavenExecutionRequest
 
- 
getStartTime- Specified by:
- getStartTimein interface- MavenExecutionRequest
 
- 
isShowErrorspublic boolean isShowErrors()- Specified by:
- isShowErrorsin interface- MavenExecutionRequest
 
- 
isInteractiveModepublic boolean isInteractiveMode()- Specified by:
- isInteractiveModein interface- MavenExecutionRequest
 
- 
setActiveProfiles- Specified by:
- setActiveProfilesin interface- MavenExecutionRequest
 
- 
setInactiveProfiles- Specified by:
- setInactiveProfilesin interface- MavenExecutionRequest
 
- 
getProjectActivationDescription copied from interface:MavenExecutionRequestReturn the requested activation(s) of project(s) in this execution.- Specified by:
- getProjectActivationin interface- MavenExecutionRequest
- Returns:
- requested (de-)activation(s) of project(s) in this execution. Never null.
 
- 
getProfileActivationDescription copied from interface:MavenExecutionRequestReturn the requested activation(s) of profile(s) in this execution.- Specified by:
- getProfileActivationin interface- MavenExecutionRequest
- Returns:
- requested (de-)activation(s) of profile(s) in this execution. Never null.
 
- 
setRemoteRepositoriesDescription copied from interface:MavenExecutionRequestSet 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:
- setRemoteRepositoriesin interface- MavenExecutionRequest
- Returns:
- This request, never null.
 
- 
setPluginArtifactRepositoriespublic MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) - Specified by:
- setPluginArtifactRepositoriesin interface- MavenExecutionRequest
 
- 
setProjectBuildingConfiguration
- 
getActiveProfiles- Specified by:
- getActiveProfilesin interface- MavenExecutionRequest
- Returns:
- The list of profiles that the user wants to activate.
 
- 
getInactiveProfiles- Specified by:
- getInactiveProfilesin interface- MavenExecutionRequest
- Returns:
- The list of profiles that the user wants to de-activate.
 
- 
getTransferListenerpublic org.eclipse.aether.transfer.TransferListener getTransferListener()- Specified by:
- getTransferListenerin interface- MavenExecutionRequest
 
- 
getLoggingLevelpublic int getLoggingLevel()- Specified by:
- getLoggingLevelin interface- MavenExecutionRequest
 
- 
isOfflinepublic boolean isOffline()- Specified by:
- isOfflinein interface- MavenExecutionRequest
 
- 
isUpdateSnapshotspublic boolean isUpdateSnapshots()- Specified by:
- isUpdateSnapshotsin interface- MavenExecutionRequest
 
- 
isNoSnapshotUpdatespublic boolean isNoSnapshotUpdates()- Specified by:
- isNoSnapshotUpdatesin interface- MavenExecutionRequest
 
- 
getGlobalChecksumPolicy- Specified by:
- getGlobalChecksumPolicyin interface- MavenExecutionRequest
 
- 
isRecursivepublic boolean isRecursive()- Specified by:
- isRecursivein interface- MavenExecutionRequest
 
- 
setBaseDirectory- Specified by:
- setBaseDirectoryin interface- MavenExecutionRequest
 
- 
setStartTime- Specified by:
- setStartTimein interface- MavenExecutionRequest
 
- 
setShowErrors- Specified by:
- setShowErrorsin interface- MavenExecutionRequest
 
- 
setGoals- Specified by:
- setGoalsin interface- MavenExecutionRequest
 
- 
setLocalRepository- Specified by:
- setLocalRepositoryin interface- MavenExecutionRequest
 
- 
setLocalRepositoryPath- Specified by:
- setLocalRepositoryPathin interface- MavenExecutionRequest
 
- 
setLocalRepositoryPath- Specified by:
- setLocalRepositoryPathin interface- MavenExecutionRequest
 
- 
setSystemPropertiesDescription copied from interface:MavenExecutionRequestSets 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:
- setSystemPropertiesin interface- MavenExecutionRequest
- Parameters:
- properties- The system properties, may be- null.
- Returns:
- This request, never null.
 
- 
setUserPropertiesDescription copied from interface:MavenExecutionRequestSets 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.- Specified by:
- setUserPropertiesin interface- MavenExecutionRequest
- Parameters:
- userProperties- The user properties, may be- null.
- Returns:
- This request, never null.
 
- 
setReactorFailureBehavior- Specified by:
- setReactorFailureBehaviorin interface- MavenExecutionRequest
 
- 
setSelectedProjects- Specified by:
- setSelectedProjectsin interface- MavenExecutionRequest
 
- 
setExcludedProjects- Specified by:
- setExcludedProjectsin interface- MavenExecutionRequest
- Parameters:
- excludedProjects- the projects to exclude
- Returns:
- this MavenExecutionRequest
 
- 
setResumeDescription copied from interface:MavenExecutionRequestSets whether the build should be resumed from the data in the resume.properties file.- Specified by:
- setResumein interface- MavenExecutionRequest
- Parameters:
- resume- Whether or not to resume a previous build.
- Returns:
- This request, never null.
 
- 
setResumeFrom- Specified by:
- setResumeFromin interface- MavenExecutionRequest
 
- 
setMakeBehavior- Specified by:
- setMakeBehaviorin interface- MavenExecutionRequest
 
- 
addActiveProfile- Specified by:
- addActiveProfilein interface- MavenExecutionRequest
 
- 
addInactiveProfile- Specified by:
- addInactiveProfilein interface- MavenExecutionRequest
 
- 
addActiveProfiles- Specified by:
- addActiveProfilesin interface- MavenExecutionRequest
 
- 
addInactiveProfiles- Specified by:
- addInactiveProfilesin interface- MavenExecutionRequest
 
- 
setUseReactor
- 
useReactorpublic boolean useReactor()
- 
setPomFileDeprecated.usesetPom(File)
- 
setPom- Specified by:
- setPomin interface- MavenExecutionRequest
 
- 
setInteractiveMode- Specified by:
- setInteractiveModein interface- MavenExecutionRequest
 
- 
setTransferListenerpublic MavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener) - Specified by:
- setTransferListenerin interface- MavenExecutionRequest
 
- 
setLoggingLevel- Specified by:
- setLoggingLevelin interface- MavenExecutionRequest
 
- 
setOffline- Specified by:
- setOfflinein interface- MavenExecutionRequest
 
- 
setUpdateSnapshots- Specified by:
- setUpdateSnapshotsin interface- MavenExecutionRequest
 
- 
setNoSnapshotUpdates- Specified by:
- setNoSnapshotUpdatesin interface- MavenExecutionRequest
 
- 
setGlobalChecksumPolicy- Specified by:
- setGlobalChecksumPolicyin interface- MavenExecutionRequest
 
- 
getProxies- Specified by:
- getProxiesin interface- MavenExecutionRequest
 
- 
setProxies- Specified by:
- setProxiesin interface- MavenExecutionRequest
 
- 
addProxy- Specified by:
- addProxyin interface- MavenExecutionRequest
 
- 
getServers- Specified by:
- getServersin interface- MavenExecutionRequest
 
- 
setServers- Specified by:
- setServersin interface- MavenExecutionRequest
 
- 
addServer- Specified by:
- addServerin interface- MavenExecutionRequest
 
- 
getMirrors- Specified by:
- getMirrorsin interface- MavenExecutionRequest
 
- 
setMirrors- Specified by:
- setMirrorsin interface- MavenExecutionRequest
 
- 
addMirror- Specified by:
- addMirrorin interface- MavenExecutionRequest
 
- 
getProfiles- Specified by:
- getProfilesin interface- MavenExecutionRequest
 
- 
setProfiles- Specified by:
- setProfilesin interface- MavenExecutionRequest
 
- 
getPluginGroups- Specified by:
- getPluginGroupsin interface- MavenExecutionRequest
 
- 
setPluginGroups- Specified by:
- setPluginGroupsin interface- MavenExecutionRequest
 
- 
addPluginGroup- Specified by:
- addPluginGroupin interface- MavenExecutionRequest
 
- 
addPluginGroups- Specified by:
- addPluginGroupsin interface- MavenExecutionRequest
 
- 
setRecursive- Specified by:
- setRecursivein interface- MavenExecutionRequest
 
- 
isProjectPresentpublic boolean isProjectPresent()- Specified by:
- isProjectPresentin interface- MavenExecutionRequest
 
- 
setProjectPresent- Specified by:
- setProjectPresentin interface- MavenExecutionRequest
 
- 
getUserSettingsFile- Specified by:
- getUserSettingsFilein interface- MavenExecutionRequest
 
- 
setUserSettingsFile- Specified by:
- setUserSettingsFilein interface- MavenExecutionRequest
 
- 
getGlobalSettingsFile- Specified by:
- getGlobalSettingsFilein interface- MavenExecutionRequest
 
- 
setGlobalSettingsFile- Specified by:
- setGlobalSettingsFilein interface- MavenExecutionRequest
 
- 
getUserToolchainsFile- Specified by:
- getUserToolchainsFilein interface- MavenExecutionRequest
 
- 
setUserToolchainsFile- Specified by:
- setUserToolchainsFilein interface- MavenExecutionRequest
 
- 
getGlobalToolchainsFile- Specified by:
- getGlobalToolchainsFilein interface- MavenExecutionRequest
- Returns:
- the global toolchains file
 
- 
setGlobalToolchainsFile- Specified by:
- setGlobalToolchainsFilein interface- MavenExecutionRequest
- Parameters:
- globalToolchainsFile- the global toolchains file
- Returns:
- this request
 
- 
addRemoteRepository- Specified by:
- addRemoteRepositoryin interface- MavenExecutionRequest
 
- 
getRemoteRepositories- Specified by:
- getRemoteRepositoriesin interface- MavenExecutionRequest
 
- 
addPluginArtifactRepository- Specified by:
- addPluginArtifactRepositoryin interface- MavenExecutionRequest
 
- 
getPluginArtifactRepositories- Specified by:
- getPluginArtifactRepositoriesin interface- MavenExecutionRequest
 
- 
getProjectBuildingRequest- Specified by:
- getProjectBuildingRequestin interface- MavenExecutionRequest
 
- 
addProfile- Specified by:
- addProfilein interface- MavenExecutionRequest
 
- 
getRepositoryCachepublic org.eclipse.aether.RepositoryCache getRepositoryCache()- Specified by:
- getRepositoryCachein interface- MavenExecutionRequest
 
- 
setRepositoryCache- Specified by:
- setRepositoryCachein interface- MavenExecutionRequest
 
- 
getExecutionListener- Specified by:
- getExecutionListenerin interface- MavenExecutionRequest
 
- 
setExecutionListener- Specified by:
- setExecutionListenerin interface- MavenExecutionRequest
 
- 
setDegreeOfConcurrencypublic void setDegreeOfConcurrency(int degreeOfConcurrency) Description copied from interface:MavenExecutionRequestSet's the parallel degree of concurrency used by the build.- Specified by:
- setDegreeOfConcurrencyin interface- MavenExecutionRequest
 
- 
getDegreeOfConcurrencypublic int getDegreeOfConcurrency()- Specified by:
- getDegreeOfConcurrencyin interface- MavenExecutionRequest
- Returns:
- the degree of concurrency for the build.
 
- 
getWorkspaceReaderpublic org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()- Specified by:
- getWorkspaceReaderin interface- MavenExecutionRequest
 
- 
setWorkspaceReaderpublic MavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) - Specified by:
- setWorkspaceReaderin interface- MavenExecutionRequest
 
- 
isCacheTransferErrorpublic boolean isCacheTransferError()- Specified by:
- isCacheTransferErrorin interface- MavenExecutionRequest
 
- 
setCacheTransferError- Specified by:
- setCacheTransferErrorin interface- MavenExecutionRequest
 
- 
isCacheNotFoundpublic boolean isCacheNotFound()- Specified by:
- isCacheNotFoundin interface- MavenExecutionRequest
 
- 
setCacheNotFound- Specified by:
- setCacheNotFoundin interface- MavenExecutionRequest
 
- 
isUseLegacyLocalRepositorypublic boolean isUseLegacyLocalRepository()- Specified by:
- isUseLegacyLocalRepositoryin interface- MavenExecutionRequest
 
- 
setUseLegacyLocalRepository- Specified by:
- setUseLegacyLocalRepositoryin interface- MavenExecutionRequest
 
- 
setBuilderIdDescription copied from interface:MavenExecutionRequestControls theBuilderused by Maven by specification of the builder's id.- Specified by:
- setBuilderIdin interface- MavenExecutionRequest
 
- 
getBuilderIdDescription copied from interface:MavenExecutionRequestControls theBuilderused by Maven by specification of the builders id.- Specified by:
- getBuilderIdin interface- MavenExecutionRequest
 
- 
getToolchains- Specified by:
- getToolchainsin interface- MavenExecutionRequest
- Returns:
- all toolchains grouped by type, never null
 
- 
setToolchains- Specified by:
- setToolchainsin interface- MavenExecutionRequest
- Parameters:
- toolchains- all toolchains grouped by type
- Returns:
- this request
 
- 
setMultiModuleProjectDirectory- Specified by:
- setMultiModuleProjectDirectoryin interface- MavenExecutionRequest
 
- 
getMultiModuleProjectDirectory- Specified by:
- getMultiModuleProjectDirectoryin interface- MavenExecutionRequest
 
- 
setEventSpyDispatcher- Specified by:
- setEventSpyDispatcherin interface- MavenExecutionRequest
 
- 
getEventSpyDispatcher- Specified by:
- getEventSpyDispatcherin interface- MavenExecutionRequest
 
- 
getData- Specified by:
- getDatain interface- MavenExecutionRequest
 
 
- 
setPom(File)