You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/11/26 13:21:03 UTC

[jira] Closed: (MNG-4918) MavenProject#clone() doubles active profiles

     [ http://jira.codehaus.org/browse/MNG-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4918.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.2
         Assignee: Benjamin Bentmann

Patch applied in [r1039327|http://svn.apache.org/viewvc?view=revision&revision=1039327].

> MavenProject#clone() doubles active profiles
> --------------------------------------------
>
>                 Key: MNG-4918
>                 URL: http://jira.codehaus.org/browse/MNG-4918
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0, 3.0.1
>         Environment: all
>            Reporter: Sebastian Annies
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0.2
>
>         Attachments: fix.patch, test.patch
>
>
> 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 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira