maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Commented: (MNG-3662) Ampersand in Windows username problem
Date Tue, 09 Sep 2008 20:57:49 GMT


Benjamin Bentmann commented on MNG-3662:

>From a mail Artur sent me today I got this snippet from his POM (I asked him to attach
it here for further inspection, too):

IIRC, the POM is parsed once, then serialized back into a string, this string is then interpolated
and the result is parsed again into a Maven model. Apparently during serialization into string
form, the original CDATA section markers are lost such that the second parsing step after
interpolation is sensitive to XML metacharacters.

I am too familar with the POM interpolation but maybe we could just make the MavenXpp3Writer
always wrap text with CDATA sections (if requested via some flag). This way, the interpolator
doesn't need to care about XML escaping but can safely insert replacement values for the expressions.

> Ampersand in Windows username problem
> -------------------------------------
>                 Key: MNG-3662
>                 URL:
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista Small Business
>            Reporter: Artur Smiejowski
>             Fix For: 2.0.11
>         Attachments: escape-shell-chars.patch
> Halo!
> Maven don't work when In Windows user has ampersand in the name for example username=Tom&Jerry.
Windows allows usernames like this, but Maven treat ampersand in the name of users main folder
as a part of some url (?) or something ... and cannot get path properly. Windows do not allow
to change username with all user's foldernames.
> Artur

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message