Class DefaultInvocationRequest

java.lang.Object
org.apache.maven.shared.invoker.DefaultInvocationRequest
All Implemented Interfaces:
InvocationRequest

public class DefaultInvocationRequest extends Object implements InvocationRequest
Specifies the parameters used to control a Maven invocation.
  • Constructor Details

    • DefaultInvocationRequest

      public DefaultInvocationRequest()
  • Method Details

    • getBaseDirectory

      public File getBaseDirectory()

      getBaseDirectory.

      Specified by:
      getBaseDirectory in interface InvocationRequest
      Returns:
      a File object.
    • getBaseDirectory

      public File getBaseDirectory(File defaultDirectory)
      Gets the path to the base directory of the POM for the Maven invocation. If InvocationRequest.getPomFile() does not return null, this setting only affects the working directory for the Maven invocation.
      Specified by:
      getBaseDirectory in interface InvocationRequest
      Parameters:
      defaultDirectory - The default base directory to use if none is configured for this request, may be null.
      Returns:
      The path to the base directory of the POM or null if not set.
    • getErrorHandler

      public InvocationOutputHandler getErrorHandler(InvocationOutputHandler defaultHandler)
      Gets the handler used to capture the error output from the Maven build.
      Specified by:
      getErrorHandler in interface InvocationRequest
      Parameters:
      defaultHandler - the default InvocationOutputHandler to use
      Returns:
      The error handler or null if not set.
    • getReactorFailureBehavior

      public InvocationRequest.ReactorFailureBehavior getReactorFailureBehavior()

      getReactorFailureBehavior.

      Specified by:
      getReactorFailureBehavior in interface InvocationRequest
      Returns:
      a ReactorFailureBehavior object.
    • getGoals

      public List<String> getGoals()

      Getter for the field goals.

      Specified by:
      getGoals in interface InvocationRequest
      Returns:
      a List object.
    • getInputStream

      public 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.
      Specified by:
      getInputStream in interface InvocationRequest
      Parameters:
      defaultStream - the default InputStream to use
      Returns:
      The input stream used to provide input for the invoked Maven build or null if not set.
    • getLocalRepositoryDirectory

      public File getLocalRepositoryDirectory(File defaultDirectory)
      Gets the path to the base directory of the local repository to use for the Maven invocation.
      Specified by:
      getLocalRepositoryDirectory in interface InvocationRequest
      Parameters:
      defaultDirectory - The default location to use if no location is configured for this request, may be null.
      Returns:
      The path to the base directory of the local repository or null to use the location from the settings.xml.
    • getOutputHandler

      public InvocationOutputHandler getOutputHandler(InvocationOutputHandler defaultHandler)
      Gets the handler used to capture the standard output from the Maven build.
      Specified by:
      getOutputHandler in interface InvocationRequest
      Parameters:
      defaultHandler - the default InvocationOutputHandler to use
      Returns:
      The output handler or null if not set.
    • getPomFile

      public File getPomFile()

      Getter for the field pomFile.

      Specified by:
      getPomFile in interface InvocationRequest
      Returns:
      a File object.
    • getProperties

      public Properties getProperties()

      Getter for the field properties.

      Specified by:
      getProperties in interface InvocationRequest
      Returns:
      a Properties object.
    • isDebug

      public boolean isDebug()

      isDebug.

      Specified by:
      isDebug in interface InvocationRequest
      Returns:
      a boolean.
    • isBatchMode

      public boolean isBatchMode()

      isBatchMode.

      Specified by:
      isBatchMode in interface InvocationRequest
      Returns:
      a boolean.
    • isOffline

      public boolean isOffline()

      isOffline.

      Specified by:
      isOffline in interface InvocationRequest
      Returns:
      a boolean.
    • isShowErrors

      public boolean isShowErrors()

      isShowErrors.

      Specified by:
      isShowErrors in interface InvocationRequest
      Returns:
      a boolean.
    • isUpdateSnapshots

      public boolean isUpdateSnapshots()

      isUpdateSnapshots.

      Specified by:
      isUpdateSnapshots in interface InvocationRequest
      Returns:
      a boolean.
      See Also:
    • getUpdateSnapshotsPolicy

      public UpdateSnapshotsPolicy getUpdateSnapshotsPolicy()
      Description copied from interface: InvocationRequest
      Indicates the update snapshots policy.
      Specified by:
      getUpdateSnapshotsPolicy in interface InvocationRequest
      Returns:
      the update snapshots policy.
      See Also:
    • isRecursive

      public boolean isRecursive()

      isRecursive.

      Specified by:
      isRecursive in interface InvocationRequest
      Returns:
      a boolean.
    • setRecursive

      public InvocationRequest setRecursive(boolean recursive)
      Sets the recursion behavior of a reactor invocation. Inverse equivalent of -N and --non-recursive
      Specified by:
      setRecursive in interface InvocationRequest
      Parameters:
      recursive - true if sub modules should be build, false otherwise.
      Returns:
      This invocation request.
    • setBaseDirectory

      public InvocationRequest setBaseDirectory(File basedir)
      Sets the path to the base directory of the POM for the Maven invocation. If InvocationRequest.getPomFile() does not return null, this setting only affects the working directory for the Maven invocation.
      Specified by:
      setBaseDirectory in interface InvocationRequest
      Parameters:
      basedir - The path to the base directory of the POM, may be null if not used.
      Returns:
      This invocation request.
    • setDebug

      public InvocationRequest setDebug(boolean debug)
      Sets the debug mode of the Maven invocation. Equivalent of -X and --debug
      Specified by:
      setDebug in interface InvocationRequest
      Parameters:
      debug - true if Maven should be executed in debug mode, false if the normal mode should be used.
      Returns:
      This invocation request.
    • setErrorHandler

      public InvocationRequest setErrorHandler(InvocationOutputHandler errorHandler)
      Sets the handler used to capture the error output from the Maven build.
      Specified by:
      setErrorHandler in interface InvocationRequest
      Parameters:
      errorHandler - The error handler, may be null if the output is not of interest.
      Returns:
      This invocation request.
    • setReactorFailureBehavior

      public InvocationRequest setReactorFailureBehavior(InvocationRequest.ReactorFailureBehavior failureBehavior)

      setReactorFailureBehavior.

      Specified by:
      setReactorFailureBehavior in interface InvocationRequest
      Parameters:
      failureBehavior - a ReactorFailureBehavior object.
      Returns:
      a InvocationRequest object.
    • setGoals

      public InvocationRequest setGoals(List<String> goals)
      Sets the goals for the Maven invocation.
      Specified by:
      setGoals in interface InvocationRequest
      Parameters:
      goals - The goals for the Maven invocation, may be null to execute the POMs default goal.
      Returns:
      This invocation request.
    • setInputStream

      public 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.
      Specified by:
      setInputStream in interface InvocationRequest
      Parameters:
      inputStream - The input stream used to provide input for the invoked Maven build, may be null if not required.
      Returns:
      This invocation request.
    • setBatchMode

      public InvocationRequest setBatchMode(boolean interactive)
      Sets the interaction mode of the Maven invocation. Equivalent of -B and --batch-mode
      Specified by:
      setBatchMode in interface InvocationRequest
      Parameters:
      interactive - true if Maven should be executed in non-interactive mode, false if the interactive modes is used.
      Returns:
      This invocation request.
    • setLocalRepositoryDirectory

      public InvocationRequest setLocalRepositoryDirectory(File localRepository)
      Sets the path to the base directory of the local repository to use for the Maven invocation.
      Specified by:
      setLocalRepositoryDirectory in interface InvocationRequest
      Parameters:
      localRepository - The path to the base directory of the local repository, may be null.
      Returns:
      This invocation request.
    • setOffline

      public InvocationRequest setOffline(boolean offline)
      Sets the network mode of the Maven invocation. Equivalent of -o and --offline
      Specified by:
      setOffline in interface InvocationRequest
      Parameters:
      offline - true if Maven should be executed in offline mode, false if the online mode is used.
      Returns:
      This invocation request.
    • setOutputHandler

      public InvocationRequest setOutputHandler(InvocationOutputHandler outputHandler)
      Sets the handler used to capture the standard output from the Maven build.
      Specified by:
      setOutputHandler in interface InvocationRequest
      Parameters:
      outputHandler - The output handler, may be null if the output is not of interest.
      Returns:
      This invocation request.
    • setPomFile

      public 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.
      Specified by:
      setPomFile in interface InvocationRequest
      Parameters:
      pomFile - The path to the POM for the Maven invocation, may be null if not used.
      Returns:
      This invocation request.
    • setProperties

      public InvocationRequest setProperties(Properties properties)
      Sets the system properties for the Maven invocation.
      Specified by:
      setProperties in interface InvocationRequest
      Parameters:
      properties - The system properties for the Maven invocation, may be null if not set.
      Returns:
      This invocation request.
    • setShowErrors

      public InvocationRequest setShowErrors(boolean showErrors)
      Sets the exception output mode of the Maven invocation. Equivalent of -e and --errors
      Specified by:
      setShowErrors in interface InvocationRequest
      Parameters:
      showErrors - true if Maven should print stack traces, false otherwise.
      Returns:
      This invocation request.
    • setUpdateSnapshots

      public InvocationRequest setUpdateSnapshots(boolean updateSnapshots)
      Specifies whether Maven should enforce an update check for plugins and snapshots. Equivalent of -U and --update-snapshots
      Specified by:
      setUpdateSnapshots in interface InvocationRequest
      Parameters:
      updateSnapshots - true if plugins and snapshots must be updated, false otherwise.
      Returns:
      This invocation request.
      See Also:
    • setUpdateSnapshotsPolicy

      public InvocationRequest setUpdateSnapshotsPolicy(UpdateSnapshotsPolicy policy)
      Description copied from interface: InvocationRequest
      Specify the Maven update snapshots policy
      Specified by:
      setUpdateSnapshotsPolicy in interface InvocationRequest
      Parameters:
      policy - the policy to be set
      Returns:
      This invocation request.
      See Also:
    • isShellEnvironmentInherited

      public boolean isShellEnvironmentInherited()

      isShellEnvironmentInherited.

      Specified by:
      isShellEnvironmentInherited in interface InvocationRequest
      Returns:
      a boolean.
      See Also:
    • setShellEnvironmentInherited

      public InvocationRequest setShellEnvironmentInherited(boolean shellEnvironmentInherited)
      Specifies whether the environment variables of the current process should be propagated to the Maven invocation.
      Specified by:
      setShellEnvironmentInherited in interface InvocationRequest
      Parameters:
      shellEnvironmentInherited - true if the environment variables should be propagated, false otherwise.
      Returns:
      This invocation request.
    • getJavaHome

      public File getJavaHome()

      Getter for the field javaHome.

      Specified by:
      getJavaHome in interface InvocationRequest
      Returns:
      a File object.
    • setJavaHome

      public InvocationRequest setJavaHome(File javaHome)
      Sets the path to the base directory of the Java installation used to run Maven.
      Specified by:
      setJavaHome in interface InvocationRequest
      Parameters:
      javaHome - The path to the base directory of the Java installation used to run Maven, may be null to use the default Java home.
      Returns:
      This invocation request.
    • getUserSettingsFile

      public File getUserSettingsFile()
      Gets the path to the user settings for the Maven invocation.
      Specified by:
      getUserSettingsFile in interface InvocationRequest
      Returns:
      a File object.
    • setUserSettingsFile

      public InvocationRequest setUserSettingsFile(File userSettings)
      Sets the path to the user settings for the Maven invocation. Equivalent of -s and --settings
      Specified by:
      setUserSettingsFile in interface InvocationRequest
      Parameters:
      userSettings - The path to the user settings for the Maven invocation, may be null to load the user settings from the default location.
      Returns:
      This invocation request.
    • getGlobalSettingsFile

      public File getGlobalSettingsFile()
      Gets the path to the global settings for the Maven invocation.
      Specified by:
      getGlobalSettingsFile in interface InvocationRequest
      Returns:
      a File object.
    • setGlobalSettingsFile

      public InvocationRequest setGlobalSettingsFile(File globalSettings)
      Sets the path to the global settings for the Maven invocation. Equivalent of -gs and --global-settings
      Specified by:
      setGlobalSettingsFile in interface InvocationRequest
      Parameters:
      globalSettings - The path to the global settings for the Maven invocation, may be null to load the global settings from the default location.
      Returns:
      This invocation request.
    • getToolchainsFile

      public File getToolchainsFile()
      Gets the path to the custom toolchains file
      Specified by:
      getToolchainsFile in interface InvocationRequest
      Returns:
      a File object.
    • setToolchainsFile

      public InvocationRequest setToolchainsFile(File toolchains)
      Sets the alternate path for the user toolchains file Equivalent of -t or --toolchains
      Specified by:
      setToolchainsFile in interface InvocationRequest
      Parameters:
      toolchains - the alternate path for the user toolchains file
      Returns:
      This invocation request
    • getGlobalToolchainsFile

      public File getGlobalToolchainsFile()
      Alternate path for the global toolchains file Note. This is available since Maven 3.3.1
      Specified by:
      getGlobalToolchainsFile in interface InvocationRequest
      Returns:
      a File object.
    • setGlobalToolchainsFile

      public InvocationRequest setGlobalToolchainsFile(File toolchains)
      Sets the alternate path for the global toolchains file Equivalent of -gt or --global-toolchains
      Specified by:
      setGlobalToolchainsFile in interface InvocationRequest
      Parameters:
      toolchains - the alternate path for the global toolchains file
      Returns:
      This invocation request
    • getGlobalChecksumPolicy

      public InvocationRequest.CheckSumPolicy getGlobalChecksumPolicy()
      Gets the checksum mode of the Maven invocation.
      Specified by:
      getGlobalChecksumPolicy in interface InvocationRequest
      Returns:
      a CheckSumPolicy object.
    • setGlobalChecksumPolicy

      public InvocationRequest setGlobalChecksumPolicy(InvocationRequest.CheckSumPolicy globalChecksumPolicy)
      Sets the checksum mode of the Maven invocation. Equivalent of -c or --lax-checksums, -C or --strict-checksums
      Specified by:
      setGlobalChecksumPolicy in interface InvocationRequest
      Parameters:
      globalChecksumPolicy - a CheckSumPolicy object.
      Returns:
      a InvocationRequest object.
    • getPomFileName

      public String getPomFileName()
      Gets the (unqualified) filename of the POM for the Maven invocation. This setting is ignored if InvocationRequest.getPomFile() does not return null. Otherwise, the base directory is assumed to contain a POM with this name. By default, a file named pom.xml is used.
      Specified by:
      getPomFileName in interface InvocationRequest
      Returns:
      a String object.
    • addArg

      public InvocationRequest addArg(String arg)
      Description copied from interface: InvocationRequest
      Add a raw argument to Maven cli command at the end of other arguments. Can be called multiple time in order to add many arguments.
      Specified by:
      addArg in interface InvocationRequest
      Parameters:
      arg - a raw Maven arg line
      Returns:
      This invocation request.
    • addArgs

      public InvocationRequest addArgs(Collection<String> args)
      Description copied from interface: InvocationRequest
      Add a raw arguments list to Maven cli command at the end of other arguments. Can be called multiple time in order to add many arguments.
      Specified by:
      addArgs in interface InvocationRequest
      Parameters:
      args - a raw Maven args line
      Returns:
      This invocation request.
    • getArgs

      public List<String> getArgs()
      Description copied from interface: InvocationRequest
      List of raw line arguments which will be passed to cli.
      Specified by:
      getArgs in interface InvocationRequest
      Returns:
      a list of cli arguments
    • setPomFileName

      public InvocationRequest setPomFileName(String pomFilename)
      Sets the (unqualified) filename of the POM for the Maven invocation. This setting is ignored if InvocationRequest.getPomFile() does not return null. Otherwise, the base directory is assumed to contain a POM with this name.
      Specified by:
      setPomFileName in interface InvocationRequest
      Parameters:
      pomFilename - The (unqualified) filename of the POM for the Maven invocation, may be null if not used.
      Returns:
      This invocation request.
    • getProfiles

      public List<String> getProfiles()
      Gets the profiles for the Maven invocation.
      Specified by:
      getProfiles in interface InvocationRequest
      Returns:
      a List object.
    • setProfiles

      public InvocationRequest setProfiles(List<String> profiles)
      Sets the profiles for the Maven invocation. Equivalent of -P and --active-profiles
      Specified by:
      setProfiles in interface InvocationRequest
      Parameters:
      profiles - The profiles for the Maven invocation, may be null to use the default profiles.
      Returns:
      This invocation request.
    • isNonPluginUpdates

      public boolean isNonPluginUpdates()
      Indicates whether Maven should check for plugin updates. By default, plugin updates are not suppressed.
      Specified by:
      isNonPluginUpdates in interface InvocationRequest
      Returns:
      a boolean.
    • setNonPluginUpdates

      public InvocationRequest setNonPluginUpdates(boolean nonPluginUpdates)
      Specifies whether Maven should check for plugin updates.

      Equivalent of -npu or --no-plugin-updates

      note: Ineffective with Maven3, only kept for backward compatibility

      Specified by:
      setNonPluginUpdates in interface InvocationRequest
      Parameters:
      nonPluginUpdates - true if plugin updates should be suppressed, false otherwise.
      Returns:
      This invocation request.
    • addShellEnvironment

      public InvocationRequest addShellEnvironment(String name, String value)
      Adds the specified environment variable to the Maven invocation.
      Specified by:
      addShellEnvironment in interface InvocationRequest
      Parameters:
      name - The name of the environment variable, must not be null.
      value - The value of the environment variable, must not be null.
      Returns:
      This invocation request.
    • getShellEnvironments

      public Map<String,String> getShellEnvironments()

      Getter for the field shellEnvironments.

      Specified by:
      getShellEnvironments in interface InvocationRequest
      Returns:
      a Map object.
    • getMavenOpts

      public String getMavenOpts()

      Getter for the field mavenOpts.

      Specified by:
      getMavenOpts in interface InvocationRequest
      Returns:
      a String object.
    • setMavenOpts

      public InvocationRequest setMavenOpts(String mavenOpts)
      Sets the value of the MAVEN_OPTS environment variable.
      Specified by:
      setMavenOpts in interface InvocationRequest
      Parameters:
      mavenOpts - The value of the MAVEN_OPTS environment variable, may be null to use the default options.
      Returns:
      This invocation request.
    • isShowVersion

      public boolean isShowVersion()

      isShowVersion.

      Specified by:
      isShowVersion in interface InvocationRequest
      Returns:
      a boolean.
      See Also:
    • setShowVersion

      public InvocationRequest setShowVersion(boolean showVersion)
      enable displaying version without stopping the build Equivalent of -V or --show-version
      Specified by:
      setShowVersion in interface InvocationRequest
      Parameters:
      showVersion - enable displaying version
      Returns:
      This invocation request.
    • getThreads

      public String getThreads()
      Get the value of the threads argument.
      Specified by:
      getThreads in interface InvocationRequest
      Returns:
      a String object.
    • setThreads

      public InvocationRequest setThreads(String threads)
      Thread count, for instance 2.0C where C is core multiplied Equivalent of -T or --threads

      note: available since Maven3

      Specified by:
      setThreads in interface InvocationRequest
      Parameters:
      threads - the threadcount
      Returns:
      This invocation request.
    • getProjects

      public 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.
      Specified by:
      getProjects in interface InvocationRequest
      Returns:
      a List object.
    • setProjects

      public InvocationRequest setProjects(List<String> projects)
      Sets the reactor project list. Equivalent of -pl or --projects
      Specified by:
      setProjects in interface InvocationRequest
      Parameters:
      projects - the reactor project list
      Returns:
      This invocation request.
    • isAlsoMake

      public boolean isAlsoMake()
      Get the value of the also-make argument.
      Specified by:
      isAlsoMake in interface InvocationRequest
      Returns:
      a boolean.
    • setAlsoMake

      public InvocationRequest setAlsoMake(boolean alsoMake)
      Enable the 'also make' mode. Equivalent of -am or --also-make
      Specified by:
      setAlsoMake in interface InvocationRequest
      Parameters:
      alsoMake - enable 'also make' mode
      Returns:
      This invocation request.
    • isAlsoMakeDependents

      public boolean isAlsoMakeDependents()
      Get the value of the also-make-dependents
      Specified by:
      isAlsoMakeDependents in interface InvocationRequest
      Returns:
      a boolean.
    • setAlsoMakeDependents

      public InvocationRequest setAlsoMakeDependents(boolean alsoMakeDependents)
      Enable the 'also make dependents' mode. Equivalent of -amd or --also-make-dependents
      Specified by:
      setAlsoMakeDependents in interface InvocationRequest
      Parameters:
      alsoMakeDependents - enable 'also make' mode
      Returns:
      This invocation request.
    • getResumeFrom

      public String getResumeFrom()
      Get the value of resume-from
      Specified by:
      getResumeFrom in interface InvocationRequest
      Returns:
      a String object.
    • setResumeFrom

      public InvocationRequest setResumeFrom(String resumeFrom)
      Resume reactor from specified project. Equivalent of -rf or --resume-from
      Specified by:
      setResumeFrom in interface InvocationRequest
      Parameters:
      resumeFrom - set the project to resume from
      Returns:
      This invocation request
    • setBuilder

      public InvocationRequest setBuilder(String id)
      The id of the build strategy to use. equivalent of -b id or --builder id. Note. This is available since Maven 3.2.1
      Specified by:
      setBuilder in interface InvocationRequest
      Parameters:
      id - The builder id.
      Returns:
      InvocationRequest
    • getBuilder

      public String getBuilder()
      Get the current set builder strategy id equivalent of --builder id. Note. This is available since Maven 3.2.1
      Specified by:
      getBuilder in interface InvocationRequest
      Returns:
      a String object.
    • getTimeoutInSeconds

      public int getTimeoutInSeconds()

      getTimeoutInSeconds.

      Specified by:
      getTimeoutInSeconds in interface InvocationRequest
      Returns:
      the timeout in seconds to execute the project
    • setTimeoutInSeconds

      public void setTimeoutInSeconds(int timeoutInSeconds)

      setTimeoutInSeconds.

      Specified by:
      setTimeoutInSeconds in interface InvocationRequest
      Parameters:
      timeoutInSeconds - the timeout in seconds to execute the project
    • isQuiet

      public boolean isQuiet()
      Gets the quiet mode of the Maven invocation. By default, Maven is executed in normal mode.
      Specified by:
      isQuiet in interface InvocationRequest
      Returns:
      a boolean.
      Since:
      3.1.0
    • setQuiet

      public InvocationRequest setQuiet(boolean quiet)
      Sets the quiet mode of the Maven invocation. Equivalent of -q and --quiet
      Specified by:
      setQuiet in interface InvocationRequest
      Parameters:
      quiet - true if Maven should be executed in quiet mode, false if the normal mode should be used.
      Returns:
      This invocation request.
    • isNoTransferProgress

      public boolean isNoTransferProgress()
      Description copied from interface: InvocationRequest
      Get the value of the no-transfer-progress argument.
      Specified by:
      isNoTransferProgress in interface InvocationRequest
      Returns:
      true if the argument no-transfer-progress was specified, otherwise false
    • setNoTransferProgress

      public InvocationRequest setNoTransferProgress(boolean noTransferProgress)
      Description copied from interface: InvocationRequest
      Enable no transfer progress mode. Equivalent of -ntp or --no-transfer-progress
      Specified by:
      setNoTransferProgress in interface InvocationRequest
      Parameters:
      noTransferProgress - enable no transfer progress mode
      Returns:
      This invocation request.
    • getMavenHome

      public File getMavenHome()
      Gets the path to the base directory of the Maven installation used to invoke Maven.
      Specified by:
      getMavenHome in interface InvocationRequest
      Returns:
      The path to the base directory of the Maven installation or null if using the default Maven installation.
    • setMavenHome

      public InvocationRequest setMavenHome(File mavenHome)
      Sets the path to the base directory of the Maven installation used to invoke Maven. This parameter may be left unspecified to use the default Maven installation which will be discovered by evaluating the system property maven.home.
      Specified by:
      setMavenHome in interface InvocationRequest
      Parameters:
      mavenHome - The path to the base directory of the Maven installation, may be null to use the default Maven installation.
      Returns:
      This invocation request
    • getMavenExecutable

      public File getMavenExecutable()
      Get the customized File of the Maven executable.
      Specified by:
      getMavenExecutable in interface InvocationRequest
      Returns:
      the custom Maven executable, otherwise null
    • setMavenExecutable

      public InvocationRequest setMavenExecutable(File mavenExecutable)
      mavenExecutable can either be a file relative to ${maven.home}/bin/ or an absolute file.
      Specified by:
      setMavenExecutable in interface InvocationRequest
      Parameters:
      mavenExecutable - the executable
      Returns:
      This invocation request