Class AbstractRunGoalsPhase
java.lang.Object
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
- All Implemented Interfaces:
ReleasePhase
- Direct Known Subclasses:
RunCompleteGoalsPhase
,RunPerformGoalsPhase
,RunPrepareGoalsPhase
Abstract phase to run a Maven invocation on the project.
- Author:
- Brett Porter
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRunGoalsPhase
(Map<String, MavenExecutor> mavenExecutors) -
Method Summary
Modifier and TypeMethodDescriptionprotected File
determineWorkingDirectory
(File checkoutDirectory, String relativePathProjectDirectory) Determines the path of the working directory.protected ReleaseResult
execute
(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, File workingDirectory, String additionalArguments, boolean logArguments) protected ReleaseResult
execute
(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects, boolean logArguments) protected String
getAdditionalArguments
(ReleaseDescriptor releaseDescriptor) protected abstract String
getGoals
(ReleaseDescriptor releaseDescriptor) Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
execute, simulate
-
Constructor Details
-
AbstractRunGoalsPhase
-
-
Method Details
-
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.FilerelativePathProjectDirectory
- The relative path of the project directory within the checkout directory or ""- Returns:
- The working directory