Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0, 3.0.1
-
Fix Version/s: 3.0.2
-
Component/s: None
-
Labels:None
-
Environment:all
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
The error occured in our Project with more than 60 submodules and aggregating JavaDoc. Due to the forking of the LifeCycle many clones of the MavenProject object seem to be performed. Since MavenProject#clone doubles the entries in the list of active profiles we start with one active profile and after a few dozen clones the list of active profiles exceeds 10.000.000 elements. This will than kill the VM by OOME.
mavenProject.getActiveProfiles().size() == 1
mavenProject.clone().getActiveProfiles().size() == 2
mavenProject.clone().clone().getActiveProfiles().size() == 4
and so on
Activity
Sebastian Annies
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | fix.patch [ 52386 ] |
Benjamin Bentmann
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Benjamin Bentmann [ bentmann ] | |
| Fix Version/s | 3.0.2 [ 16952 ] | |
| Resolution | Fixed [ 1 ] |
A fix for the clone problem