Class DefaultLifecycles

java.lang.Object
org.apache.maven.lifecycle.DefaultLifecycles

@Named @Singleton public class DefaultLifecycles extends Object
Since:
3.0
  • Field Details

    • STANDARD_LIFECYCLES

      public static final String[] STANDARD_LIFECYCLES
  • Constructor Details

    • DefaultLifecycles

      public DefaultLifecycles()
    • DefaultLifecycles

      @Deprecated public DefaultLifecycles(Map<String,Lifecycle> lifecycles, org.codehaus.plexus.logging.Logger logger)
      Deprecated.
    • DefaultLifecycles

      @Inject public DefaultLifecycles(Lookup lookup)
  • Method Details

    • get

      public Lifecycle get(String phase)
      Get lifecycle based on phase
      Parameters:
      phase -
      Returns:
    • getPhaseToLifecycleMap

      public Map<String,Lifecycle> getPhaseToLifecycleMap()
      We use this to map all phases to the lifecycle that contains it. This is used so that a user can specify the phase they want to execute and we can easily determine what lifecycle we need to run.
      Returns:
      A map of lifecycles, indexed on id
    • getLifeCycles

      public List<Lifecycle> getLifeCycles()
      Returns an ordered list of lifecycles
    • getLifecyclePhaseList

      public String getLifecyclePhaseList()