If you want this to be resulting in some sort of useful analysis results I 
would think it should be fairly useful to hook it up as an option for the 
plugin and use e.g. Google analytics with some fake urls for each mojo.

Only problem is that people might object to you doing that.. 

manfred

Jason van Zyl wrote on 31.08.2014 05:47:

> Like I said it was a bit of a mess. There is also the technique used in the
> maven-timeline-plugin where you can use an execution listener:
> 
> https://github.com/dgageot/maven-timeline/blob/master/src/main/java/net/gageot/maven/buildevents/BuildEventListener.java
> 
> This can be loaded from the POM.
> 
> On Aug 31, 2014, at 12:11 AM, William Ferguson 
> <[email protected]>
> wrote:
> 
>> If I wanted to decorate the calls to each of the Mojos in a plugin what
>> would be the best way of achieving that?
>> 
>> I'm considering a use case to use analytics to capture plugin usage so we
>> have a better understanding of which Mojos are of most value. And perhaps
>> to capture details on Mojo failures.
>> 
>> 
>> William
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/takari_io
> ---------------------------------------------------------
> 
> I never make the mistake of arguing with people for whose opinions I have no
> respect.
> 
> -- Edward Gibbon
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to