Uses of Interface
org.apache.maven.shared.invoker.InvocationRequest
-
Uses of InvocationRequest in org.apache.maven.shared.invoker
Modifier and TypeClassDescriptionclass
Specifies the parameters used to control a Maven invocation.Modifier and TypeMethodDescriptionAdd a raw argument to Maven cli command at the end of other arguments.DefaultInvocationRequest.addArgs
(Collection<String> args) InvocationRequest.addArgs
(Collection<String> args) Add a raw arguments list to Maven cli command at the end of other arguments.DefaultInvocationRequest.addShellEnvironment
(String name, String value) Adds the specified environment variable to the Maven invocation.InvocationRequest.addShellEnvironment
(String name, String value) Adds the specified environment variable to the Maven invocation.DefaultInvocationRequest.setAlsoMake
(boolean alsoMake) Enable the 'also make' mode.InvocationRequest.setAlsoMake
(boolean alsoMake) Enable the 'also make' mode.DefaultInvocationRequest.setAlsoMakeDependents
(boolean alsoMakeDependents) Enable the 'also make dependents' mode.InvocationRequest.setAlsoMakeDependents
(boolean alsoMakeDependents) Enable the 'also make dependents' mode.DefaultInvocationRequest.setBaseDirectory
(File basedir) Sets the path to the base directory of the POM for the Maven invocation.InvocationRequest.setBaseDirectory
(File basedir) Sets the path to the base directory of the POM for the Maven invocation.DefaultInvocationRequest.setBatchMode
(boolean interactive) Sets the interaction mode of the Maven invocation.InvocationRequest.setBatchMode
(boolean batchMode) Sets the interaction mode of the Maven invocation.DefaultInvocationRequest.setBuilder
(String id) The id of the build strategy to use.InvocationRequest.setBuilder
(String id) The id of the build strategy to use.DefaultInvocationRequest.setDebug
(boolean debug) Sets the debug mode of the Maven invocation.InvocationRequest.setDebug
(boolean debug) Sets the debug mode of the Maven invocation.DefaultInvocationRequest.setErrorHandler
(InvocationOutputHandler errorHandler) Sets the handler used to capture the error output from the Maven build.InvocationRequest.setErrorHandler
(InvocationOutputHandler errorHandler) Sets the handler used to capture the error output from the Maven build.DefaultInvocationRequest.setGlobalChecksumPolicy
(InvocationRequest.CheckSumPolicy globalChecksumPolicy) Sets the checksum mode of the Maven invocation.InvocationRequest.setGlobalChecksumPolicy
(InvocationRequest.CheckSumPolicy globalChecksumPolicy) Sets the checksum mode of the Maven invocation.DefaultInvocationRequest.setGlobalSettingsFile
(File globalSettings) Sets the path to the global settings for the Maven invocation.InvocationRequest.setGlobalSettingsFile
(File globalSettings) Sets the path to the global settings for the Maven invocation.DefaultInvocationRequest.setGlobalToolchainsFile
(File toolchains) Sets the alternate path for the global toolchains file Equivalent of-gt
or--global-toolchains
InvocationRequest.setGlobalToolchainsFile
(File toolchains) Sets the alternate path for the global toolchains file Equivalent of-gt
or--global-toolchains
Sets the goals for the Maven invocation.Deprecated.DefaultInvocationRequest.setInputStream
(InputStream inputStream) Sets the input stream used to provide input for the invoked Maven build.InvocationRequest.setInputStream
(InputStream inputStream) Sets the input stream used to provide input for the invoked Maven build.DefaultInvocationRequest.setJavaHome
(File javaHome) Sets the path to the base directory of the Java installation used to run Maven.InvocationRequest.setJavaHome
(File javaHome) Sets the path to the base directory of the Java installation used to run Maven.DefaultInvocationRequest.setLocalRepositoryDirectory
(File localRepository) Sets the path to the base directory of the local repository to use for the Maven invocation.InvocationRequest.setLocalRepositoryDirectory
(File localRepository) Sets the path to the base directory of the local repository to use for the Maven invocation.DefaultInvocationRequest.setMavenExecutable
(File mavenExecutable) mavenExecutable
can either be a file relative to ${maven.home}/bin/ or an absolute file.InvocationRequest.setMavenExecutable
(File mavenExecutable) mavenExecutable
can either be a file relative to ${maven.home}/bin/ or an absolute file.DefaultInvocationRequest.setMavenHome
(File mavenHome) Sets the path to the base directory of the Maven installation used to invoke Maven.InvocationRequest.setMavenHome
(File mavenHome) Sets the path to the base directory of the Maven installation used to invoke Maven.DefaultInvocationRequest.setMavenOpts
(String mavenOpts) Sets the value of theMAVEN_OPTS
environment variable.InvocationRequest.setMavenOpts
(String mavenOpts) Sets the value of theMAVEN_OPTS
environment variable.DefaultInvocationRequest.setNonPluginUpdates
(boolean nonPluginUpdates) Specifies whether Maven should check for plugin updates.InvocationRequest.setNonPluginUpdates
(boolean nonPluginUpdates) Specifies whether Maven should check for plugin updates.DefaultInvocationRequest.setNoTransferProgress
(boolean noTransferProgress) InvocationRequest.setNoTransferProgress
(boolean noTransferProgress) Enable no transfer progress mode.DefaultInvocationRequest.setOffline
(boolean offline) Sets the network mode of the Maven invocation.InvocationRequest.setOffline
(boolean offline) Sets the network mode of the Maven invocation.DefaultInvocationRequest.setOutputHandler
(InvocationOutputHandler outputHandler) Sets the handler used to capture the standard output from the Maven build.InvocationRequest.setOutputHandler
(InvocationOutputHandler outputHandler) Sets the handler used to capture the standard output from the Maven build.DefaultInvocationRequest.setPomFile
(File pomFile) Sets the path to the POM for the Maven invocation.InvocationRequest.setPomFile
(File pomFile) Sets the path to the POM for the Maven invocation.DefaultInvocationRequest.setPomFileName
(String pomFilename) Sets the (unqualified) filename of the POM for the Maven invocation.InvocationRequest.setPomFileName
(String pomFilename) Sets the (unqualified) filename of the POM for the Maven invocation.DefaultInvocationRequest.setProfiles
(List<String> profiles) Sets the profiles for the Maven invocation.InvocationRequest.setProfiles
(List<String> profiles) Sets the profiles for the Maven invocation.DefaultInvocationRequest.setProjects
(List<String> projects) Sets the reactor project list.InvocationRequest.setProjects
(List<String> projects) Sets the reactor project list.DefaultInvocationRequest.setProperties
(Properties properties) Sets the system properties for the Maven invocation.InvocationRequest.setProperties
(Properties properties) Sets the system properties for the Maven invocation.DefaultInvocationRequest.setQuiet
(boolean quiet) Sets the quiet mode of the Maven invocation.InvocationRequest.setQuiet
(boolean quiet) Sets the quiet mode of the Maven invocation.DefaultInvocationRequest.setReactorFailureBehavior
(InvocationRequest.ReactorFailureBehavior failureBehavior) setReactorFailureBehavior.InvocationRequest.setReactorFailureBehavior
(InvocationRequest.ReactorFailureBehavior failureBehavior) Sets the failure mode of the Maven invocation.DefaultInvocationRequest.setRecursive
(boolean recursive) Sets the recursion behavior of a reactor invocation.InvocationRequest.setRecursive
(boolean recursive) Sets the recursion behavior of a reactor invocation.DefaultInvocationRequest.setResumeFrom
(String resumeFrom) Resume reactor from specified project.InvocationRequest.setResumeFrom
(String resumeFrom) Resume reactor from specified project.DefaultInvocationRequest.setShellEnvironmentInherited
(boolean shellEnvironmentInherited) Specifies whether the environment variables of the current process should be propagated to the Maven invocation.InvocationRequest.setShellEnvironmentInherited
(boolean shellEnvironmentInherited) Specifies whether the environment variables of the current process should be propagated to the Maven invocation.DefaultInvocationRequest.setShowErrors
(boolean showErrors) Sets the exception output mode of the Maven invocation.InvocationRequest.setShowErrors
(boolean showErrors) Sets the exception output mode of the Maven invocation.DefaultInvocationRequest.setShowVersion
(boolean showVersion) enable displaying version without stopping the build Equivalent of-V
or--show-version
InvocationRequest.setShowVersion
(boolean showVersion) enable displaying version without stopping the build Equivalent of-V
or--show-version
DefaultInvocationRequest.setThreads
(String threads) Thread count, for instance 2.0C where C is core multiplied Equivalent of-T
or--threads
InvocationRequest.setThreads
(String threads) Thread count, for instance 2.0C where C is core multiplied Equivalent of-T
or--threads
DefaultInvocationRequest.setToolchainsFile
(File toolchains) Sets the alternate path for the user toolchains file Equivalent of-t
or--toolchains
InvocationRequest.setToolchainsFile
(File toolchains) Sets the alternate path for the user toolchains file Equivalent of-t
or--toolchains
DefaultInvocationRequest.setUpdateSnapshots
(boolean updateSnapshots) Specifies whether Maven should enforce an update check for plugins and snapshots.InvocationRequest.setUpdateSnapshots
(boolean updateSnapshots) Specifies whether Maven should enforce an update check for plugins and snapshots.DefaultInvocationRequest.setUpdateSnapshotsPolicy
(UpdateSnapshotsPolicy policy) InvocationRequest.setUpdateSnapshotsPolicy
(UpdateSnapshotsPolicy policy) Specify the Maven update snapshots policyDefaultInvocationRequest.setUserSettingsFile
(File userSettings) Sets the path to the user settings for the Maven invocation.InvocationRequest.setUserSettingsFile
(File userSettings) Sets the path to the user settings for the Maven invocation.Modifier and TypeMethodDescriptionorg.apache.maven.shared.utils.cli.Commandline
MavenCommandLineBuilder.build
(InvocationRequest request) build.DefaultInvoker.execute
(InvocationRequest request) Executes Maven using the parameters specified by the given invocation request.Invoker.execute
(InvocationRequest request) Executes Maven using the parameters specified by the given invocation request.protected void
MavenCommandLineBuilder.setArgs
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) protected void
MavenCommandLineBuilder.setFlags
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setFlags.protected void
MavenCommandLineBuilder.setGoals
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setGoals.protected void
MavenCommandLineBuilder.setLocalRepository
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setLocalRepository.protected void
MavenCommandLineBuilder.setPomLocation
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setPomLocation.protected void
MavenCommandLineBuilder.setProfiles
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setProfiles.protected void
MavenCommandLineBuilder.setProperties
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setProperties.protected void
MavenCommandLineBuilder.setReactorBehavior
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setReactorBehavior.protected void
MavenCommandLineBuilder.setSettingsLocation
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setSettingsLocation.protected void
MavenCommandLineBuilder.setShellEnvironment
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setShellEnvironment.protected void
MavenCommandLineBuilder.setThreads
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setThreads.protected void
MavenCommandLineBuilder.setToolchainsLocation
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) setToolchainsLocation.protected void
MavenCommandLineBuilder.setupMavenExecutable
(InvocationRequest request) setupMavenExecutable.
addArg(String)
oraddArgs(Collection)
should be used