You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/08/06 06:15:26 UTC

[jira] Updated: (MNG-3657) Ampersand characters cannot be used in profiles.xml (XML parsed twice)

     [ http://jira.codehaus.org/browse/MNG-3657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3657:
------------------------------

    Fix Version/s: 2.0.x

does &amp; work?

> Ampersand characters cannot be used in profiles.xml (XML parsed twice)
> ----------------------------------------------------------------------
>
>                 Key: MNG-3657
>                 URL: http://jira.codehaus.org/browse/MNG-3657
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>         Environment: OS X (Leopard), Ubunut 8.04
>            Reporter: Marcus Spiegel
>             Fix For: 2.0.x
>
>         Attachments: stacktrace.txt
>
>
> It is not possible to use ampersand characters in the profiles.xml because this is evaluated twice.
> My case:
> In my profiles.xml, I specify a database connection URL for MySQL where the ampersand character is
> used for separating connection parameters:
> jdbc:mysql://localhost/myproject?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf8
> Because of the XML format, amperands are specified as "&amp;". However, this results in an exception (see attached
> excerpt of the stack trace). Is is also not possible to specify the URL in a CDATA section (or even in a combination
> of &amp; and CDATA).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira