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

Resolver in Maven 3.9+ no longer retries on a conection failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.0
    • 3.9.1
    • None

    Description

      It looks resolver in Maven 3.9+ no longer retries on a connection failure.

       

      The Wagon transport configures the internal HTTP client for retries: https://github.com/apache/maven-wagon/blob/88e8574c69d83e6a658fcd2ad10f3f80926b8840/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java#L560

       

      The Native transport does not do that: https://github.com/apache/maven-resolver/blob/97dfd1c2b9deb15734d5e401807e55cd0498332a/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java#L190-L200

       

      In environments where idle connection connections are killed, Maven 3.9+ often fails to resolve/download artefacts. A typical example is Azure Pipelines.

       

      Consider exposing configuration options to re-enable retries, perhaps even retry by default as it was the case with Wagon.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              jerrinot Jaromir Hamala
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: