Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5380

Cannot preserve whitespace in Maven plugin configuration

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9, 2.2.1, 3.0, 3.0.4
    • 3.1.0-alpha-1
    • Plugin API
    • None

    Description

      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:

      <suffix>   Hello   </suffix>
      

      results in the string value "Hello" (no leading or trailing space). The same value is produced by any one of the following constructions:

      <suffix><![CDATA[   Hello   ]]></suffix>
      
      <suffix xml:space="preserve">   Hello   </suffix>
      

      I believe this is a shortcoming of the Plexus XML configuration machinery.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              ljnelson Laird Nelson
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: