Misplaced text contents in root element of POM is not rejected by parser
------------------------------------------------------------------------
Key: MNG-4644
URL: http://jira.codehaus.org/browse/MNG-4644
Project: Maven 2 & 3
Issue Type: Bug
Components: POM
Affects Versions: 3.0-alpha-6, 2.2.1, 2.0.11
Reporter: Benjamin Bentmann
Priority: Minor
The POM below is invalid
{code:xml}
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.mng</groupId>
<artifactId>test</artifactId>
This text shouldn't have been allowed...
<version>0.1</version>
</project>
{code}
yet it's happily parsed/installed/deployed by many Maven versions. Despite
using strict mode for the parser (see also MNG-3645), a subtle bug in the
Modello generated XPP3 parser makes it accept misplaced text within the root
element (whereas it's properly rejected in other elements).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira