[ https://issues.apache.org/jira/browse/MRESOLVER-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775501#comment-17775501 ]
Tamas Cservenak commented on MRESOLVER-412: ------------------------------------------- CI reported this: different output (due concurrency?) but still parents only: {noformat} Error: Failures: Error: MavenITmng5669ReadPomsOnce.testWithBuildConsumer:114->AbstractMavenIntegrationTestCase.assertTrue:359 Duplicate items: org.apache.maven:maven:3.2.5 org.apache.commons:commons-parent:52 org.apache.maven:maven-parent:25 ==> expected: <true> but was: <false> Error: MavenITmng5669ReadPomsOnce.testWithoutBuildConsumer:78->AbstractMavenIntegrationTestCase.assertTrue:359 Duplicate items: org.codehaus.plexus:plexus:3.3.1 org.codehaus.plexus:plexus:10 org.sonatype.spice:spice-parent:17 ==> expected: <true> but was: <false> [INFO] Error: Tests run: 899, Failures: 2, Errors: 0, Skipped: 34 {noformat} > 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)