maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
Subject [jira] [Commented] (MNG-5900) early interpolation: support ${this.*} as expression
Date Fri, 01 Apr 2016 21:54:25 GMT


Robert Scholte commented on MNG-5900:

What's misleading about it? It will be replaced with its value within this pom.xml, whereas
{{$\{project.*\}}} will be replaced with the effective project value. The comparison with
Java's 'this' is quite good, hence that's why I suggested it.
I don't like the idea of different delimiters, it'll make parsing extra complex and I don't
see advantage of it. Introducing a new variable makes more sense and {{this}} has been the
best name so far.

> early interpolation: support ${this.*} as expression
> ----------------------------------------------------
>                 Key: MNG-5900
>                 URL:
>             Project: Maven
>          Issue Type: New Feature
>          Components: Inheritance and Interpolation
>            Reporter: Robert Scholte
>             Fix For: Issues to be reviewed for 4.x
> Right now we have $\{project.\*} which always interpolates values based on the final
project: "classical" interpolation is "late" interpolation. So it is not possible that parent
poms can lock values, ie avoid child poms override. By adding $\{this} for "early" interpolation,
it will be possible to have intermediate interpolation.
> If a pomfile depends on a parent, that parent will first resolve all $\{this.\*} values
for itself. Once the fully inherited pom is there, all $\{project.\*} will be resolved. 

This message was sent by Atlassian JIRA

View raw message