[ http://jira.codehaus.org/browse/MRELEASE-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann reopened MRELEASE-221: ---------------------------------------- This was indeed reproducible: MRELEASE-254. The problem is that the XML declaration and anything else outside of the root element depend on a fragile detection algo using {{indexOf()}} on the serialized DOM. If this detection fails, the stuff is simply dropped from the resulting POM. > XML header missing in modified POM after release:prepare > -------------------------------------------------------- > > Key: MRELEASE-221 > URL: http://jira.codehaus.org/browse/MRELEASE-221 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Affects Versions: 2.0-beta-5 > Environment: Windows XP, CVSNT, Eclipse > Reporter: Alain Coetmeur > > When release plugin modifies the POM to prepare a new release, > the new file does not containt the XML header > <?xml version="1.0" encoding="ISO-8859-1"?> > it cause problems with XML editors who ignore the encoding and breaks all > unusual characters. > some XML tools also don't accept XML files without headers... -- 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