public class ForkedMavenExecutor extends AbstractMavenExecutor
Modifier and Type | Field and Description |
---|---|
private CommandLineFactory |
commandLineFactory
Command line factory.
|
ROLE
Constructor and Description |
---|
ForkedMavenExecutor() |
Modifier and Type | Method and Description |
---|---|
static int |
executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl,
java.io.InputStream systemIn,
java.io.OutputStream systemOut,
java.io.OutputStream systemErr) |
void |
executeGoals(java.io.File workingDirectory,
java.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String arguments,
ReleaseResult result)
Execute goals using Maven.
|
void |
executeGoals(java.io.File workingDirectory,
java.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String additionalArguments,
java.lang.String pomFileName,
ReleaseResult relResult)
Execute goals using Maven.
|
void |
setCommandLineFactory(CommandLineFactory commandLineFactory) |
enableLogging, executeGoals, executeGoals, getLogger
private CommandLineFactory commandLineFactory
public void executeGoals(java.io.File workingDirectory, java.lang.String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, java.lang.String additionalArguments, java.lang.String pomFileName, ReleaseResult relResult) throws MavenExecutorException
MavenExecutor
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)releaseEnvironment
- the environmental settings, maven-home, etc used for this releaseinteractive
- whether to execute in interactive mode, or the default batch modeadditionalArguments
- additional arguments to pass to the Maven commandpomFileName
- the file name of the POM to execute onMavenExecutorException
- if an error occurred executing Mavenpublic void executeGoals(java.io.File workingDirectory, java.lang.String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, java.lang.String arguments, ReleaseResult result) throws MavenExecutorException
MavenExecutor
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)releaseEnvironment
- the environmental settings, maven-home, etc used for this releaseinteractive
- whether to execute in interactive mode, or the default batch modearguments
- additional arguments to pass to the Maven commandMavenExecutorException
- if an error occurred executing Mavenpublic void setCommandLineFactory(CommandLineFactory commandLineFactory)
public static int executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl, java.io.InputStream systemIn, java.io.OutputStream systemOut, java.io.OutputStream systemErr) throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineException