Class ChainedExecutionListener

  • All Implemented Interfaces:
    org.apache.maven.execution.ExecutionListener

    class ChainedExecutionListener
    extends java.lang.Object
    implements org.apache.maven.execution.ExecutionListener
    Forwards Maven execution events to a chain of listeners.

    Maven allows only one execution listener. This class can be used to workaround for this limitation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<org.apache.maven.execution.ExecutionListener> listeners  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExecutionListener​(org.apache.maven.execution.ExecutionListener listener)  
      void forkedProjectFailed​(org.apache.maven.execution.ExecutionEvent event)  
      void forkedProjectStarted​(org.apache.maven.execution.ExecutionEvent event)  
      void forkedProjectSucceeded​(org.apache.maven.execution.ExecutionEvent event)  
      void forkFailed​(org.apache.maven.execution.ExecutionEvent event)  
      void forkStarted​(org.apache.maven.execution.ExecutionEvent event)  
      void forkSucceeded​(org.apache.maven.execution.ExecutionEvent event)  
      void mojoFailed​(org.apache.maven.execution.ExecutionEvent event)  
      void mojoSkipped​(org.apache.maven.execution.ExecutionEvent event)  
      void mojoStarted​(org.apache.maven.execution.ExecutionEvent event)  
      void mojoSucceeded​(org.apache.maven.execution.ExecutionEvent event)  
      void projectDiscoveryStarted​(org.apache.maven.execution.ExecutionEvent event)  
      void projectFailed​(org.apache.maven.execution.ExecutionEvent event)  
      void projectSkipped​(org.apache.maven.execution.ExecutionEvent event)  
      void projectStarted​(org.apache.maven.execution.ExecutionEvent event)  
      void projectSucceeded​(org.apache.maven.execution.ExecutionEvent event)  
      void sessionEnded​(org.apache.maven.execution.ExecutionEvent event)  
      void sessionStarted​(org.apache.maven.execution.ExecutionEvent event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • listeners

        private final java.util.List<org.apache.maven.execution.ExecutionListener> listeners
    • Constructor Detail

      • ChainedExecutionListener

        ChainedExecutionListener()
    • Method Detail

      • addExecutionListener

        public void addExecutionListener​(org.apache.maven.execution.ExecutionListener listener)
      • projectDiscoveryStarted

        public void projectDiscoveryStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        projectDiscoveryStarted in interface org.apache.maven.execution.ExecutionListener
      • sessionStarted

        public void sessionStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        sessionStarted in interface org.apache.maven.execution.ExecutionListener
      • sessionEnded

        public void sessionEnded​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        sessionEnded in interface org.apache.maven.execution.ExecutionListener
      • projectSkipped

        public void projectSkipped​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        projectSkipped in interface org.apache.maven.execution.ExecutionListener
      • projectStarted

        public void projectStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        projectStarted in interface org.apache.maven.execution.ExecutionListener
      • projectSucceeded

        public void projectSucceeded​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        projectSucceeded in interface org.apache.maven.execution.ExecutionListener
      • projectFailed

        public void projectFailed​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        projectFailed in interface org.apache.maven.execution.ExecutionListener
      • mojoSkipped

        public void mojoSkipped​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        mojoSkipped in interface org.apache.maven.execution.ExecutionListener
      • mojoStarted

        public void mojoStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        mojoStarted in interface org.apache.maven.execution.ExecutionListener
      • mojoSucceeded

        public void mojoSucceeded​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        mojoSucceeded in interface org.apache.maven.execution.ExecutionListener
      • mojoFailed

        public void mojoFailed​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        mojoFailed in interface org.apache.maven.execution.ExecutionListener
      • forkStarted

        public void forkStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkStarted in interface org.apache.maven.execution.ExecutionListener
      • forkSucceeded

        public void forkSucceeded​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkSucceeded in interface org.apache.maven.execution.ExecutionListener
      • forkFailed

        public void forkFailed​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkFailed in interface org.apache.maven.execution.ExecutionListener
      • forkedProjectStarted

        public void forkedProjectStarted​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkedProjectStarted in interface org.apache.maven.execution.ExecutionListener
      • forkedProjectSucceeded

        public void forkedProjectSucceeded​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkedProjectSucceeded in interface org.apache.maven.execution.ExecutionListener
      • forkedProjectFailed

        public void forkedProjectFailed​(org.apache.maven.execution.ExecutionEvent event)
        Specified by:
        forkedProjectFailed in interface org.apache.maven.execution.ExecutionListener