Package org.apache.maven.shared.invoker
Interface InvocationRequest
-
- All Known Implementing Classes:
DefaultInvocationRequest
public interface InvocationRequestSpecifies the parameters used to control a Maven invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInvocationRequest.CheckSumPolicyThe kind of checksum policy which should be used during Maven invocation.static classInvocationRequest.ReactorFailureBehaviorThe reactor failure behavior which to be used during Maven invocation.
-
Field Summary
Fields Modifier and Type Field Description static intNO_TIMEOUTConstantNO_TIMEOUT=0
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvocationRequestaddShellEnvironment(String name, String value)Adds the specified environment variable to the Maven invocation.FilegetBaseDirectory()Gets the path to the base directory of the POM for the Maven invocation.FilegetBaseDirectory(File defaultDirectory)Gets the path to the base directory of the POM for the Maven invocation.StringgetBuilder()Get the current set builder strategy id equivalent of--builder id.InvocationOutputHandlergetErrorHandler(InvocationOutputHandler defaultHandler)Gets the handler used to capture the error output from the Maven build.InvocationRequest.CheckSumPolicygetGlobalChecksumPolicy()Gets the checksum mode of the Maven invocation.FilegetGlobalSettingsFile()Gets the path to the global settings for the Maven invocation.FilegetGlobalToolchainsFile()Alternate path for the global toolchains file Note.List<String>getGoals()Gets the goals for the Maven invocation.InputStreamgetInputStream(InputStream defaultStream)Gets the input stream used to provide input for the invoked Maven build.FilegetJavaHome()Gets the path to the base directory of the Java installation used to run Maven.FilegetLocalRepositoryDirectory(File defaultDirectory)Gets the path to the base directory of the local repository to use for the Maven invocation.StringgetMavenOpts()Gets the value of theMAVEN_OPTSenvironment variable.InvocationOutputHandlergetOutputHandler(InvocationOutputHandler defaultHandler)Gets the handler used to capture the standard output from the Maven build.FilegetPomFile()Gets the path to the POM for the Maven invocation.StringgetPomFileName()Gets the (unqualified) filename of the POM for the Maven invocation.List<String>getProfiles()Gets the profiles for the Maven invocation.List<String>getProjects()A list of specified reactor projects to build instead of all projects.PropertiesgetProperties()Gets the system properties for the Maven invocation.InvocationRequest.ReactorFailureBehaviorgetReactorFailureBehavior()Gets the failure mode of the Maven invocation.StringgetResumeFrom()Get the value ofresume-fromMap<String,String>getShellEnvironments()Gets the environment variables for the Maven invocation.StringgetThreads()Get the value of thethreadsargument.intgetTimeoutInSeconds()getTimeoutInSeconds.FilegetToolchainsFile()Gets the path to the custom toolchains fileFilegetUserSettingsFile()Gets the path to the user settings for the Maven invocation.booleanisAlsoMake()Get the value of thealso-makeargument.booleanisAlsoMakeDependents()Get the value of thealso-make-dependentsbooleanisBatchMode()By default, Maven is executed in batch mode.booleanisDebug()Gets the debug mode of the Maven invocation.booleanisNonPluginUpdates()Indicates whether Maven should check for plugin updates.booleanisOffline()Gets the network mode of the Maven invocation.booleanisQuiet()Gets the quiet 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 behavior (-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(File basedir)Sets the path to the base directory of the POM for the Maven invocation.InvocationRequestsetBatchMode(boolean batchMode)Sets the interaction mode of the Maven invocation.InvocationRequestsetBuilder(String id)The id of the build strategy to use.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.InvocationRequestsetGlobalChecksumPolicy(InvocationRequest.CheckSumPolicy globalChecksumPolicy)Sets the checksum mode of the Maven invocation.InvocationRequestsetGlobalSettingsFile(File globalSettings)Sets the path to the global settings for the Maven invocation.InvocationRequestsetGlobalToolchainsFile(File toolchains)Sets the alternate path for the global toolchains file Equivalent of-gtor--global-toolchainsInvocationRequestsetGoals(List<String> goals)Sets the goals for the Maven invocation.InvocationRequestsetInputStream(InputStream inputStream)Sets the input stream used to provide input for the invoked Maven build.InvocationRequestsetJavaHome(File javaHome)Sets the path to the base directory of the Java installation used to run Maven.InvocationRequestsetLocalRepositoryDirectory(File localRepository)Sets the path to the base directory of the local repository to use for the Maven invocation.InvocationRequestsetMavenOpts(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(File pomFile)Sets the path to the POM for the Maven invocation.InvocationRequestsetPomFileName(String pomFilename)Sets the (unqualified) filename of the POM for the Maven invocation.InvocationRequestsetProfiles(List<String> profiles)Sets the profiles for the Maven invocation.InvocationRequestsetProjects(List<String> projects)Sets the reactor project list.InvocationRequestsetProperties(Properties properties)Sets the system properties for the Maven invocation.InvocationRequestsetQuiet(boolean quiet)Sets the quiet mode of the Maven invocation.InvocationRequestsetReactorFailureBehavior(InvocationRequest.ReactorFailureBehavior failureBehavior)Sets the failure mode of the Maven invocation.InvocationRequestsetRecursive(boolean recursive)Sets the recursion behavior of a reactor invocation.InvocationRequestsetResumeFrom(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(String threads)Thread count, for instance 2.0C where C is core multiplied Equivalent of-Tor--threadsvoidsetTimeoutInSeconds(int timeoutInSeconds)setTimeoutInSeconds.InvocationRequestsetToolchainsFile(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(File userSettings)Sets the path to the user settings for the Maven invocation.
-
-
-
Field Detail
-
NO_TIMEOUT
static final int NO_TIMEOUT
ConstantNO_TIMEOUT=0- See Also:
- Constant Field Values
-
-
Method Detail
-
isBatchMode
boolean isBatchMode()
By default, Maven is executed in batch mode. This mean no interaction with the Maven process can be done.- Returns:
trueif Maven should be executed in batch mode,falseif Maven is executed in interactive mode.- Since:
- 3.0.0
-
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.
-
getProjects
List<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
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.
-
getReactorFailureBehavior
InvocationRequest.ReactorFailureBehavior getReactorFailureBehavior()
Gets the failure mode of the Maven invocation. By default, the modeInvocationRequest.ReactorFailureBehavior.FailFastis used.- Returns:
- The failure mode, one of
InvocationRequest.ReactorFailureBehavior.FailFast,InvocationRequest.ReactorFailureBehavior.FailAtEndandInvocationRequest.ReactorFailureBehavior.FailNever. - Since:
- 3.0.0
-
getLocalRepositoryDirectory
File getLocalRepositoryDirectory(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
InputStream getInputStream(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.- Parameters:
defaultStream- the defaultInputStreamto use- 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.- Parameters:
defaultHandler- the defaultInvocationOutputHandlerto use- 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.- Parameters:
defaultHandler- the defaultInvocationOutputHandlerto use- Returns:
- The error handler or
nullif not set.
-
getPomFile
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
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
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
File getBaseDirectory(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
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
Properties getProperties()
Gets the system properties for the Maven invocation.- Returns:
- The system properties for the Maven invocation or
nullif not set.
-
getGoals
List<String> getGoals()
Gets the goals for the Maven invocation.- Returns:
- The goals for the Maven invocation or
nullif not set.
-
getUserSettingsFile
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
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
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
-
getGlobalToolchainsFile
File getGlobalToolchainsFile()
Alternate path for the global toolchains file Note. This is available since Maven 3.3.1- Returns:
- The path to the custom global toolchains file or
nullto load the global toolchains from the default location. - Since:
- 3.0.0
-
getGlobalChecksumPolicy
InvocationRequest.CheckSumPolicy getGlobalChecksumPolicy()
Gets the checksum mode of the Maven invocation.- Returns:
- The checksum mode, one of
InvocationRequest.CheckSumPolicy.WarnandInvocationRequest.CheckSumPolicy.Fail. - Since:
- 3.0.0
-
getProfiles
List<String> getProfiles()
Gets the profiles for the Maven invocation.- Returns:
- The profiles for the Maven invocation or
nullif not set.
-
getShellEnvironments
Map<String,String> getShellEnvironments()
Gets the environment variables for the Maven invocation.- Returns:
- The environment variables for the Maven invocation or
nullif not set.
-
getMavenOpts
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 behavior (-V option)- Returns:
- The show version behavior
- Since:
- 2.0.11
-
getThreads
String getThreads()
Get the value of thethreadsargument.- Returns:
- the value of the
threadsargument ornullif not set - Since:
- 2.1
-
isQuiet
boolean isQuiet()
Gets the quiet mode of the Maven invocation. By default, Maven is executed in normal mode.- Returns:
trueif Maven should be executed in quiet mode,falseif normal mode should be used.- Since:
- 3.1.0
-
setBatchMode
InvocationRequest setBatchMode(boolean batchMode)
Sets the interaction mode of the Maven invocation. Equivalent of-Band--batch-mode- Parameters:
batchMode-trueif Maven should be executed in non-interactive mode,falseif the interactive modes is used.- Returns:
- This invocation request.
- Since:
- 3.0.0
-
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.
-
setReactorFailureBehavior
InvocationRequest setReactorFailureBehavior(InvocationRequest.ReactorFailureBehavior 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 ofInvocationRequest.ReactorFailureBehavior.FailFast,InvocationRequest.ReactorFailureBehavior.FailAtEndandInvocationRequest.ReactorFailureBehavior.FailNever.- Returns:
- This invocation request.
- Since:
- 3.0.0
-
setLocalRepositoryDirectory
InvocationRequest setLocalRepositoryDirectory(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(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(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(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(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(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(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(List<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(List<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(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(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(File toolchains)
Sets the alternate path for the user toolchains file Equivalent of-tor--toolchains- Parameters:
toolchains- the alternate path for the user toolchains file- Returns:
- This invocation request
- Since:
- 2.1
-
setGlobalToolchainsFile
InvocationRequest setGlobalToolchainsFile(File toolchains)
Sets the alternate path for the global toolchains file Equivalent of-gtor--global-toolchains- Parameters:
toolchains- the alternate path for the global toolchains file- Returns:
- This invocation request
- Since:
- 3.0.0
-
setGlobalChecksumPolicy
InvocationRequest setGlobalChecksumPolicy(InvocationRequest.CheckSumPolicy 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 ofInvocationRequest.CheckSumPolicy.WarnandInvocationRequest.CheckSumPolicy.Fail.- Returns:
- This invocation request.
- Since:
- 3.0.0
-
setNonPluginUpdates
InvocationRequest setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.Equivalent of
-npuor--no-plugin-updatesnote: 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(String name, 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(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(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(List<String> projects)
Sets the reactor project list. Equivalent of-plor--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(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
-
setBuilder
InvocationRequest setBuilder(String id)
The id of the build strategy to use. equivalent of--builder id. Note. This is available since Maven 3.2.1- Parameters:
id- The builder id.- Returns:
InvocationRequestFIXME: How to identify if this is a valid command line option?- Since:
- 3.0.0
-
setQuiet
InvocationRequest setQuiet(boolean quiet)
Sets the quiet mode of the Maven invocation. Equivalent of-qand--quiet- Parameters:
quiet-trueif Maven should be executed in quiet mode,falseif the normal mode should be used.- Returns:
- This invocation request.
- Since:
- 3.1.0
-
getBuilder
String getBuilder()
Get the current set builder strategy id equivalent of--builder id. Note. This is available since Maven 3.2.1- Returns:
- The current set builder id.
- Since:
- 3.0.0
-
getTimeoutInSeconds
int getTimeoutInSeconds()
getTimeoutInSeconds.
- Returns:
- the timeout in seconds to execute the project
- Since:
- 3.0.1
-
setTimeoutInSeconds
void setTimeoutInSeconds(int timeoutInSeconds)
setTimeoutInSeconds.
- Parameters:
timeoutInSeconds- the timeout in seconds to execute the project- Since:
- 3.0.1
-
-