)]}'
{
  "commit": "7d6fd870aaa07478705943e00a4d3c770c77eb68",
  "tree": "72a7eeeeb85a1cd99c81ed2fb32895f2468c2d0f",
  "parents": [
    "ef52b3052b6da658688df7495d72c3a372c177be"
  ],
  "author": {
    "name": "Guillaume Nodet",
    "email": "gnodet@gmail.com",
    "time": "Tue Nov 18 17:46:56 2025 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 18 17:46:56 2025 +0100"
  },
  "message": "Fix BOM packaging in consumer POMs (#11427)\n\nThis commit addresses two issues with BOM (Bill of Materials) handling in consumer POMs:\n\n1. BOM packaging not transformed to POM in consumer POMs:\n   When a project uses packaging\u003dbom, the consumer POM was incorrectly\n   retaining this packaging type. Since \u0027bom\u0027 is not a valid packaging\n   type in Maven 4.0.0 model, this caused errors when the consumer POM\n   was used. The fix ensures that BOM packaging is always transformed\n   to \u0027pom\u0027 in consumer POMs, regardless of whether flattening is enabled.\n\n2. Dependency versions preserved in dependencyManagement:\n   The effective model already contains resolved versions for dependencies\n   in dependencyManagement sections. The fix ensures these versions are\n   properly preserved in the consumer POM for both flattened and\n   non-flattened BOMs.\n\nChanges:\n- Modified DefaultConsumerPomBuilder.build() to detect BOMs based on\n  original packaging and handle them appropriately\n- Added buildBomWithoutFlatten() method to handle BOMs when flattening\n  is disabled, using the raw model but still transforming packaging\n- Added integration test to verify both issues are fixed\n\nFixes issues reported in:\nhttps://lists.apache.org/thread/41q40v598pd8mr32lmgwdfb2xm7lzm6l",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "40385f08aaecf36a4ab25b91d1bd2120b51025ec",
      "old_mode": 33188,
      "old_path": "impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java",
      "new_id": "6f6ff80abec16c94d40e4e76905edf01db6a9ede",
      "new_mode": 33188,
      "new_path": "impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "81efacfdeda0cf6021c9af37f3529cab1dae053d",
      "new_mode": 33188,
      "new_path": "its/core-it-suite/src/test/java/org/apache/maven/it/MavenITgh11427BomConsumerPomTest.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8b83130b30d11e29f0b3256ef27a64fe07cc9ed0",
      "new_mode": 33188,
      "new_path": "its/core-it-suite/src/test/resources/gh-11427-bom-consumer-pom/bom/pom.xml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e90f5c3bb31b40d7de79d56c4699a0653dc28c50",
      "new_mode": 33188,
      "new_path": "its/core-it-suite/src/test/resources/gh-11427-bom-consumer-pom/module/pom.xml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "08d3c3babdb6d594e117c90f8f1a8c2d49e40c52",
      "new_mode": 33188,
      "new_path": "its/core-it-suite/src/test/resources/gh-11427-bom-consumer-pom/pom.xml"
    }
  ]
}
