[ 
https://jira.codehaus.org/browse/MNG-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated MNG-5380:
-------------------------------

    Fix Version/s: 3.0.6

> Cannot preserve whitespace in Maven plugin configuration
> --------------------------------------------------------
>
>                 Key: MNG-5380
>                 URL: https://jira.codehaus.org/browse/MNG-5380
>             Project: Maven
>          Issue Type: New Feature
>          Components: Plugin API
>    Affects Versions: 2.0.9, 2.2.1, 3.0, 3.0.4
>            Reporter: Laird Nelson
>            Assignee: Herve Boutemy
>             Fix For: 3.0.6, 3.1.0-alpha-1
>
>
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to