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,
                     InterruptedException,
                     IOException
Throws:
org.apache.maven.BuildFailureException
org.apache.maven.lifecycle.LifecycleExecutionException
InterruptedException
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,
                      InterruptedException,
                      IOException
Throws:
org.apache.maven.BuildFailureException
org.apache.maven.lifecycle.LifecycleExecutionException
InterruptedException
IOException

endModule

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

Throws:
InterruptedException
IOException


Copyright © 2010. All Rights Reserved.