[
https://issues.apache.org/jira/browse/MRESOLVER-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16885618#comment-16885618
]
Tibor Digana commented on MRESOLVER-7:
--------------------------------------
[~hwellmann]
We have to revert this feature in resolver and resolver:1.4.0 in Maven. It
should be reviewed in a separate branch.
As an explanation, our Maven builds started failing after resolver:1.4.0 has
been applied.
To be unbiased and fully logical, I investigated the issue and the feature on
ASF Slack. It was me who found several problems in the code, root cause of
hanging Maven and deadlock of thread-resources starvation, problems with
thread-unsafe classes, overrided objects across threads, one unclear part in
the algorithm. And I also found that the algorithm crashed 11 unit tests in
{{maven-resolver}} after i removed ThreadPoolExecutor (in a playgrounded
non-master branch) and thus made it single-threaded.
I am sorry and not glad to say these things, but I would like you and ASF Maven
to make code review of this feature, where every question and line must be
clarified. Are you open for attending in such code review?
I may copy paste the text from Slack regarding our findings.
But currently we are responsible to solve our internal problems with failing
builds.
The Jenkins builds have been failing over one month!
> Download dependency POMs in parallel
> ------------------------------------
>
> Key: MRESOLVER-7
> URL: https://issues.apache.org/jira/browse/MRESOLVER-7
> Project: Maven Resolver
> Issue Type: Improvement
> Affects Versions: Aether 1.0.2
> Reporter: Harald Wellmann
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 1.4.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> h3. Background
> When building a project with dependencies not yet available in the local
> repository, I noticed that Maven 3.3.9/Aether 1.0.2 first downloads the
> dependency POMs _sequentially_ and then proceeds downloading the dependency
> JARs with up to 5 threads _in parallel_.
> Due to this, when first building a project with a large number of
> dependencies, downloading a large number of small POMs may take a lot longer
> than downloading the much larger JARs, or even longer than building the
> project itself, especially when a repository manager is used which increases
> the download latency.
> h3. Enhancement
> Download POMs of (transitive) dependencies in parallel to significantly speed
> up initial builds of large projects.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)