Class ReactorStateSaveMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="save",
          requiresDirectInvocation=true,
          threadSafe=true,
          inheritByDefault=false,
          aggregator=true)
    public class ReactorStateSaveMojo
    extends org.apache.maven.plugin.AbstractMojo
    Saves the state of the current Maven execution for usage in subsequent Maven executions.
    • Field Summary

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

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactorStateSaveMojo​(org.apache.maven.execution.MavenSession session)
      Constructs a new instance based on the current Maven execution context.
    • Constructor Detail

      • ReactorStateSaveMojo

        @Inject
        public ReactorStateSaveMojo​(org.apache.maven.execution.MavenSession session)
        Constructs a new instance based on the current Maven execution context.
        Parameters:
        session - The current Maven execution context.
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Saves the state of the current Maven execution for usage in subsequent Maven executions.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if an error occurred while saving the state of the current Maven execution.
        org.apache.maven.plugin.MojoFailureException - never.