Class AbstractLifecycleMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    ListMojo, ListPhaseMojo, ListPluginMojo

    public abstract class AbstractLifecycleMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Detail

      • defaultLifecycles

        @Component(role=org.apache.maven.lifecycle.DefaultLifecycles.class)
        protected org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles
    • Constructor Detail

      • AbstractLifecycleMojo

        public AbstractLifecycleMojo()
    • Method Detail

      • calculateExecutionPlan

        protected org.apache.maven.lifecycle.MavenExecutionPlan calculateExecutionPlan()
                                                                                throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • handleOutput

        protected void handleOutput​(String output)
      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • executeInternal

        protected abstract void executeInternal()
                                         throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException