Class 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.AbstractMojo
    Restores the state of a previous Maven execution into the current one.
    • Field Summary

      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • 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.
    • 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.MojoFailureException
        Restores 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.