[ https://jira.codehaus.org/browse/MNG-5125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=273702#comment-273702 ]
Vivin Paliath commented on MNG-5125: ------------------------------------ I'm also seeing this issue, although my comparison was between 3.0b1 and 3.0.3. I don't have much to add to Patrick's excellent analysis. I can confirm that the bottleneck is in the same area that Patrick identified. > Regression: mvn 3.0.3 is extreemly slow with a large number of dependencies > --------------------------------------------------------------------------- > > Key: MNG-5125 > URL: https://jira.codehaus.org/browse/MNG-5125 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Artifacts and Repositories, Inheritance and > Interpolation, Performance > Affects Versions: 3.0.3 > Environment: Java: 1.6.0_24-b07 > Maven: 3.0.3 > RHEL6: 2.6.32-131.2.1.el6.x86_64 > Reporter: Patrick Staton > Attachments: 302tree.out, 303tree.out, mvn302profile.html, > mvn303profile.html > > > I am pretty sure that > [AETHER-82|https://issues.sonatype.org/browse/AETHER-82] / rev > [a537899308f3d22df5509e33628a0012ba912293|https://github.com/sonatype/sonatype-aether/commit/a537899308f3d22df5509e33628a0012ba912293] > has caused maven 3.0.3 to be extremely slow in our build. > Profiling shows that when we build one of our projects with many > dependencies, > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process is being > called >50000 times in maven 3.0.3 whereas it is called 335 times in maven > 3.0.2. > Attached is the html output from a netbeans profiling session of the same > build with maven 3.0.2 and maven 3.0.3. I stopped the maven 3.0.3 build after > ~5 mins of being stuck at the "[INFO] Building many-deps-project > 1.2.3.4-SNAPSHOT" step. > A 'mvn dependency:tree' is identical between the two except that it takes > about 10 mins to run in 3.0.3. I have attached the output. If you need me to > do a better job censoring the output, ie make the project names unique, let > me know. > "webapp-jar" type dependencies are a custom artifact handler: > {code} > <component> > <role>org.apache.maven.artifact.handler.ArtifactHandler</role> > <role-hint>webapp-jar</role-hint> > > <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation> > <configuration> > <classifier>webapp</classifier> > <type>webapp-jar</type> > <extension>jar</extension> > <language>java</language> > <addedToClasspath>false</addedToClasspath> > </configuration> > </component> > {code} > We have "java-source" dependencies because we use GWT. > I cannot send you the actual pom files. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira