Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6020

Maven fails to detect pom.xml XML syntax error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.5.0
    • Component/s: core
    • Labels:
      None
    • Environment:
      Mac OS X

      Description

      I had a typo in my POM: there was an extra trailing </project> tag in the XML. This made the POM not be valid XML.

      Maven did not detect this error. While that may seem like a feature, it's really a bug, in particular because Maven will also happily deploy this invalid XML file.

      It led to this interesting situation which had us scratching our heads for a while; see https://issues.sonatype.org/browse/OSSRH-22411 for details.

      Recommendation: maven should throw an error if pom.xml is not valid XML.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                archie172 Archie Cobbs
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: