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

Parallel builds with empty local repository hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.5.2
    • None
    • None
    • None
    • Build on Windows or Linux (happens on both environments)
      Java 1.8.0_161
      Company central Maven repo is Nexus Repository Manager

    Description

      Parallel builds of multi-module Projects using multiple threads (like mvn -T 5 clean install) usually run fine if most or all dependencies already exist in the local Maven repository.

      If the local Maven repository is empty, such builds will sporadically hang. The hang seems at random points but always related to downloading or uploading artifacts from/to a central repo (in our case a company-wide Nexus Repository Manager).

      Using Maven 3.2.5 there are no such issues!

      Parallel builds with an empty repository are especially important for the CI builds on Jenkins, as Jenkins uses a fresh new job-local repository for each build. This leads to most Jenkins build hang after upgrading from Maven 3.2.5 to 3.5.2.

      See the attached thread-dump while hanging (seems to be related to org.eclipse.aether.connector.basic.PartialFile$LockFile)

       

      Attachments

        1. maven-3.5.2-hang-dump.txt
          28 kB
          Stefan Mueller

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              stefan.mueller@zkb.ch Stefan Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: