maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Logging listener
Date Wed, 22 May 2013 09:40:49 GMT
The easiest will be to use EventSpy (put the the jar in $M2_HOME/lib/ext)
You can find a sample for using ExecutionListener here
https://github.com/olamy/maven-growl-plugin
But I find that a bit hackish :-)


2013/5/22 Jeffrey E Care <carej@us.ibm.com>:
> Olivier Lamy <olamy@apache.org> wrote on 05/20/2013 07:11:40 PM:
>
>> You can write your own ExecutionListener (you can extend this
>> http://maven.apache.org/ref/3-LATEST/apidocs/org/apache/maven/
>> execution/AbstractExecutionListener.html)
>> or your own EventSpy (see
>> http://maven.apache.org/ref/3-LATEST/apidocs/org/apache/maven/
>> eventspy/AbstractEventSpy.html
>> ).
>
> Thanks, that looks exactly like what I was after.
>
> How do you integrate implementations of these interfaces into the build
> process? Is there a guide for how to use these? Based on my google
> searches I *think* I can figure out how to integrate an event spy (use
> plexus annotations, drop JAR in $M2_HOME/lib/ext) but I have no idea how
> to use ExecutionListener. A guide or example project (that uses plexus &
> not sisu) would be useful.
>
> Thanks,
> JEC



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message