Class ReactorStateInstallLocalMojo

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

    @Mojo(name="install-local",
          requiresDirectInvocation=true,
          threadSafe=true,
          inheritByDefault=false)
    public class ReactorStateInstallLocalMojo
    extends org.apache.maven.plugin.AbstractMojo
    Installs the reactorstate-maven-extension to the root of the current Maven project by inserting it into .mvn/extensions.xml.
    • Field Summary

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

        ROLE
    • Constructor Summary

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

      • ReactorStateInstallLocalMojo

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

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Installs the reactorstate-maven-extension to the root of the current Maven project by inserting it into .mvn/extensions.xml. The file is automatically created if it does not exist; otherwise already registered extensions are preserved.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - never.
        org.apache.maven.plugin.MojoFailureException - if an error occurred while registering the extension.