Matt Nelson opened MSHARED-650 and commented
The event spy features added currently only support plugin mojos. When building site all the report mojos are grouped together under the site plugin and do not enable the ability to profile the site and find slow mojos. I dug through the code and it appears that the DefaultMavenReportExecutor[1] could be instrumented with the Catapult to fire events for each report mojo that the EventSpy[2] can handle.
[1] https://github.com/apache/maven-shared/blob/maven-reporting-exec-1.3/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
[2] https://github.com/apache/maven/blob/maven-3.5.0/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java
Issue Links:
- MNG-7479 Export the package org.apache.maven.eventspy
Matt Nelson opened MSHARED-650 and commented
The event spy features added currently only support plugin mojos. When building site all the report mojos are grouped together under the site plugin and do not enable the ability to profile the site and find slow mojos. I dug through the code and it appears that the
DefaultMavenReportExecutor[1] could be instrumented with the Catapult to fire events for each report mojo that theEventSpy[2] can handle.[1] https://github.com/apache/maven-shared/blob/maven-reporting-exec-1.3/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
[2] https://github.com/apache/maven/blob/maven-3.5.0/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java
Issue Links: