Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Hide[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"Show[ 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"
-
Complexity:Intermediate
-
Number of attachments :
Description
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:
... [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
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....
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