Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4, 2.4.1, 2.4.2, 2.4.3
-
None
Description
When I have maven-surefire-report-plugin and maven-surefire-plugin in version 2.3,
my site-generation works quite okay.
However when I update to 2.4, 2.4.1, 2.4.2 or 2.4.3 the site-build takes an exorbitant long time.
When you watch the log, you get the impression that there is an infinity-loop because it
builds the same modules again and again. However it is not an infinity loop but I think that for every
module also all dependent modules are build (and therefore tested) recursively even if they had
already been build before.
This way 2.4 scales from O to O(n^2) where n is the number of modules when you have
common inter-project dependencies.
Maybe some feature in 2.4 like improve coverage measure with cobertura or whatever
introduced this bug.
Infos about mvn site:stage with surefire 2.3:
Total time: 18 minutes 19 seconds
Size of logfile (mvn output): 3.567.441 bytes
grep "Building util-core" site.log | wc -l: 44
Infos about mvn site:stage with surefire 2.4.3:
Total time: 70 minutes 29 seconds
Size of logfile (mvn output): 58.442.755 bytes
grep "Building util-core" site.log | wc -l: 130
FYI: util-core is the name of a module that all other modules depend on directly or transitive.
Besides in the 2.3 build only 1 of the 44 lines with "[INFO] Building util-core" is followed with
[INFO] task-segment: [site:stage]
All other 43 are followed by some — and then
[INFO] No goals needed for project - skipping
The extra lines in the 2.4 build are followed with some ---- and then
[INFO] [resources:resources]
...
Please also note that the maven logfile is totaly unreadable since you have no clue where a recursive invocation starts and ends. This is more an MNG issue, however...