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.activateReactor(java.lang.String[] includes,
java.lang.String[] excludes)
Dynamically constructs a reactor using the subdirectories of the current directory
|
InvocationRequest |
DefaultInvocationRequest.activateReactor(java.lang.String[] includes,
java.lang.String[] excludes) |
InvocationRequest |
InvocationRequest.addShellEnvironment(java.lang.String name,
java.lang.String value)
Adds the specified environment variable to the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.addShellEnvironment(java.lang.String name,
java.lang.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(java.io.File basedir)
Sets the path to the base directory of the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setBaseDirectory(java.io.File basedir) |
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.setFailureBehavior(java.lang.String failureBehavior)
Sets the failure mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setFailureBehavior(java.lang.String failureBehavior) |
InvocationRequest |
InvocationRequest.setGlobalChecksumPolicy(java.lang.String globalChecksumPolicy)
Sets the checksum mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGlobalChecksumPolicy(java.lang.String globalChecksumPolicy) |
InvocationRequest |
InvocationRequest.setGlobalSettingsFile(java.io.File globalSettings)
Sets the path to the global settings for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGlobalSettingsFile(java.io.File globalSettings) |
InvocationRequest |
InvocationRequest.setGoals(java.util.List<java.lang.String> goals)
Sets the goals for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setGoals(java.util.List<java.lang.String> goals) |
InvocationRequest |
InvocationRequest.setInputStream(java.io.InputStream inputStream)
Sets the input stream used to provide input for the invoked Maven build.
|
InvocationRequest |
DefaultInvocationRequest.setInputStream(java.io.InputStream inputStream) |
InvocationRequest |
InvocationRequest.setInteractive(boolean interactive)
Sets the interaction mode of the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setInteractive(boolean interactive) |
InvocationRequest |
InvocationRequest.setJavaHome(java.io.File javaHome)
Sets the path to the base directory of the Java installation used to run Maven.
|
InvocationRequest |
DefaultInvocationRequest.setJavaHome(java.io.File javaHome) |
InvocationRequest |
InvocationRequest.setLocalRepositoryDirectory(java.io.File localRepository)
Sets the path to the base directory of the local repository to use for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setLocalRepositoryDirectory(java.io.File localRepository) |
InvocationRequest |
InvocationRequest.setMavenOpts(java.lang.String mavenOpts)
Sets the value of the
MAVEN_OPTS environment variable. |
InvocationRequest |
DefaultInvocationRequest.setMavenOpts(java.lang.String mavenOpts) |
InvocationRequest |
InvocationRequest.setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.
|
InvocationRequest |
DefaultInvocationRequest.setNonPluginUpdates(boolean nonPluginUpdates) |
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(java.io.File pomFile)
Sets the path to the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setPomFile(java.io.File pomFile) |
InvocationRequest |
InvocationRequest.setPomFileName(java.lang.String pomFilename)
Sets the (unqualified) filename of the POM for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setPomFileName(java.lang.String pomFilename) |
InvocationRequest |
InvocationRequest.setProfiles(java.util.List<java.lang.String> profiles)
Sets the profiles for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setProfiles(java.util.List<java.lang.String> profiles) |
InvocationRequest |
InvocationRequest.setProjects(java.util.List<java.lang.String> projects)
Sets the reactor project list.
|
InvocationRequest |
DefaultInvocationRequest.setProjects(java.util.List<java.lang.String> projects)
Sets the reactor project list.
|
InvocationRequest |
InvocationRequest.setProperties(java.util.Properties properties)
Sets the system properties for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setProperties(java.util.Properties properties) |
InvocationRequest |
InvocationRequest.setRecursive(boolean recursive)
Sets the recursion behavior of a reactor invocation.
|
InvocationRequest |
DefaultInvocationRequest.setRecursive(boolean recursive) |
InvocationRequest |
InvocationRequest.setResumeFrom(java.lang.String resumeFrom)
Resume reactor from specified project.
|
InvocationRequest |
DefaultInvocationRequest.setResumeFrom(java.lang.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(java.lang.String threads)
Thread count, for instance 2.0C where C is core multiplied
Equivalent of
-T or --threads |
InvocationRequest |
DefaultInvocationRequest.setThreads(java.lang.String threads)
Thread count, for instance 2.0C where C is core multiplied
Equivalent of
-T or --threads |
InvocationRequest |
InvocationRequest.setToolchainsFile(java.io.File toolchains)
Sets the alternate path for the user toolchains file
Equivalent of
-t or --toolchains |
InvocationRequest |
DefaultInvocationRequest.setToolchainsFile(java.io.File 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(java.io.File userSettings)
Sets the path to the user settings for the Maven invocation.
|
InvocationRequest |
DefaultInvocationRequest.setUserSettingsFile(java.io.File userSettings) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.util.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) |
private int |
DefaultInvoker.executeCommandLine(org.codehaus.plexus.util.cli.Commandline cli,
InvocationRequest request) |
protected void |
MavenCommandLineBuilder.setEnvironmentPaths(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setFlags(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setGoals(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setPomLocation(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setProfiles(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setProperties(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setReactorBehavior(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setSettingsLocation(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setShellEnvironment(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setThreads(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |
protected void |
MavenCommandLineBuilder.setToolchainsLocation(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli) |