Modifier and Type | Class and Description |
---|---|
class |
DefaultInvocationRequest
Specifies the parameters used to control a Maven invocation.
|
Modifier and Type | Method and Description |
---|---|
InvocationRequest |
InvocationRequest.addShellEnvironment(String name,
String value)
Adds the specified environment variable to the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.addShellEnvironment(String name,
String value) |
InvocationRequest |
InvocationRequest.setAlsoMake(boolean alsoMake)
Enable the 'also make' mode.
|
InvocationRequest |
DefaultInvocationRequest.setAlsoMake(boolean alsoMake)
Enable the 'also make' mode.
|
InvocationRequest |
InvocationRequest.setAlsoMakeDependents(boolean alsoMakeDependents)
Enable the 'also make dependents' mode.
|
InvocationRequest |
DefaultInvocationRequest.setAlsoMakeDependents(boolean alsoMakeDependents)
Enable the 'also make dependents' mode.
|
InvocationRequest |
InvocationRequest.setBaseDirectory(File basedir)
Sets the path to the base directory of the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setBaseDirectory(File basedir) |
InvocationRequest |
InvocationRequest.setBatchMode(boolean batchMode)
Sets the interaction mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setBatchMode(boolean interactive) |
InvocationRequest |
InvocationRequest.setBuilder(String id)
The id of the build strategy to use.
|
InvocationRequest |
DefaultInvocationRequest.setBuilder(String id)
The id of the build strategy to use.
|
InvocationRequest |
InvocationRequest.setDebug(boolean debug)
Sets the debug mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setDebug(boolean debug) |
InvocationRequest |
InvocationRequest.setErrorHandler(InvocationOutputHandler errorHandler)
Sets the handler used to capture the error output from the Maven build.
|
InvocationRequest |
DefaultInvocationRequest.setErrorHandler(InvocationOutputHandler errorHandler) |
InvocationRequest |
InvocationRequest.setGlobalChecksumPolicy(InvocationRequest.CheckSumPolicy globalChecksumPolicy)
Sets the checksum mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGlobalChecksumPolicy(InvocationRequest.CheckSumPolicy globalChecksumPolicy)
Sets the checksum mode of the Maven invocation.
|
InvocationRequest |
InvocationRequest.setGlobalSettingsFile(File globalSettings)
Sets the path to the global settings for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGlobalSettingsFile(File globalSettings)
Sets the path to the global settings for the Maven invocation.
|
InvocationRequest |
InvocationRequest.setGlobalToolchainsFile(File toolchains)
Sets the alternate path for the global toolchains file Equivalent of
-gt or --global-toolchains |
InvocationRequest |
DefaultInvocationRequest.setGlobalToolchainsFile(File toolchains)
Sets the alternate path for the global toolchains file Equivalent of
-gt or --global-toolchains |
InvocationRequest |
InvocationRequest.setGoals(List<String> goals)
Sets the goals for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGoals(List<String> goals) |
InvocationRequest |
InvocationRequest.setInputStream(InputStream inputStream)
Sets the input stream used to provide input for the invoked Maven build.
|
InvocationRequest |
DefaultInvocationRequest.setInputStream(InputStream inputStream) |
InvocationRequest |
InvocationRequest.setJavaHome(File javaHome)
Sets the path to the base directory of the Java installation used to run Maven.
|
InvocationRequest |
DefaultInvocationRequest.setJavaHome(File javaHome)
Sets the path to the base directory of the Java installation used to run Maven.
|
InvocationRequest |
InvocationRequest.setLocalRepositoryDirectory(File localRepository)
Sets the path to the base directory of the local repository to use for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setLocalRepositoryDirectory(File localRepository) |
InvocationRequest |
InvocationRequest.setMavenOpts(String mavenOpts)
Sets the value of the
MAVEN_OPTS environment variable. |
InvocationRequest |
DefaultInvocationRequest.setMavenOpts(String mavenOpts) |
InvocationRequest |
InvocationRequest.setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.
|
InvocationRequest |
DefaultInvocationRequest.setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.
|
InvocationRequest |
InvocationRequest.setOffline(boolean offline)
Sets the network mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setOffline(boolean offline) |
InvocationRequest |
InvocationRequest.setOutputHandler(InvocationOutputHandler outputHandler)
Sets the handler used to capture the standard output from the Maven build.
|
InvocationRequest |
DefaultInvocationRequest.setOutputHandler(InvocationOutputHandler outputHandler) |
InvocationRequest |
InvocationRequest.setPomFile(File pomFile)
Sets the path to the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setPomFile(File pomFile) |
InvocationRequest |
InvocationRequest.setPomFileName(String pomFilename)
Sets the (unqualified) filename of the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setPomFileName(String pomFilename)
Sets the (unqualified) filename of the POM for the Maven invocation.
|
InvocationRequest |
InvocationRequest.setProfiles(List<String> profiles)
Sets the profiles for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setProfiles(List<String> profiles)
Sets the profiles for the Maven invocation.
|
InvocationRequest |
InvocationRequest.setProjects(List<String> projects)
Sets the reactor project list.
|
InvocationRequest |
DefaultInvocationRequest.setProjects(List<String> projects)
Sets the reactor project list.
|
InvocationRequest |
InvocationRequest.setProperties(Properties properties)
Sets the system properties for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setProperties(Properties properties) |
InvocationRequest |
InvocationRequest.setReactorFailureBehavior(InvocationRequest.ReactorFailureBehavior failureBehavior)
Sets the failure mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setReactorFailureBehavior(InvocationRequest.ReactorFailureBehavior failureBehavior) |
InvocationRequest |
InvocationRequest.setRecursive(boolean recursive)
Sets the recursion behavior of a reactor invocation.
|
InvocationRequest |
DefaultInvocationRequest.setRecursive(boolean recursive) |
InvocationRequest |
InvocationRequest.setResumeFrom(String resumeFrom)
Resume reactor from specified project.
|
InvocationRequest |
DefaultInvocationRequest.setResumeFrom(String resumeFrom)
Resume reactor from specified project.
|
InvocationRequest |
InvocationRequest.setShellEnvironmentInherited(boolean shellEnvironmentInherited)
Specifies whether the environment variables of the current process should be propagated to the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setShellEnvironmentInherited(boolean shellEnvironmentInherited) |
InvocationRequest |
InvocationRequest.setShowErrors(boolean showErrors)
Sets the exception output mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setShowErrors(boolean showErrors) |
InvocationRequest |
InvocationRequest.setShowVersion(boolean showVersion)
enable displaying version without stopping the build Equivalent of
-V or --show-version |
InvocationRequest |
DefaultInvocationRequest.setShowVersion(boolean showVersion) |
InvocationRequest |
InvocationRequest.setThreads(String threads)
Thread count, for instance 2.0C where C is core multiplied Equivalent of
-T or --threads |
InvocationRequest |
DefaultInvocationRequest.setThreads(String threads)
Thread count, for instance 2.0C where C is core multiplied Equivalent of
-T or --threads |
InvocationRequest |
InvocationRequest.setToolchainsFile(File toolchains)
Sets the alternate path for the user toolchains file Equivalent of
-t or --toolchains |
InvocationRequest |
DefaultInvocationRequest.setToolchainsFile(File toolchains)
Sets the alternate path for the user toolchains file Equivalent of
-t or --toolchains |
InvocationRequest |
InvocationRequest.setUpdateSnapshots(boolean updateSnapshots)
Specifies whether Maven should enforce an update check for plugins and snapshots.
|
InvocationRequest |
DefaultInvocationRequest.setUpdateSnapshots(boolean updateSnapshots) |
InvocationRequest |
InvocationRequest.setUserSettingsFile(File userSettings)
Sets the path to the user settings for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setUserSettingsFile(File userSettings)
Sets the path to the user settings for the Maven invocation.
|
Modifier and Type | Method and Description |
---|---|
org.apache.maven.shared.utils.cli.Commandline |
MavenCommandLineBuilder.build(InvocationRequest request) |
InvocationResult |
Invoker.execute(InvocationRequest request)
Executes Maven using the parameters specified by the given invocation request.
|
InvocationResult |
DefaultInvoker.execute(InvocationRequest request) |
protected void |
MavenCommandLineBuilder.setEnvironmentPaths(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setFlags(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setGoals(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setPomLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setProfiles(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setProperties(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setReactorBehavior(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setSettingsLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setShellEnvironment(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setThreads(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setToolchainsLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli) |
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.