You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2012/11/17 18:27:13 UTC

[jira] (MNG-5380) Cannot preserve whitespace in Maven plugin configuration

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

Herve Boutemy moved PLX-461 to MNG-5380:
----------------------------------------

     Complexity: Intermediate
    Component/s:     (was: plexus-utils)
                 Plugin API
       Workflow: Maven New  (was: jira)
     Issue Type: New Feature  (was: Bug)
            Key: MNG-5380  (was: PLX-461)
        Project: Maven 2 & 3  (was: Plexus)
    
> 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
>            Reporter: Laird Nelson
>
> 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