[ https://jira.codehaus.org/browse/MNG-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313834#comment-313834 ]
Herve Boutemy edited comment on MNG-5380 at 11/18/12 7:01 AM: -------------------------------------------------------------- finally fixed MODELLO-263: Maven just needs updating Modello to 1.6 and plexus-utils to 3.0.9 (due to PLXUTILS-154) and the default space handling is unchanged, but you can force space preservation on specific elements by adding xml:space="preserve" was (Author: hboutemy): finally fixed MODELLO-263: Maven just needs updating Modello to 1.6 and plexus-utils to 3.0.9 (due to PLXUTILS-154) and the default space handling is unchanged, but you can force space preservation on specific fields by adding xml:space="preserve" > Cannot preserve whitespace in Maven plugin configuration > -------------------------------------------------------- > > Key: MNG-5380 > URL: https://jira.codehaus.org/browse/MNG-5380 > Project: Maven 2 & 3 > Issue Type: New Feature > Components: Plugin API > Affects Versions: 2.0.9, 2.2.1, 3.0, 3.0.4 > Reporter: Laird Nelson > Fix For: 3.1.0 > > > This bug may be filed in the wrong place; for that I apologize in advance. > My Maven plugin configuration (which I think is parsed and implemented by > Plexus) does not preserve leading or trailing (or only) whitespace content. > A (mapped-to-{{String}}) configuration element like this: > {noformat} > <suffix> Hello </suffix> > {noformat} > results in the string value "Hello" (no leading or trailing space). The same > value is produced by any one of the following constructions: > {noformat} > <suffix><![CDATA[ Hello ]]></suffix> > {noformat} > {noformat} > <suffix xml:space="preserve"> Hello </suffix> > {noformat} > I believe this is a shortcoming of the Plexus XML configuration machinery. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira