Skip to content

Support Maven 3.9.x to download dependency POMs in parallel #1169

@Eskibear

Description

@Eskibear

Maven 4.0.0-alpha-3 has been released.

One of the significant improvements is downloading poms in parallel, which has been shipped with maven-resolver-1.9.2, included in maven-4.0.0-alpha-3. It largely improves the performance when local maven repository is empty (common case for a new machine).

I tested with a simple spring-boot project, running mvn clean install with an empty local repository, ~85MB dependencies were downloaded and below are the time costs for different configs:

mvn 4.0.0-alpha-3

  • bf: 2'55''
  • df (default): 5'34''

mvn 3.8.6

  • df (only): 6'54''

You can download and try from: https://dlcdn.apache.org/maven/maven-4/4.0.0-alpha-3/binaries/
Add -Daether.dependencyCollector.impl=bf to enable parallel downloading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions