Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3657

Ampersand characters cannot be used in profiles.xml (XML parsed twice)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.9
    • None
    • Profiles
    • None
    • OS X (Leopard), Ubunut 8.04

    Description

      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).

      Attachments

        1. stacktrace.txt
          4 kB
          Alexey Maslov

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              malex Alexey Maslov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: