[ https://jira.codehaus.org/browse/MNG-5436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=320093#comment-320093 ]
Olivier Lamy commented on MNG-5436: ----------------------------------- A possibility is to implement your own EventSpy (http://maven.apache.org/ref/3.0.4/apidocs/org/apache/maven/eventspy/EventSpy.html). But I agree the method to listen the build is very poor (need some hackhish instance of ). {code} void onEvent(Object event) throws Exception {code} Sure that's my POV... whereas the ExecutionListener provide a very better interface. > Up to Maven 3.0.4, there can be only one ExecutionListener > ---------------------------------------------------------- > > Key: MNG-5436 > URL: https://jira.codehaus.org/browse/MNG-5436 > Project: Maven 2 & 3 > Issue Type: Improvement > Affects Versions: 3.0.4 > Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) > Maven home: C:\Program Files (x86)\Maven-3.0.4\bin\.. > Java version: 1.6.0_30, vendor: Sun Microsystems Inc. > Java home: C:\Program Files\Java\jdk1.6.0_30\jre > Default locale: fr_FR, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > Reporter: Nicolas Delsaux > > I'm working on a maven growl extension > (https://github.com/Riduidel/maven-growl-plugin) that should send growl > notification based upon project lifecycle. > Typical use case is to receive a growl notification when build is over. > According to discussion with olamy, there currently can be only one execution > listener in maven. What's more, some code has to be added to execution > listener class if one want these listeners calls to be chained. > Like in Swing for all event listeners, it should be possible to have more > than one listener, and those listeners management should be handled by maven > itself, and not by the listener. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira