You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tomas Klubal (JIRA)" <ji...@codehaus.org> on 2012/08/16 16:07:21 UTC

[jira] (MNG-5213) Maven reported incorrect "total time" of the build

    [ https://jira.codehaus.org/browse/MNG-5213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306364#comment-306364 ] 

Tomas Klubal commented on MNG-5213:
-----------------------------------

It looks like maven is reporting on the processor time rather than user time (was running this on Linux  Centos 6.2).
I have started maven like this (using time command to measure the time):
time mvn clean install -Pci,coverage 
...
And this was the result:
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:55.327s
[INFO] Finished at: Thu Aug 16 14:58:10 BST 2012
[INFO] Final Memory: 63M/382M
[INFO] ------------------------------------------------------------------------

real	1m56.169s
user	2m46.911s
sys	0m9.420s




                
> Maven reported incorrect "total time" of the build
> --------------------------------------------------
>
>                 Key: MNG-5213
>                 URL: https://jira.codehaus.org/browse/MNG-5213
>             Project: Maven 2 & 3
>          Issue Type: Bug
>         Environment: [cstamas@marvin nexus (timeline-into-plugin)]$ mvn -v
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: /usr/share/maven
> Java version: 1.6.0_29, vendor: Apple Inc.
> Java home: /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.7.2", arch: "i386", family: "mac"
>            Reporter: Tamás Cservenák
>
> Maven reported incorrect "total time" of the build.
> I started a "full" build (all of the ITs enabled) of Nexus OSS. It is known to take over two hours. But when I returned to my machine, this was the output:
> {noformat}
> ...
> [INFO] Nexus : Core Plugins : Migration Plugin : Packaging  SUCCESS [5.872s]
> [INFO] Nexus : Core Plugins : Migration Plugin : Test harness  SUCCESS [44:45.692s]
> [INFO] Nexus : Launcher .................................. SUCCESS [4.120s]
> [INFO] Nexus : Clients : Lightweight REST ................ SUCCESS [0.057s]
> [INFO] Nexus : Clients : Lightweight REST : Common ....... SUCCESS [1.545s]
> [INFO] Nexus : Clients : Lightweight REST : ITs .......... SUCCESS [2.550s]
> [INFO] Nexus : Clients : Lightweight REST : Staging/BP ... SUCCESS [3.347s]
> [INFO] Nexus : Clients : Lightweight REST : M2 Settings .. SUCCESS [2.656s]
> [INFO] Nexus : Clients : Lightweight REST : Core ......... SUCCESS [3.509s]
> [INFO] Nexus : Distros : Nexus OSS Bundle Tattletale ..... SUCCESS [10.448s]
> [INFO] Nexus : Stories ................................... SUCCESS [0.876s]
> [INFO] Nexus : Test Harness : Core ITs ................... SUCCESS [1:48.181s]
> [INFO] Nexus : Maven Plugins : Parent .................... SUCCESS [0.075s]
> [INFO] Nexus : Maven Plugins : Nexus ..................... SUCCESS [19.127s]
> [INFO] Nexus : Aggregator ................................ SUCCESS [24.694s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:15:25.587s
> [INFO] Finished at: Thu Dec 08 00:15:39 CET 2011
> [INFO] Final Memory: 135M/368M
> [INFO] ------------------------------------------------------------------------
> [cstamas@marvin nexus (timeline-into-plugin)]$ date
> 2011 Dec  8 Csü 00:25:07 CET
> {noformat}
> The "total time" reported of 1 hour 15 minutes is clearly wrong: just look the two modules:
> * Nexus : Core Plugins : Migration Plugin : Test harness took 44 minutes.
> * Nexus : Test Harness : Core ITs took 1 hour 48 minutes.
> And, we _know_ (CI confirms too) that this build should take over than two hours.
> One thing to remark: the build was started before, but did finish after midnight....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira