jcgay/maven-profiler

Profile site lifecycle

mattnelson opened this issue · 5 comments

When building the site the profiler output is only including the maven-site-plugin. Is it possible to include all the plugins executing during the site lifecycle?

org.apache.maven.plugins:maven-site-plugin:3.6:site {execution: default-site} | 11.29 s
jcgay commented

I have not understood your problem :(

I have attached another plugin execution to the site phase and it is present in profiler report.
Do you have an example that I can reproduce ?

Thanks

I would like to see timings for all the reports that are called from the site plugin. As is I am only getting the time for the maven-site-plugin as a whole.

[INFO] --- maven-site-plugin:3.6:site (default-site) @ my-project ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-changes-plugin:2.12.1
[INFO] configuring report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.10.4
[INFO] configuring report plugin org.apache.maven.plugins:maven-jxr-plugin:2.5
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.9
[INFO] configuring report plugin org.apache.maven.plugins:maven-surefire-report-plugin:2.20
[INFO] configuring report plugin org.codehaus.mojo:taglist-maven-plugin:2.4
[INFO] configuring report plugin org.codehaus.mojo:versions-maven-plugin:2.2
[INFO] configuring report plugin org.jacoco:jacoco-maven-plugin:0.7.10-SNAPSHOT
[INFO] configuring report plugin org.owasp:dependency-check-maven:2.0.1
[INFO] Skipped "About" report (maven-project-info-reports-plugin:2.9:index), file "index.html" already exists for the English version.
[INFO] Rendering 1 Doxia document: 1 markdown
[INFO] Generating "Dependency Versions" report --- enhanced-dependency-maven-plugin:1.1:analyze-dep-versions-report
[INFO] Generating "Dependency Diff Report" report --- enhanced-dependency-maven-plugin:1.1:compare-deps-report
[INFO] Generating "JIRA Report" report   --- maven-changes-plugin:2.12.1:jira-report
[INFO] Generating "JavaDocs" report      --- maven-javadoc-plugin:2.10.4:javadoc-no-fork
[INFO] Generating "Test JavaDocs" report --- maven-javadoc-plugin:2.10.4:test-javadoc-no-fork
[INFO] Generating "Source Xref" report   --- maven-jxr-plugin:2.5:jxr
[INFO] Generating "Test Source Xref" report --- maven-jxr-plugin:2.5:test-jxr
[INFO] Generating "CI Management" report --- maven-project-info-reports-plugin:2.9:cim
[INFO] Generating "Dependencies" report  --- maven-project-info-reports-plugin:2.9:dependencies
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.9:dependency-management
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.9:dependency-convergence
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.9:distribution-management
[INFO] Generating "Issue Management" report --- maven-project-info-reports-plugin:2.9:issue-tracking
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.9:plugin-management
[INFO] Generating "Plugins" report       --- maven-project-info-reports-plugin:2.9:plugins
[INFO] Generating "Team" report          --- maven-project-info-reports-plugin:2.9:project-team
[INFO] Generating "Source Code Management" report --- maven-project-info-reports-plugin:2.9:scm
[INFO] Generating "Summary" report       --- maven-project-info-reports-plugin:2.9:summary
[INFO] Generating "Surefire Report" report --- maven-surefire-report-plugin:2.20:report-only
[INFO] Generating "Tag List" report      --- taglist-maven-plugin:2.4:taglist
[INFO] Generating "Dependency Updates Report" report --- versions-maven-plugin:2.2:dependency-updates-report
[INFO] Generating "Plugin Updates Report" report --- versions-maven-plugin:2.2:plugin-updates-reportsnapshot
[INFO] Generating "Property Updates Report" report --- versions-maven-plugin:2.2:property-updates-report
[INFO] Generating "JaCoCo" report        --- jacoco-maven-plugin:0.7.10-SNAPSHOT:report
[INFO] Generating "dependency-check:aggregate" report --- dependency-check-maven:2.0.1:aggregate
jcgay commented

Ah ok got it 😅
I'll check if these reporters fire events that we could spy on.

Thanks !

Spent a little more time on this. It doesn't look possible without changes to maven-reporting-exec.

https://issues.apache.org/jira/browse/MSHARED-650

jcgay commented

Ok I haven't dig as much as you this week-end :p
All I have seen is that there is no event fired when these plugins are executed.

Let's see if someone respond on your ticket!