public abstract class AbstractMavenExecutor extends Object implements MavenExecutor
Abstract AbstractMavenExecutor class.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMavenExecutor(MavenCrypto mavenCrypto) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.settings.Settings |
encryptSettings(org.apache.maven.settings.Settings settings)
encryptSettings.
|
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,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String additionalArguments,
String pomFileName,
ReleaseResult result)
Execute goals using Maven.
|
protected org.slf4j.Logger |
getLogger()
Getter for the field
logger. |
protected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer |
getSettingsWriter()
getSettingsWriter.
|
protected AbstractMavenExecutor(MavenCrypto mavenCrypto)
public void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
MavenExecutorexecuteGoals in interface MavenExecutorworkingDirectory - 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
MavenExecutorExceptionprotected final org.slf4j.Logger getLogger()
Getter for the field logger.
Logger objectprotected org.apache.maven.settings.Settings encryptSettings(org.apache.maven.settings.Settings settings)
encryptSettings.
settings - a Settings objectSettings objectprotected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer getSettingsWriter()
getSettingsWriter.
SettingsXpp3Writer objectCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.