Stefan Mueller created MNG-6418:
-----------------------------------
Summary: Parallel builds with empty local repository hang
Key: MNG-6418
URL: https://issues.apache.org/jira/browse/MNG-6418
Project: Maven
Issue Type: Bug
Affects Versions: 3.5.2
Environment: Build on Windows or Linux (happens on both environments)
Java 1.8.0_161
Company central Maven repo is Nexus Repository Manager
Reporter: Stefan Mueller
Attachments: maven-3.5.2-hang-dump.txt
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 artifacts
from a central repo.
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)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)