Package org.apache.maven.shared.invoker
Interface InvocationRequest
-
- All Known Implementing Classes:
DefaultInvocationRequest
public interface InvocationRequestSpecifies the parameters used to control a Maven invocation.- Version:
- $Id: InvocationRequest.java 1635406 2014-10-30 06:51:13Z hboutemy $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHECKSUM_POLICY_FAILThe strict checksum policy which fails the build if a corrupt artifact is detected.static java.lang.StringCHECKSUM_POLICY_WARNThe lax checksum policy which only outputs a warning if a corrupt artifact is detected.static java.lang.StringREACTOR_FAIL_AT_ENDThe failure mode "fail-at-end" where the build is only failed at its very end if necessary.static java.lang.StringREACTOR_FAIL_FASTThe failure mode "fail-fast" where the build is stopped by the first failure.static java.lang.StringREACTOR_FAIL_NEVERThe failure mode "fail-never" in which Maven will always exit with code 0 regardless of build failures.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvocationRequestactivateReactor(java.lang.String[] includes, java.lang.String[] excludes)Dynamically constructs a reactor using the subdirectories of the current directoryInvocationRequestaddShellEnvironment(java.lang.String name, java.lang.String value)Adds the specified environment variable to the Maven invocation.java.lang.String[]getActivatedReactorExcludes()Gets the list of subdirectory patterns to exclude from searchjava.lang.String[]getActivatedReactorIncludes()Gets the list of subdirectory patterns to searchjava.io.FilegetBaseDirectory()Gets the path to the base directory of the POM for the Maven invocation.java.io.FilegetBaseDirectory(java.io.File defaultDirectory)Gets the path to the base directory of the POM for the Maven invocation.InvocationOutputHandlergetErrorHandler(InvocationOutputHandler defaultHandler)Gets the handler used to capture the error output from the Maven build.java.lang.StringgetFailureBehavior()Gets the failure mode of the Maven invocation.java.lang.StringgetGlobalChecksumPolicy()Gets the checksum mode of the Maven invocation.java.io.FilegetGlobalSettingsFile()Gets the path to the global settings for the Maven invocation.java.util.List<java.lang.String>getGoals()Gets the goals for the Maven invocation.java.io.InputStreamgetInputStream(java.io.InputStream defaultStream)Gets the input stream used to provide input for the invoked Maven build.java.io.FilegetJavaHome()Gets the path to the base directory of the Java installation used to run Maven.java.io.FilegetLocalRepositoryDirectory(java.io.File defaultDirectory)Gets the path to the base directory of the local repository to use for the Maven invocation.java.lang.StringgetMavenOpts()Gets the value of theMAVEN_OPTSenvironment variable.InvocationOutputHandlergetOutputHandler(InvocationOutputHandler defaultHandler)Gets the handler used to capture the standard output from the Maven build.java.io.FilegetPomFile()Gets the path to the POM for the Maven invocation.java.lang.StringgetPomFileName()Gets the (unqualified) filename of the POM for the Maven invocation.java.util.List<java.lang.String>getProfiles()Gets the profiles for the Maven invocation.java.util.List<java.lang.String>getProjects()A list of specified reactor projects to build instead of all projects.java.util.PropertiesgetProperties()Gets the system properties for the Maven invocation.java.lang.StringgetResumeFrom()Get the value ofresume-fromjava.util.Map<java.lang.String,java.lang.String>getShellEnvironments()Gets the environment variables for the Maven invocation.java.lang.StringgetThreads()Get the value of thethreadsargument.java.io.FilegetToolchainsFile()Gets the path to the custom toolchains filejava.io.FilegetUserSettingsFile()Gets the path to the user settings for the Maven invocation.booleanisActivatedReactor()Gets whether Maven should search subdirectories to build a dynamic reactorbooleanisAlsoMake()Get the value of thealso-makeargument.booleanisAlsoMakeDependents()Get the value of thealso-make-dependentsbooleanisDebug()Gets the debug mode of the Maven invocation.booleanisInteractive()Gets the interaction mode of the Maven invocation.booleanisNonPluginUpdates()Indicates whether Maven should check for plugin updates.booleanisOffline()Gets the network mode of the Maven invocation.booleanisRecursive()Gets the recursion behavior of a reactor invocation.booleanisShellEnvironmentInherited()Indicates whether the environment variables of the current process should be propagated to the Maven invocation.booleanisShowErrors()Gets the exception output mode of the Maven invocation.booleanisShowVersion()The show version behaviour (-V option)booleanisUpdateSnapshots()Indicates whether Maven should enforce an update check for plugins and snapshots.InvocationRequestsetAlsoMake(boolean alsoMake)Enable the 'also make' mode.InvocationRequestsetAlsoMakeDependents(boolean alsoMakeDependents)Enable the 'also make dependents' mode.InvocationRequestsetBaseDirectory(java.io.File basedir)Sets the path to the base directory of the POM for the Maven invocation.InvocationRequestsetDebug(boolean debug)Sets the debug mode of the Maven invocation.InvocationRequestsetErrorHandler(InvocationOutputHandler errorHandler)Sets the handler used to capture the error output from the Maven build.InvocationRequestsetFailureBehavior(java.lang.String failureBehavior)Sets the failure mode of the Maven invocation.InvocationRequestsetGlobalChecksumPolicy(java.lang.String globalChecksumPolicy)Sets the checksum mode of the Maven invocation.InvocationRequestsetGlobalSettingsFile(java.io.File globalSettings)Sets the path to the global settings for the Maven invocation.InvocationRequestsetGoals(java.util.List<java.lang.String> goals)Sets the goals for the Maven invocation.InvocationRequestsetInputStream(java.io.InputStream inputStream)Sets the input stream used to provide input for the invoked Maven build.InvocationRequestsetInteractive(boolean interactive)Sets the interaction mode of the Maven invocation.InvocationRequestsetJavaHome(java.io.File javaHome)Sets the path to the base directory of the Java installation used to run Maven.InvocationRequestsetLocalRepositoryDirectory(java.io.File localRepository)Sets the path to the base directory of the local repository to use for the Maven invocation.InvocationRequestsetMavenOpts(java.lang.String mavenOpts)Sets the value of theMAVEN_OPTSenvironment variable.InvocationRequestsetNonPluginUpdates(boolean nonPluginUpdates)Specifies whether Maven should check for plugin updates.InvocationRequestsetOffline(boolean offline)Sets the network mode of the Maven invocation.InvocationRequestsetOutputHandler(InvocationOutputHandler outputHandler)Sets the handler used to capture the standard output from the Maven build.InvocationRequestsetPomFile(java.io.File pomFile)Sets the path to the POM for the Maven invocation.InvocationRequestsetPomFileName(java.lang.String pomFilename)Sets the (unqualified) filename of the POM for the Maven invocation.InvocationRequestsetProfiles(java.util.List<java.lang.String> profiles)Sets the profiles for the Maven invocation.InvocationRequestsetProjects(java.util.List<java.lang.String> projects)Sets the reactor project list.InvocationRequestsetProperties(java.util.Properties properties)Sets the system properties for the Maven invocation.InvocationRequestsetRecursive(boolean recursive)Sets the recursion behavior of a reactor invocation.InvocationRequestsetResumeFrom(java.lang.String resumeFrom)Resume reactor from specified project.InvocationRequestsetShellEnvironmentInherited(boolean shellEnvironmentInherited)Specifies whether the environment variables of the current process should be propagated to the Maven invocation.InvocationRequestsetShowErrors(boolean showErrors)Sets the exception output mode of the Maven invocation.InvocationRequestsetShowVersion(boolean showVersion)enable displaying version without stopping the build Equivalent of-Vor--show-versionInvocationRequestsetThreads(java.lang.String threads)Thread count, for instance 2.0C where C is core multiplied Equivalent of-Tor--threadsInvocationRequestsetToolchainsFile(java.io.File toolchains)Sets the alternate path for the user toolchains file Equivalent of-tor--toolchainsInvocationRequestsetUpdateSnapshots(boolean updateSnapshots)Specifies whether Maven should enforce an update check for plugins and snapshots.InvocationRequestsetUserSettingsFile(java.io.File userSettings)Sets the path to the user settings for the Maven invocation.
-
-
-
Field Detail
-
REACTOR_FAIL_FAST
static final java.lang.String REACTOR_FAIL_FAST
The failure mode "fail-fast" where the build is stopped by the first failure.- See Also:
- Constant Field Values
-
REACTOR_FAIL_AT_END
static final java.lang.String REACTOR_FAIL_AT_END
The failure mode "fail-at-end" where the build is only failed at its very end if necessary.- See Also:
- Constant Field Values
-
REACTOR_FAIL_NEVER
static final java.lang.String REACTOR_FAIL_NEVER
The failure mode "fail-never" in which Maven will always exit with code 0 regardless of build failures.- See Also:
- Constant Field Values
-
CHECKSUM_POLICY_FAIL
static final java.lang.String CHECKSUM_POLICY_FAIL
The strict checksum policy which fails the build if a corrupt artifact is detected.- See Also:
- Constant Field Values
-
CHECKSUM_POLICY_WARN
static final java.lang.String CHECKSUM_POLICY_WARN
The lax checksum policy which only outputs a warning if a corrupt artifact is detected.- See Also:
- Constant Field Values
-
-
Method Detail
-
isInteractive
boolean isInteractive()
Gets the interaction mode of the Maven invocation. By default, Maven is executed in batch mode.- Returns:
trueif Maven should be executed in interactive mode,falseif the batch mode is used.
-
isOffline
boolean isOffline()
Gets the network mode of the Maven invocation. By default, Maven is executed in online mode.- Returns:
trueif Maven should be executed in offline mode,falseif the online mode is used.
-
isUpdateSnapshots
boolean isUpdateSnapshots()
Indicates whether Maven should enforce an update check for plugins and snapshots. By default, no update check is performed.- Returns:
trueif plugins and snapshots should be updated,falseotherwise.
-
isRecursive
boolean isRecursive()
Gets the recursion behavior of a reactor invocation. By default, Maven will recursive the build into sub modules.- Returns:
trueif sub modules should be build,falseotherwise.
-
isActivatedReactor
boolean isActivatedReactor()
Gets whether Maven should search subdirectories to build a dynamic reactor- Returns:
trueif we should search subdirectories,falseotherwise
-
getActivatedReactorIncludes
java.lang.String[] getActivatedReactorIncludes()
Gets the list of subdirectory patterns to search- Returns:
- list of subdirectory patterns to search, or
nullin which case defaults should be used
-
getActivatedReactorExcludes
java.lang.String[] getActivatedReactorExcludes()
Gets the list of subdirectory patterns to exclude from search- Returns:
- list of subdirectory patterns to exclude search, or
nullin which case nothing should be excluded
-
getProjects
java.util.List<java.lang.String> getProjects()
A list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path.- Returns:
- the list of projects to add to reactor build, otherwise
null - Since:
- 2.1
-
isAlsoMake
boolean isAlsoMake()
Get the value of thealso-makeargument.- Returns:
trueif the argumentalso-makewas specified, otherwisefalse- Since:
- 2.1
-
isAlsoMakeDependents
boolean isAlsoMakeDependents()
Get the value of thealso-make-dependents- Returns:
trueif the argumentalso-make-dependentswas specified, otherwisefalse- Since:
- 2.1
-
getResumeFrom
java.lang.String getResumeFrom()
Get the value ofresume-from- Returns:
- specified reactor project to resume from
- Since:
- 2.1
-
isDebug
boolean isDebug()
Gets the debug mode of the Maven invocation. By default, Maven is executed in normal mode.- Returns:
trueif Maven should be executed in debug mode,falseif the normal mode should be used.
-
isShowErrors
boolean isShowErrors()
Gets the exception output mode of the Maven invocation. By default, Maven will not print stack traces of build exceptions.- Returns:
trueif Maven should print stack traces,falseotherwise.
-
isShellEnvironmentInherited
boolean isShellEnvironmentInherited()
Indicates whether the environment variables of the current process should be propagated to the Maven invocation. By default, the current environment variables are inherited by the new Maven invocation.- Returns:
trueif the environment variables should be propagated,falseotherwise.
-
isNonPluginUpdates
boolean isNonPluginUpdates()
Indicates whether Maven should check for plugin updates. By default, plugin updates are not suppressed.- Returns:
trueif plugin updates should be suppressed,falseotherwise.
-
getFailureBehavior
java.lang.String getFailureBehavior()
Gets the failure mode of the Maven invocation. By default, the modeREACTOR_FAIL_FASTis used.- Returns:
- The failure mode, one of
REACTOR_FAIL_FAST,REACTOR_FAIL_AT_ENDandREACTOR_FAIL_NEVER.
-
getLocalRepositoryDirectory
java.io.File getLocalRepositoryDirectory(java.io.File defaultDirectory)
Gets the path to the base directory of the local repository to use for the Maven invocation.- Parameters:
defaultDirectory- The default location to use if no location is configured for this request, may benull.- Returns:
- The path to the base directory of the local repository or
nullto use the location from thesettings.xml.
-
getInputStream
java.io.InputStream getInputStream(java.io.InputStream defaultStream)
Gets the input stream used to provide input for the invoked Maven build. This is in particular useful when invoking Maven in interactive mode.- Returns:
- The input stream used to provide input for the invoked Maven build or
nullif not set.
-
getOutputHandler
InvocationOutputHandler getOutputHandler(InvocationOutputHandler defaultHandler)
Gets the handler used to capture the standard output from the Maven build.- Returns:
- The output handler or
nullif not set.
-
getErrorHandler
InvocationOutputHandler getErrorHandler(InvocationOutputHandler defaultHandler)
Gets the handler used to capture the error output from the Maven build.- Returns:
- The error handler or
nullif not set.
-
getPomFile
java.io.File getPomFile()
Gets the path to the POM for the Maven invocation. If no base directory is set, the parent directory of this POM will be used as the working directory for the Maven invocation.- Returns:
- The path to the POM for the Maven invocation or
nullif not set.
-
getPomFileName
java.lang.String getPomFileName()
Gets the (unqualified) filename of the POM for the Maven invocation. This setting is ignored ifgetPomFile()does not returnnull. Otherwise, the base directory is assumed to contain a POM with this name. By default, a file namedpom.xmlis used.- Returns:
- The (unqualified) filename of the POM for the Maven invocation or
nullif not set.
-
getBaseDirectory
java.io.File getBaseDirectory()
Gets the path to the base directory of the POM for the Maven invocation. IfgetPomFile()does not returnnull, this setting only affects the working directory for the Maven invocation.- Returns:
- The path to the base directory of the POM or
nullif not set.
-
getBaseDirectory
java.io.File getBaseDirectory(java.io.File defaultDirectory)
Gets the path to the base directory of the POM for the Maven invocation. IfgetPomFile()does not returnnull, this setting only affects the working directory for the Maven invocation.- Parameters:
defaultDirectory- The default base directory to use if none is configured for this request, may benull.- Returns:
- The path to the base directory of the POM or
nullif not set.
-
getJavaHome
java.io.File getJavaHome()
Gets the path to the base directory of the Java installation used to run Maven.- Returns:
- The path to the base directory of the Java installation used to run Maven or
nullto use the default Java home.
-
getProperties
java.util.Properties getProperties()
Gets the system properties for the Maven invocation.- Returns:
- The system properties for the Maven invocation or
nullif not set.
-
getGoals
java.util.List<java.lang.String> getGoals()
Gets the goals for the Maven invocation.- Returns:
- The goals for the Maven invocation or
nullif not set.
-
getUserSettingsFile
java.io.File getUserSettingsFile()
Gets the path to the user settings for the Maven invocation.- Returns:
- The path to the user settings for the Maven invocation or
nullto load the user settings from the default location.
-
getGlobalSettingsFile
java.io.File getGlobalSettingsFile()
Gets the path to the global settings for the Maven invocation.- Returns:
- The path to the global settings for the Maven invocation or
nullto load the global settings from the default location. - Since:
- 2.1
-
getToolchainsFile
java.io.File getToolchainsFile()
Gets the path to the custom toolchains file- Returns:
- The path to the custom toolchains file or
nullto load the toolchains from the default location - Since:
- 2.1
-
getGlobalChecksumPolicy
java.lang.String getGlobalChecksumPolicy()
Gets the checksum mode of the Maven invocation.- Returns:
- The checksum mode, one of
CHECKSUM_POLICY_WARNandCHECKSUM_POLICY_FAIL.
-
getProfiles
java.util.List<java.lang.String> getProfiles()
Gets the profiles for the Maven invocation.- Returns:
- The profiles for the Maven invocation or
nullif not set.
-
getShellEnvironments
java.util.Map<java.lang.String,java.lang.String> getShellEnvironments()
Gets the environment variables for the Maven invocation.- Returns:
- The environment variables for the Maven invocation or
nullif not set.
-
getMavenOpts
java.lang.String getMavenOpts()
Gets the value of theMAVEN_OPTSenvironment variable.- Returns:
- The value of the
MAVEN_OPTSenvironment variable ornullif not set.
-
isShowVersion
boolean isShowVersion()
The show version behaviour (-V option)- Returns:
- The show version behaviour
- Since:
- 2.0.11
-
getThreads
java.lang.String getThreads()
Get the value of thethreadsargument.- Returns:
- the value of the
threadsargument ornullif not set - Since:
- 2.1
-
setInteractive
InvocationRequest setInteractive(boolean interactive)
Sets the interaction mode of the Maven invocation. Inverse equivalent of-Band--batch-mode- Parameters:
interactive-trueif Maven should be executed in interactive mode,falseif the batch mode is used.- Returns:
- This invocation request.
-
setOffline
InvocationRequest setOffline(boolean offline)
Sets the network mode of the Maven invocation. Equivalent of-oand--offline- Parameters:
offline-trueif Maven should be executed in offline mode,falseif the online mode is used.- Returns:
- This invocation request.
-
setDebug
InvocationRequest setDebug(boolean debug)
Sets the debug mode of the Maven invocation. Equivalent of-Xand--debug- Parameters:
debug-trueif Maven should be executed in debug mode,falseif the normal mode should be used.- Returns:
- This invocation request.
-
setShowErrors
InvocationRequest setShowErrors(boolean showErrors)
Sets the exception output mode of the Maven invocation. Equivalent of-eand--errors- Parameters:
showErrors-trueif Maven should print stack traces,falseotherwise.- Returns:
- This invocation request.
-
setUpdateSnapshots
InvocationRequest setUpdateSnapshots(boolean updateSnapshots)
Specifies whether Maven should enforce an update check for plugins and snapshots. Equivalent of-Uand--update-snapshots- Parameters:
updateSnapshots-trueif plugins and snapshots should be updated,falseotherwise.- Returns:
- This invocation request.
-
setFailureBehavior
InvocationRequest setFailureBehavior(java.lang.String failureBehavior)
Sets the failure mode of the Maven invocation. Equivalent of-ffand--fail-fast,-faeand--fail-at-end,-fnand--fail-never- Parameters:
failureBehavior- The failure mode, must be one ofREACTOR_FAIL_FAST,REACTOR_FAIL_AT_ENDandREACTOR_FAIL_NEVER.- Returns:
- This invocation request.
-
activateReactor
InvocationRequest activateReactor(java.lang.String[] includes, java.lang.String[] excludes)
Dynamically constructs a reactor using the subdirectories of the current directory- Parameters:
includes- a list of filename patterns to include, or null, in which case the default is */pom.xmlexcludes- a list of filename patterns to exclude, or null, in which case nothing is excluded- Returns:
- This invocation request
-
setLocalRepositoryDirectory
InvocationRequest setLocalRepositoryDirectory(java.io.File localRepository)
Sets the path to the base directory of the local repository to use for the Maven invocation.- Parameters:
localRepository- The path to the base directory of the local repository, may benull.- Returns:
- This invocation request.
-
setInputStream
InvocationRequest setInputStream(java.io.InputStream inputStream)
Sets the input stream used to provide input for the invoked Maven build. This is in particular useful when invoking Maven in interactive mode.- Parameters:
inputStream- The input stream used to provide input for the invoked Maven build, may benullif not required.- Returns:
- This invocation request.
-
setOutputHandler
InvocationRequest setOutputHandler(InvocationOutputHandler outputHandler)
Sets the handler used to capture the standard output from the Maven build.- Parameters:
outputHandler- The output handler, may benullif the output is not of interest.- Returns:
- This invocation request.
-
setErrorHandler
InvocationRequest setErrorHandler(InvocationOutputHandler errorHandler)
Sets the handler used to capture the error output from the Maven build.- Parameters:
errorHandler- The error handler, may benullif the output is not of interest.- Returns:
- This invocation request.
-
setPomFile
InvocationRequest setPomFile(java.io.File pomFile)
Sets the path to the POM for the Maven invocation. If no base directory is set, the parent directory of this POM will be used as the working directory for the Maven invocation.- Parameters:
pomFile- The path to the POM for the Maven invocation, may benullif not used.- Returns:
- This invocation request.
-
setPomFileName
InvocationRequest setPomFileName(java.lang.String pomFilename)
Sets the (unqualified) filename of the POM for the Maven invocation. This setting is ignored ifgetPomFile()does not returnnull. Otherwise, the base directory is assumed to contain a POM with this name.- Parameters:
pomFilename- The (unqualified) filename of the POM for the Maven invocation, may benullif not used.- Returns:
- This invocation request.
-
setBaseDirectory
InvocationRequest setBaseDirectory(java.io.File basedir)
Sets the path to the base directory of the POM for the Maven invocation. IfgetPomFile()does not returnnull, this setting only affects the working directory for the Maven invocation.- Parameters:
basedir- The path to the base directory of the POM, may benullif not used.- Returns:
- This invocation request.
-
setJavaHome
InvocationRequest setJavaHome(java.io.File javaHome)
Sets the path to the base directory of the Java installation used to run Maven.- Parameters:
javaHome- The path to the base directory of the Java installation used to run Maven, may benullto use the default Java home.- Returns:
- This invocation request.
-
setProperties
InvocationRequest setProperties(java.util.Properties properties)
Sets the system properties for the Maven invocation.- Parameters:
properties- The system properties for the Maven invocation, may benullif not set.- Returns:
- This invocation request.
-
setGoals
InvocationRequest setGoals(java.util.List<java.lang.String> goals)
Sets the goals for the Maven invocation.- Parameters:
goals- The goals for the Maven invocation, may benullto execute the POMs default goal.- Returns:
- This invocation request.
-
setProfiles
InvocationRequest setProfiles(java.util.List<java.lang.String> profiles)
Sets the profiles for the Maven invocation. Equivalent of-Pand--active-profiles- Parameters:
profiles- The profiles for the Maven invocation, may benullto use the default profiles.- Returns:
- This invocation request.
-
setShellEnvironmentInherited
InvocationRequest setShellEnvironmentInherited(boolean shellEnvironmentInherited)
Specifies whether the environment variables of the current process should be propagated to the Maven invocation.- Parameters:
shellEnvironmentInherited-trueif the environment variables should be propagated,falseotherwise.- Returns:
- This invocation request.
-
setUserSettingsFile
InvocationRequest setUserSettingsFile(java.io.File userSettings)
Sets the path to the user settings for the Maven invocation. Equivalent of-sand--settings- Parameters:
userSettings- The path to the user settings for the Maven invocation, may benullto load the user settings from the default location.- Returns:
- This invocation request.
-
setGlobalSettingsFile
InvocationRequest setGlobalSettingsFile(java.io.File globalSettings)
Sets the path to the global settings for the Maven invocation. Equivalent of-gsand--global-settings- Parameters:
globalSettings- The path to the global settings for the Maven invocation, may benullto load the global settings from the default location.- Returns:
- This invocation request.
- Since:
- 2.1
-
setToolchainsFile
InvocationRequest setToolchainsFile(java.io.File toolchains)
Sets the alternate path for the user toolchains file Equivalent of-tor--toolchainsnote: available since Maven3
- Parameters:
toolchains- the alternate path for the user toolchains file- Returns:
- This invocation request
- Since:
- 2.1
-
setGlobalChecksumPolicy
InvocationRequest setGlobalChecksumPolicy(java.lang.String globalChecksumPolicy)
Sets the checksum mode of the Maven invocation. Equivalent of-cor--lax-checksums,-Cor--strict-checksums- Parameters:
globalChecksumPolicy- The checksum mode, must be one ofCHECKSUM_POLICY_WARNandCHECKSUM_POLICY_FAIL.- Returns:
- This invocation request.
-
setNonPluginUpdates
InvocationRequest setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.Equivalent of
-npuor--no-plugin-updates
note: Ineffective with Maven3, only kept for backward compatibility- Parameters:
nonPluginUpdates-trueif plugin updates should be suppressed,falseotherwise.- Returns:
- This invocation request.
-
setRecursive
InvocationRequest setRecursive(boolean recursive)
Sets the recursion behavior of a reactor invocation. Inverse equivalent of-Nand--non-recursive- Parameters:
recursive-trueif sub modules should be build,falseotherwise.- Returns:
- This invocation request.
-
addShellEnvironment
InvocationRequest addShellEnvironment(java.lang.String name, java.lang.String value)
Adds the specified environment variable to the Maven invocation.- Parameters:
name- The name of the environment variable, must not benull.value- The value of the environment variable, must not benull.- Returns:
- This invocation request.
-
setMavenOpts
InvocationRequest setMavenOpts(java.lang.String mavenOpts)
Sets the value of theMAVEN_OPTSenvironment variable.- Parameters:
mavenOpts- The value of theMAVEN_OPTSenvironment variable, may benullto use the default options.- Returns:
- This invocation request.
-
setShowVersion
InvocationRequest setShowVersion(boolean showVersion)
enable displaying version without stopping the build Equivalent of-Vor--show-version- Parameters:
showVersion- enable displaying version- Returns:
- This invocation request.
- Since:
- 2.0.11
-
setThreads
InvocationRequest setThreads(java.lang.String threads)
Thread count, for instance 2.0C where C is core multiplied Equivalent of-Tor--threadsnote: available since Maven3
- Parameters:
threads- the threadcount- Returns:
- This invocation request.
- Since:
- 2.1
-
setProjects
InvocationRequest setProjects(java.util.List<java.lang.String> projects)
Sets the reactor project list. Equivalent of-Por--projects- Parameters:
projects- the reactor project list- Returns:
- This invocation request.
- Since:
- 2.1
-
setAlsoMake
InvocationRequest setAlsoMake(boolean alsoMake)
Enable the 'also make' mode. Equivalent of-amor--also-make- Parameters:
alsoMake- enable 'also make' mode- Returns:
- This invocation request.
- Since:
- 2.1
-
setAlsoMakeDependents
InvocationRequest setAlsoMakeDependents(boolean alsoMakeDependents)
Enable the 'also make dependents' mode. Equivalent of-amdor--also-make-dependents- Parameters:
alsoMakeDependents- enable 'also make' mode- Returns:
- This invocation request.
- Since:
- 2.1
-
setResumeFrom
InvocationRequest setResumeFrom(java.lang.String resumeFrom)
Resume reactor from specified project. Equivalent of-rfor--resume-from- Parameters:
resumeFrom- set the project to resume from- Returns:
- This invocation request
- Since:
- 2.1
-
-