org.apache.maven.lifecycle
Interface LifecycleExecutorListener


public interface LifecycleExecutorListener

Event notification for the start/end of the maven execution.

The exact semantics in Maven is undocumented (as usual!), but apparently this is invoked at the beginning of the build and the end, surrounding the complete mojo executions.

Author:
Kohsuke Kawaguchi

Method Summary
 void endModule()
          This event is avaialble from LifecycleExecutorListener and offers accurate "leaving module" event.
 void postBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.execution.ReactorManager rm, org.apache.maven.monitor.event.EventDispatcher dispatcher)
           
 void preBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.execution.ReactorManager rm, org.apache.maven.monitor.event.EventDispatcher dispatcher)
           
 

Method Detail

preBuild

void preBuild(org.apache.maven.execution.MavenSession session,
              org.apache.maven.execution.ReactorManager rm,
              org.apache.maven.monitor.event.EventDispatcher dispatcher)
              throws org.apache.maven.BuildFailureException,
                     org.apache.maven.lifecycle.LifecycleExecutionException,
                     java.lang.InterruptedException,
                     java.io.IOException
Throws:
org.apache.maven.BuildFailureException
org.apache.maven.lifecycle.LifecycleExecutionException
java.lang.InterruptedException
java.io.IOException

postBuild

void postBuild(org.apache.maven.execution.MavenSession session,
               org.apache.maven.execution.ReactorManager rm,
               org.apache.maven.monitor.event.EventDispatcher dispatcher)
               throws org.apache.maven.BuildFailureException,
                      org.apache.maven.lifecycle.LifecycleExecutionException,
                      java.lang.InterruptedException,
                      java.io.IOException
Throws:
org.apache.maven.BuildFailureException
org.apache.maven.lifecycle.LifecycleExecutionException
java.lang.InterruptedException
java.io.IOException

endModule

void endModule()
               throws java.lang.InterruptedException,
                      java.io.IOException
This event is avaialble from LifecycleExecutorListener and offers accurate "leaving module" event.

Throws:
java.lang.InterruptedException
java.io.IOException


Copyright © 2010. All Rights Reserved.