You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Mueller (JIRA)" <ji...@apache.org> on 2018/05/30 09:11:00 UTC
[jira] [Updated] (MNG-6418) Parallel builds with empty local
repository hang
[ https://issues.apache.org/jira/browse/MNG-6418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Mueller updated MNG-6418:
--------------------------------
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)
was:
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)
> 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
> Priority: Blocker
> 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 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)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)