gnodet opened a new pull request, #12480: URL: https://github.com/apache/maven/pull/12480
## Summary - Replace raw `XMLInputFactory.newFactory()` with `XmlService.newXMLInputFactory()` in `DefaultModelXmlFactory.extractModelId` to use the same hardened factory (DTD and external entity support disabled) that the rest of the codebase uses. - Remove the unused `InputFactoryHolder` inner class. - Add test for POM parsing with DOCTYPE declarations. ## Test plan - [x] Existing `DefaultModelXmlFactoryTest` tests pass (9/9) - [x] New `testReadPomWithDoctypeDeclaration` test verifies graceful handling of DOCTYPEs during the pre-parse 🤖 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]
