Am 12.09.2011 20:18 schrieb "Jason Pyeron" <[email protected]>: > > > > -----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. >
This hit me too when I was trying to configure the commit message prefix of the release plugin to contain whitespace at the end, so it looks like "[some prefix] prepare for next development iteration". Best I could achieve was "[some prefix]_prepare for next development iteration", which is a bit ugly in my eyes. Would love to see it fixed. Best regards Ansgar > > > > 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] >
