Class RunPrepareGoalsPhase
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.shared.release.phase.AbstractReleasePhase
-
- org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
-
- org.apache.maven.shared.release.phase.RunPrepareGoalsPhase
-
- All Implemented Interfaces:
ReleasePhase
,org.codehaus.plexus.logging.LogEnabled
@Component(role=ReleasePhase.class, hint="run-preparation-goals") public class RunPrepareGoalsPhase extends AbstractRunGoalsPhase
Run the integration tests for the project to verify that it builds before committing.
-
-
Constructor Summary
Constructors Constructor Description RunPrepareGoalsPhase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleaseResult
execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
Execute the phase.protected java.lang.String
getGoals(ReleaseDescriptor releaseDescriptor)
ReleaseResult
simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
Simulate the phase, but don't make any changes to the project.-
Methods inherited from class org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
determineWorkingDirectory, execute, getAdditionalArguments
-
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
-
-
-
-
Method Detail
-
execute
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException
Description copied from interface:ReleasePhase
Execute the phase.- Parameters:
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projects- Returns:
- the release result
- Throws:
ReleaseExecutionException
- an exception during the execution of the phase
-
simulate
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException
Description copied from interface:ReleasePhase
Simulate the phase, but don't make any changes to the project.- Parameters:
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projects- Returns:
- the release result
- Throws:
ReleaseExecutionException
- an exception during the execution of the phase
-
getGoals
protected java.lang.String getGoals(ReleaseDescriptor releaseDescriptor)
- Specified by:
getGoals
in classAbstractRunGoalsPhase
-
-