ascheman opened a new pull request, #12506:
URL: https://github.com/apache/maven/pull/12506

   Backport of #12419 to `maven-4.0.x` — clean cherry-pick of 67a94a1d926, no 
conflicts.
   
   This fixes the MNG-8418 (#10209) regression on the rc-6 line: POMs with 
duplicate profile ids (e.g. javafx ≤ 20 with its OS-named profiles) crash 
dependency collection with `IllegalStateException: Duplicate key` from 
`Collectors.toMap` in `DefaultModelBuilder.getProfileActivations`. Maven 3 
accepts these POMs; duplicate-id diagnostics remain with the validator.
   
   This was also the root cause of the `massembly-969` IT failure in 
maven-assembly-plugin's Maven 4 lane (apache/maven-assembly-plugin#1311) before 
the plugin worked around it by bumping to javafx 26 
(apache/maven-assembly-plugin#1325) — real projects depending on older javafx 
POMs still hit it on rc-5.
   
   Verified on this branch: `DefaultModelBuilderTest` 13/13 green (includes the 
new duplicate-profile-ids regression test).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to