Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5125

Regression: mvn 3.0.3 is extreemly slow with a large number of dependencies

    XMLWordPrintableJSON

Details

    Description

      I am pretty sure that AETHER-82 / rev 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:

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

      We have "java-source" dependencies because we use GWT.

      I cannot send you the actual pom files.

      Attachments

        1. mvn303profile.html
          808 kB
          Patrick Staton
        2. mvn302profile.html
          667 kB
          Patrick Staton
        3. 303tree.out
          17 kB
          Patrick Staton
        4. 302tree.out
          17 kB
          Patrick Staton

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              statop Patrick Staton
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: