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

                 Key: MNG-4625
                 URL: http://jira.codehaus.org/browse/MNG-4625
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Settings
    Affects Versions: 3.0-alpha-7
            Reporter: Benjamin Bentmann


Using a {{settings.xml}} like
{code:xml}
<settings>
  <profiles>
    <profile>
      <id>test</id>
      <properties>
        <jdbc.url>${test.prop}</jdbc.url>
      </properties>
    </profile>
  </profiles>
</settings>
{code}
the invocation
{noformat}
mvn validate -D "test.prop=&x=y"
{noformat}
fails with
{noformat}
[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)  @
{noformat}


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

        

Reply via email to