> -----Original Message----- > From: Laird Nelson [mailto:[email protected]] > Sent: Monday, September 12, 2011 14:11 > To: Maven Users List > Subject: [maven] Re: Preserving whitespace when configuring plugin? > > 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.
This might be related to the booleans issue I was having too. http://jira.codehaus.org/browse/MNG-5166, it too was a result of stripping away whitespace and tags enmass. > > 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 > -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
