Class AbstractMavenExecutor

java.lang.Object
org.apache.maven.shared.release.exec.AbstractMavenExecutor
All Implemented Interfaces:
MavenExecutor
Direct Known Subclasses:
ForkedMavenExecutor, InvokerMavenExecutor

public abstract class AbstractMavenExecutor extends Object implements MavenExecutor

Abstract AbstractMavenExecutor class.

  • Constructor Details

    • AbstractMavenExecutor

      protected AbstractMavenExecutor(MavenCrypto mavenCrypto)
  • Method Details

    • executeGoals

      public void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
      Description copied from interface: MavenExecutor
      Execute goals using Maven.
      Specified by:
      executeGoals in interface MavenExecutor
      Parameters:
      workingDirectory - the directory to execute in
      goals - the goals to run (space delimited)
      releaseEnvironment - the environmental settings, maven-home, etc used for this release
      interactive - whether to execute in interactive mode, or the default batch mode
      additionalArguments - additional arguments to pass to the Maven command
      pomFileName - the file name of the POM to execute on
      result - holds all results of the execution
      Throws:
      MavenExecutorException - if an error occurred executing Maven
    • executeGoals

      protected abstract void executeGoals(File workingDirectory, List<String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) throws MavenExecutorException
      Throws:
      MavenExecutorException
    • getLogger

      protected final org.slf4j.Logger getLogger()

      Getter for the field logger.

      Returns:
      a Logger object
    • encryptSettings

      protected org.apache.maven.settings.Settings encryptSettings(org.apache.maven.settings.Settings settings)

      encryptSettings.

      Parameters:
      settings - a Settings object
      Returns:
      a Settings object
    • getSettingsWriter

      protected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer getSettingsWriter()

      getSettingsWriter.

      Returns:
      a SettingsXpp3Writer object