maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart McCulloch <mccu...@gmail.com>
Subject Re: EventSpy not registered?
Date Mon, 05 Mar 2012 23:13:49 GMT
On 5 Mar 2012, at 23:04, Tim Drury wrote:

> No, I hadn't but I just did and same result - nothing in the output logs.

Did you mark your spy implementation as a @Component?  Does your jar contain a META-INF/plexus/components.xml
generated by the plexus-component-metadata plugin? 

> -tim
> 
> On Mon, Mar 5, 2012 at 5:56 PM, Olivier Lamy <olamy@apache.org> wrote:
> 
>> Did you add you jar in $M2_HOME/lib/ext/ ?
>> 
>> 2012/3/5 Tim Drury <tdrury@gmail.com>:
>>> I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply
>> writes
>>> to a java.util.logging.Logger at info level (and System.out) when each
>>> method is called.  I run it via:
>>> 
>>> mvn
>> -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar
>>> -X clean install
>>> 
>>> yet I get nothing in the output indicating my EventSpy is being called.
>>> Any clues?
>>> 
>>> -tim
>> 
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> 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


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


Mime
View raw message