[ http://jira.codehaus.org/browse/MNG-4740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4740. ---------------------------------- Resolution: Fixed Fix Version/s: 3.0-beta-2 Assignee: Benjamin Bentmann Applied in [r979808|http://svn.apache.org/viewvc?view=revision&revision=979808], thanks! > Maven hangs with big aggregators with lots of inter-modules dependencies > ------------------------------------------------------------------------ > > Key: MNG-4740 > URL: http://jira.codehaus.org/browse/MNG-4740 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Bootstrap & Build > Affects Versions: 3.0-beta-1 > Reporter: Vincent Latombe > Assignee: Benjamin Bentmann > Fix For: 3.0-beta-2 > > Attachments: hangs.patch > > > Hello, > On my main aggregator (~280 modules, lots of inter-modules dependencies), I > noticed that since 3.0-beta-1, maven hangs after displaying the list of > modules to build. The problem was not occurring with alpha-7. > After investigation, it seems that with the introduction of parallel build in > beta-1, the whole list of module dependencies is computed at the beginning of > the build (see > http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java?r1=931884&r2=935334&diff_format=h) > It turns out that this calculation, done inside > DefaultProjectDependencyGraph, is very unefficient : if a module is > referenced n times, its dependencies will be computed n times. The attached > patch solves the problem by computing the dependency tree for a given > projectId only once. -- 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