Class AbstractRunGoalsPhase

java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
All Implemented Interfaces:
ReleasePhase, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
RunCompleteGoalsPhase, RunPerformGoalsPhase, RunPrepareGoalsPhase

public abstract class AbstractRunGoalsPhase extends AbstractReleasePhase
Run the integration tests for the project to verify that it builds before committing.
  • Field Details

  • Constructor Details

    • AbstractRunGoalsPhase

      public AbstractRunGoalsPhase()
  • Method Details

    • execute

      public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, File workingDirectory, String additionalArguments) throws ReleaseExecutionException
      Throws:
      ReleaseExecutionException
    • getGoals

      protected abstract String getGoals(ReleaseDescriptor releaseDescriptor)
    • getAdditionalArguments

      protected String getAdditionalArguments(ReleaseDescriptor releaseDescriptor)
    • determineWorkingDirectory

      protected File determineWorkingDirectory(File checkoutDirectory, String relativePathProjectDirectory)
      Determines the path of the working directory. By default, this is the checkout directory. For some SCMs, the project root directory is not the checkout directory itself, but a SCM-specific subdirectory.
      Parameters:
      checkoutDirectory - The checkout directory as java.io.File
      relativePathProjectDirectory - The relative path of the project directory within the checkout directory or ""
      Returns:
      The working directory