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
         Attachments: 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

        

Reply via email to