You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/05/13 13:23:19 UTC
[GitHub] [maven] gnodet commented on pull request #740: MNG-7479 - Export the package org.apache.maven.eventspy
gnodet commented on PR #740:
URL: https://github.com/apache/maven/pull/740#issuecomment-1126052315
The event spy is the only one capable of producing actual timing for mojos.
We have brought one inspired from takari in mvnd iirc :
https://github.com/apache/maven-mvnd/blob/master/daemon/src/main/java/org/mvndaemon/mvnd/timing/BuildTimeEventSpy.java
That's a perfectly valid use case imho.
@laeubi if you need to interact with your specific event spy, you could inject the implementation or another interface instead of the `EventSpy` interface which is meant to be actually used by maven and does provide any information.
--
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-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org