[ 
https://issues.apache.org/jira/browse/MRESOLVER-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775754#comment-17775754
 ] 

wei cai commented on MRESOLVER-412:
-----------------------------------

[~cstamas] [~gnodet] 

MNG-5669 fix is firstly introduced in maven 4.x, right? I did not see such 
issue when running ITs in maven 3.9.x.

Where do you see ModelBuilder invoked on multiple threads? 

> 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
>             Fix For: 2.0.0
>
>
> 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)

Reply via email to