You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ascheman (via GitHub)" <gi...@apache.org> on 2026/07/19 17:43:58 UTC

[PR] [Backport 4.0.x] Avoid IllegalStateException on duplicate profile ids in DefaultModelBuilder [maven]

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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Backport 4.0.x] Avoid IllegalStateException on duplicate profile ids in DefaultModelBuilder [maven]

Posted by "ascheman (via GitHub)" <gi...@apache.org>.
ascheman merged PR #12506:
URL: https://github.com/apache/maven/pull/12506


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org