You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/10/17 21:47:00 UTC

[jira] [Closed] (MRESOLVER-412) BF collector causes same model to be loaded up multiple times

     [ https://issues.apache.org/jira/browse/MRESOLVER-412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak closed MRESOLVER-412.
-------------------------------------
    Resolution: Fixed

This issue is not a resolver issue, but Maven Model Builder issue, handled in MNG-7615

> BF collector causes same model to be loaded up multiple times
> -------------------------------------------------------------
>
>                 Key: MRESOLVER-412
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-412
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: Resolver
>            Reporter: Tamas Cservenak
>            Priority: Major
>
> This bug probably affects all released versions of new BF collector.
> Symptom is that Maven with BF collector fails MavenITmng5669ReadPomsOnce both test methods. The IT verifies that POM XMLs are _read only once_ with and without "consumer POM" feature enabled. Both IT methods fail (so failure is irrelevant of consumer POM feature being enabled). Error consistently happens on each subsequent IT invokcation, whether empty or prepopulated local repo.
> Most probably cause: old DF was single threaded, while BF uses internally thread pool, that seemingly causes that same POM XML is loaded up multiple times as ModelBuilder is being asked multi threaded for different models by BF collector.
> Reproduce: either run MavenITmng5669ReadPomsOnce but modify the IT to enable DF (if using Maven w/ resolver 1.x) or build Maven 4 w/ Resolver 2 (default is BF).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)