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

Properties with the prefix project/pom are not interpolated from the properties section

    XMLWordPrintableJSON

Details

    Description

      For a POM snippet with

      <properties>
        <!-- source properties -->
        <project.theTestProperty>PASSED</project.theTestProperty>
        <pom.anotherTestProperty>PASSED</pom.anotherTestProperty>
        <!-- interpolation targets -->
        <projectProperty>${project.theTestProperty}</projectProperty>
        <pomProperty>${pom.anotherTestProperty}</pomProperty>
      </properties>
      

      the interpolation targets are not interpolated. Internally, the POM interpolator strips the project/pom prefix from the expression before querying the <properties> section instead of using the full expression for the property lookup.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: