Is it possible to escape the interpolation of the maven property when the string of the property value is the same as the property name?

advertisements

I am trying to define a maven property:

<properties>
  <property>$${property}</property>
</property>

Maven tries to expand ${property} and I get the following error:

[ERROR]     Resolving expression: '${property}': Detected the
     following recursive expression cycle in 'property': [property] -> [Help 2]

I have tried all sorts of combinations to try to escape it, without success:

$$
\$
\$$

etc etc

Note: the interpolation is escaped when the property value is not the same as the name.

Is this possible?


${property} should work fine.