public class ScmBranchPhase extends AbstractReleasePhase
Modifier and Type | Field and Description |
---|---|
private ScmRepositoryConfigurator |
scmRepositoryConfigurator
Tool that gets a configured SCM repository from release configuration.
|
ROLE
Constructor and Description |
---|
ScmBranchPhase() |
Modifier and Type | Method and Description |
---|---|
ReleaseResult |
execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
Execute the phase.
|
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.
|
private static void |
validateConfiguration(ReleaseDescriptor releaseDescriptor) |
clean, execute, getReleaseResultSuccess, logDebug, logError, logInfo, logWarn, simulate
private ScmRepositoryConfigurator scmRepositoryConfigurator
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
ReleasePhase
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projectsReleaseExecutionException
- an exception during the execution of the phaseReleaseFailureException
- a failure during the execution of the phasepublic ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
ReleasePhase
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projectsReleaseExecutionException
- an exception during the execution of the phaseReleaseFailureException
- a failure during the execution of the phaseprivate static void validateConfiguration(ReleaseDescriptor releaseDescriptor) throws ReleaseFailureException
ReleaseFailureException