[
http://jira.codehaus.org/browse/MNG-4644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4644.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-alpha-7
Assignee: Herve Boutemy
Fixed in [r901885|http://svn.apache.org/viewvc?view=revision&revision=901885].
> 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: 2.0.11, 2.2.1, 3.0-alpha-6
> Reporter: Benjamin Bentmann
> Assignee: Herve Boutemy
> Priority: Minor
> Fix For: 3.0-alpha-7
>
>
> 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