gnodet opened a new pull request, #12655: URL: https://github.com/apache/maven/pull/12655
## Summary - Add `addLocationInformation` field to `XmlReaderRequest` interface and builder, defaulting to `true` for backwards compatibility - Wire it through `DefaultModelXmlFactory.doRead()` to `MavenStaxReader.setAddLocationInformation()` - Propagate `request.isLocationTracking()` in `DefaultModelBuilder.doReadFileModel()` so the generated `MavenStaxReader` skips all 97 `InputLocation.of()` allocations per POM when location tracking is disabled - Propagate `locationTracking` from the parent request to BOM import requests in `doLoadDependencyManagement()` so that project builds (which need location tracking) still get full location info from their BOMs Previously, `ModelBuilderRequest.isLocationTracking()` was only checked in one place (`DefaultDependencyManagementImporter`), while the XML parser always created `InputLocation` objects regardless of the flag. This connects the existing flag to the parser, making it actually effective. ## Test plan - [x] `mvn verify -pl impl/maven-impl` — all tests pass - [x] `mvn verify -pl impl/maven-core` — all tests pass, including `testLocationTrackingResolution` which verifies BOM dependency location tracking 🤖 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]
