Class AbstractLifecycleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
it.serendigity.maven.plugin.lifecycle.helper.AbstractLifecycleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ExecutionPlanFileMojo, ExecutionPlanMojo

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

    • defaultLifecycles

      @Component protected org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles
      The Maven default built-in lifecycles.
  • Constructor Details

    • AbstractLifecycleMojo

      public AbstractLifecycleMojo()
  • Method Details

    • isParamForceTasksFromSession

      protected boolean isParamForceTasksFromSession()
    • calculateExecutionPlan

      protected MavenExecutionPlanInfo calculateExecutionPlan(boolean calculateSummary) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • calculateTasksToElaborate

      protected String[] calculateTasksToElaborate() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • validateMavenExecution

      protected boolean validateMavenExecution(MavenExecutionInfo info)
    • normalizeParamFilterPlugin

      protected List<String> normalizeParamFilterPlugin()
      Normalize filter plugin
      Returns:
      List of plugin to filter
    • validatePlugin

      protected static boolean validatePlugin(MavenExecutionInfo info, List<String> filterPlugin)
      Parameters:
      info - a MavenExecutionInfo
      filterPlugin - a list of plugin String (artifact Id)
      Returns:
      true if filterPlugin is null or contains the plugin
    • handleOutput

      protected void handleOutput(String output)
    • headerParametersString

      protected String headerParametersString()
      Mojo parameters header
      Returns:
      String parameters
    • getParamFilterPlugins

      protected String[] getParamFilterPlugins()
    • getPluginsToElaborate

      protected List<String> getPluginsToElaborate()
    • setPluginToElaborate

      protected void setPluginToElaborate(List<String> pluginToElaborate)
    • retrieveTasksFromSession

      protected List<String> retrieveTasksFromSession() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • getTasksToElaborate

      protected String[] getTasksToElaborate()
    • setTasksToElaborate

      protected void setTasksToElaborate(String[] tasksToElaborate)
    • isParamSkip

      protected boolean isParamSkip()
      Check if the execution should be skipped
      Returns:
      true to skip