You can build this:
https://github.com/etesla/tesla-profiler
And put the JAR in your ${maven}/lib/ext directory and you'll get something
like the following:
org.eclipse.tesla:tesla-profiler:0.0.1-SNAPSHOT
process-resources 0m 0.175s
org.apache.maven.plugins:maven-resources-plugin:2.5 (default-resources) 0m
0.175s
compile 0m 0.641s
org.apache.maven.plugins:maven-compiler-plugin:2.3.2 (default-compile) 0m
0.641s
process-test-resources 0m 0.2s
org.apache.maven.plugins:maven-resources-plugin:2.5 (default-testResources)
0m 0.2s
test-compile 0m 0.55s
org.apache.maven.plugins:maven-compiler-plugin:2.3.2 (default-testCompile)
0m 0.55s
test 0m 0.522s
org.apache.maven.plugins:maven-surefire-plugin:2.9 (default-test) 0m 0.522s
package 0m 0.260s
org.apache.maven.plugins:maven-jar-plugin:2.3.1 (default-jar) 0m 0.260s
There are some timing bugs and I don't like the output, but you can fiddle with
it yourself.
On Feb 17, 2012, at 1:28 PM, Sankaran, Nambi wrote:
> Hi
>
> At the end of the build maven provides the summary as follows,
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] p1 ................................................... SUCCESS [0.429s]
> [INFO] p1-parent ............................................ SUCCESS [0.005s]
> [INFO] Utils ................................................ SUCCESS [8.507s]
> [INFO] aggregator ........................................... SUCCESS [0.003s]
> [INFO] p1-maven-plugin ...................................... SUCCESS [8.874s]
> [INFO] p1-Mojo Integration Test ............................. SUCCESS [1.328s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 19.529s
> [INFO] Finished at: Thu Feb 16 22:58:56 PST 2012
> [INFO] Final Memory: 34M/211M
> [INFO]
> ------------------------------------------------------------------------
>
>
> This is very useful, since it provides the build time for each project.
> However, it doesn't provide the breakup of how much time was spent in
> individual maven plugins.
>
> Is there a way to display the individual maven-plugin-execution times at the
> end of the build?
>
> Thanks
> Nambi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of
dogmas or goals, it's always because these dogmas or
goals are in doubt.
-- Robert Pirzig, Zen and the Art of Motorcycle Maintenance