public abstract class AbstractMavenExecutor extends Object implements MavenExecutor, org.codehaus.plexus.logging.LogEnabled
ROLE
Modifier | Constructor and Description |
---|---|
protected |
AbstractMavenExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger) |
protected Settings |
encryptSettings(Settings settings) |
protected abstract void |
executeGoals(File workingDirectory,
List<String> goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String additionalArguments,
String pomFileName,
ReleaseResult result) |
void |
executeGoals(File workingDirectory,
String goals,
boolean interactive,
String additionalArguments,
ReleaseResult result)
Execute goals using Maven.
|
void |
executeGoals(File workingDirectory,
String goals,
boolean interactive,
String additionalArguments,
String pomFileName,
ReleaseResult result)
Execute goals using Maven.
|
void |
executeGoals(File workingDirectory,
String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String arguments,
ReleaseResult result)
Execute goals using Maven.
|
void |
executeGoals(File workingDirectory,
String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String additionalArguments,
String pomFileName,
ReleaseResult result)
Execute goals using Maven.
|
protected org.codehaus.plexus.logging.Logger |
getLogger() |
protected SettingsXpp3Writer |
getSettingsWriter() |
public void executeGoals(File workingDirectory, String goals, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
executeGoals
in interface MavenExecutor
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)interactive
- 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 onresult
- holds all results of the executionMavenExecutorException
- if an error occurred executing Mavenpublic void executeGoals(File workingDirectory, String goals, boolean interactive, String additionalArguments, ReleaseResult result) throws MavenExecutorException
executeGoals
in interface MavenExecutor
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)interactive
- whether to execute in interactive mode, or the default batch modeadditionalArguments
- additional arguments to pass to the Maven commandresult
- holds all results of the executionMavenExecutorException
- if an error occurred executing Mavenpublic void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String arguments, ReleaseResult result) throws MavenExecutorException
executeGoals
in interface 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 commandresult
- holds all results of the executionMavenExecutorException
- if an error occurred executing Mavenpublic void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
executeGoals
in interface 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 onresult
- holds all results of the executionMavenExecutorException
- if an error occurred executing Mavenprotected abstract void executeGoals(File workingDirectory, List<String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
MavenExecutorException
protected final org.codehaus.plexus.logging.Logger getLogger()
public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
protected SettingsXpp3Writer getSettingsWriter()
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.