On Mon, Sep 12, 2011 at 1:46 PM, Laird Nelson <[email protected]> wrote:
> Somewhat more alarmingly, it looks like leading and trailing whitespace is > trimmed as well. So: > > <someConfigurationElement> Hello! </someConfigurationElement> > > ...is trimmed and becomes simply: > > Hello! > > ...in my code (no leading or trailing space). > I've filed http://jira.codehaus.org/browse/PLX-461 to track this; it may very well be in the wrong place or the wrong project. The problem shows up as well by simply running mvn help:effective-pom, so no test case is needed. Just put a fragment like this in any plugin stanza: <someConfigurationElement> Hello! </someConfigurationElement> ...and then run mvn help:effective-pom, and you'll see: <someConfigurationElement>Hello!</someConfigurationElement> ...in the output. This is true whether you use CDATA, literal values, entities, or the xml:space="preserve" attribute. Best, Laird -- http://about.me/lairdnelson
