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
Attachments
Issue Links
- duplicates
-
MNG-6323 Deadlock in multithreaded dependency resolution
- Closed