eventDispatcher.addEventMonitor( eventMonitor );
public void execute(MavenSession session, ReactorManager rm, EventDispatcher dispatcher) throws BuildFailureException, LifecycleExecutionException { try { session.getEventDispatcher().addEventMonitor(new EventMonitorImpl()); if(listener!=null) listener.preBuild(session,rm,dispatcher); try { super.execute(session, rm, dispatcher); } finally { if(listener!=null) listener.postBuild(session,rm,dispatcher); } } catch (InterruptedException e) { throw new BuildFailureException("aborted",e); } catch (IOException e) { throw new BuildFailureException(e.getMessage(),e); } catch (AbortException e) { throw new BuildFailureException("aborted",e); } }
public void execute(MavenSession session, ReactorManager rm, EventDispatcher dispatcher) throws BuildFailureException, LifecycleExecutionException { try { session.getEventDispatcher().addEventMonitor(new EventMonitorImpl()); if(listener!=null) listener.preBuild(session,rm,dispatcher); try { super.execute(session, rm, dispatcher); } finally { if(listener!=null) listener.postBuild(session,rm,dispatcher); } } catch (InterruptedException e) { throw new BuildFailureException("aborted",e); } catch (IOException e) { throw new BuildFailureException(e.getMessage(),e); } catch (AbortException e) { throw new BuildFailureException("aborted",e); } }