Skip to content

Strict XML parser breaks Maven backward compatibility #238

Closed
@cstamas

Description

@cstamas

This change:
761ac42

The p-u XML parser is made stricter, and adhere standard, which is fine, but there is a problem: older Maven versions were able to parse, hence build and deploy projects that used POMs that does not adhere to strict(er) XML parsing. If it happens for user to pick up such POM (ie. among transitive dependencies), there is no breakout for user from that situation.

Also, see issue https://issues.apache.org/jira/browse/MNG-7697

Proposal: add some "lax-standards" switch for this. I agree that project POMs should fully adhere to XML 1.0 (so MNG-7697 is IMHO a fluke), but dependency POMs should be parsed with "laxed" standards, just like dependency POMs validation is laxed as well, given they are probably built and deployed with Maven versions pre-3.9.0, and MAY contain invalid characters as those versions would allow emojis in comments...

ping @belingueres

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions