Class ReactorStateRestoreMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.syquel.maven.reactorstate.plugin.ReactorStateRestoreMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="restore", requiresDirectInvocation=true, threadSafe=true, inheritByDefault=false, aggregator=true) public class ReactorStateRestoreMojo extends org.apache.maven.plugin.AbstractMojoRestores the state of a previous Maven execution into the current one.
-
-
Constructor Summary
Constructors Constructor Description ReactorStateRestoreMojo(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.project.ProjectBuilder projectBuilder)Constructs a new instance based on the current Maven execution context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Restores the state of a previous Maven execution into the current one.
-
-
-
Constructor Detail
-
ReactorStateRestoreMojo
@Inject public ReactorStateRestoreMojo(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.project.ProjectBuilder projectBuilder)Constructs a new instance based on the current Maven execution context.- Parameters:
session- The current Maven execution context.projectHelper- The helper for Maven-related operations on the current state.projectBuilder- The builder for Maven projects from POMs.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionRestores the state of a previous Maven execution into the current one.- Throws:
org.apache.maven.plugin.MojoExecutionException- if an error occurred while restoring the saved state of a previous Maven execution.org.apache.maven.plugin.MojoFailureException- never.
-
-