KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > lifecycle > LifecycleExecutorListener


1 package org.apache.maven.lifecycle;
2
3 import org.apache.maven.BuildFailureException;
4 import org.apache.maven.execution.MavenSession;
5 import org.apache.maven.execution.ReactorManager;
6 import org.apache.maven.monitor.event.EventDispatcher;
7
8 /**
9  * Event notification for the start/end of the maven execution.
10  *
11  * <p>
12  * The exact semantics in Maven is undocumented (as usual!), but apparently
13  * this is invoked at the beginning of the build and the end, surrounding
14  * the complete mojo executions.
15  *
16  * @author Kohsuke Kawaguchi
17  */

18 public interface LifecycleExecutorListener {
19     void preBuild(MavenSession session, ReactorManager rm, EventDispatcher dispatcher) throws BuildFailureException, LifecycleExecutionException;
20     void postBuild(MavenSession session, ReactorManager rm, EventDispatcher dispatcher) throws BuildFailureException, LifecycleExecutionException;
21 }
22
Popular Tags