Maven 2 & 3

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

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

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.

Activity

Hide
Benjamin Bentmann added a comment -

Fixed in r739318.

Show
Benjamin Bentmann added a comment - Fixed in r739318.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: