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

Interpolation of settings.xml fails if an expression's value contains XML markup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-7
    • 3.0-beta-1
    • Settings
    • None

    Description

      Using a settings.xml like

      <settings>
        <profiles>
          <profile>
            <id>test</id>
            <properties>
              <jdbc.url>${test.prop}</jdbc.url>
            </properties>
          </profile>
        </profiles>
      </settings>
      

      the invocation

      mvn validate -D "test.prop=&x=y"
      

      fails with

      [ERROR] Error executing Maven.
      [ERROR] 1 problem was encountered while building the effective settings
      [ERROR] Failed to interpolate settings: entity reference name can not contain character =' (position: START_TAG seen ...<jdbc.url>&x=... @7:22)  @
      

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: