Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.3
-
None
-
Java: 1.6.0_24-b07
Maven: 3.0.3
RHEL6: 2.6.32-131.2.1.el6.x86_64
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
Attachments
Issue Links
- is related to
-
MDEP-404 mvn 3.0.4 is extreemly slow with a large number of "import" dependencies.
- Closed