You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/30 19:30:55 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 ]
Jason van Zyl updated MNG-3657:
-------------------------------
Fix Version/s: (was: 2.2.x)
3.0-alpha-7
> 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 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.9
> Environment: OS X (Leopard), Ubunut 8.04
> Reporter: Marcus Spiegel
> Fix For: 3.0-alpha-7
>
> 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&useUnicode=true&characterEncoding=utf8
> Because of the XML format, amperands are specified as "&". 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 & 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