maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6020) Maven fails to detect pom.xml XML syntax error
Date Sun, 15 May 2016 10:04:12 GMT

    [ https://issues.apache.org/jira/browse/MNG-6020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283820#comment-15283820
] 

Michael Osipov commented on MNG-6020:
-------------------------------------

Sample please.

> Maven fails to detect pom.xml XML syntax error
> ----------------------------------------------
>
>                 Key: MNG-6020
>                 URL: https://issues.apache.org/jira/browse/MNG-6020
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.5
>         Environment: Mac OS X
>            Reporter: Archie Cobbs
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message