Class CreateBackupPomsPhase
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.shared.release.phase.AbstractReleasePhase
-
- org.apache.maven.shared.release.phase.AbstractBackupPomsPhase
-
- org.apache.maven.shared.release.phase.CreateBackupPomsPhase
-
- All Implemented Interfaces:
ReleasePhase
,ResourceGenerator
,org.codehaus.plexus.logging.LogEnabled
@Component(role=ReleasePhase.class, hint="create-backup-poms") public class CreateBackupPomsPhase extends AbstractBackupPomsPhase implements ResourceGenerator
-
-
Constructor Summary
Constructors Constructor Description CreateBackupPomsPhase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleaseResult
clean(java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
Clean up after a phase if it leaves any additional files in the checkout.private void
createPomBackup(org.apache.maven.project.MavenProject project)
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.-
Methods inherited from class org.apache.maven.shared.release.phase.AbstractBackupPomsPhase
deletePomBackup, getPomBackup
-
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, ReleaseFailureException
Description copied from interface:ReleasePhase
Execute the phase.- Specified by:
execute
in interfaceReleasePhase
- 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 phaseReleaseFailureException
- a failure during the execution of the phase
-
clean
public ReleaseResult clean(java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
Description copied from interface:ResourceGenerator
Clean up after a phase if it leaves any additional files in the checkout.- Specified by:
clean
in interfaceResourceGenerator
- Parameters:
reactorProjects
- the reactor projects- Returns:
- the release result
-
simulate
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.util.List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
Description copied from interface:ReleasePhase
Simulate the phase, but don't make any changes to the project.- Specified by:
simulate
in interfaceReleasePhase
- 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 phaseReleaseFailureException
- a failure during the execution of the phase
-
createPomBackup
private void createPomBackup(org.apache.maven.project.MavenProject project) throws ReleaseExecutionException
- Throws:
ReleaseExecutionException
-
-