laeubi commented on PR #740:
URL: https://github.com/apache/maven/pull/740#issuecomment-1126664745

   > how do you expect filtering to happen to know which instance of EventSpy 
is expected in your Mojo instance?
   
   I don't have a mojo here, just o (project scoped) extension, according to 
the code I won't expect *thousands* but one instance per session?
   
   > Perhaps this study about LifecycleParticipant could help you
   
   Not really, just in case I accesses the Session and the Execution request, 
but calling:
   
   ```
   MavenExecutionRequest request = mavenSession.getRequest();
   EventSpyDispatcher dispatcher = request.getEventSpyDispatcher();
   ```
   
   results in ClassNotFoundException: 
org.apache.maven.eventspy.internal.EventSpyDispatcher... so no luck here.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to