4

I am reasking this question for maven 3:

Profiling Maven

I want to know how much time is spent for each mojo / phase / project.

There is http://jira.codehaus.org/browse/MNG-3547 and http://jira.codehaus.org/browse/MNG-4639 but I dont know about their state.

I applied MNG-3547 to apache-maven-2.2.1 and it works fine. I gather the profiling data that is emitted, parse and analyse it (using scala).

Now we are migrating to maven 3.

Are there newer / better approaches to profile a maven3 build, or should I port the patch?

Thanks in advance, Bastl.

Community
  • 1
  • 1
Bastl
  • 2,926
  • 5
  • 27
  • 48

1 Answers1

0

Now, I don't know if this is really a direct answer based on Maven alone, but I do know that Sonatype's Maven 3 work on the Hudson plugin did include profiling information for a build. If you use the Maven 3 integration for Hudson you will be able to see how long your Maven builds spend in each goal.

Tim O'Brien
  • 9,623
  • 5
  • 30
  • 36