[
https://issues.apache.org/jira/browse/MNG-8672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17940731#comment-17940731
]
Michael Osipov commented on MNG-8672:
-------------------------------------
I knew that the offending change is a problem.
> Maven 4 CLI substitutes variable when single quoted
> ---------------------------------------------------
>
> Key: MNG-8672
> URL: https://issues.apache.org/jira/browse/MNG-8672
> Project: Maven
> Issue Type: Bug
> Components: Bootstrap & Build
> Affects Versions: 4.0.0-rc-4
> Reporter: Alexis Tual
> Priority: Major
>
> When executing this command line:
>
> {code:java}
> placeholder=foo mvn clean verify '-DsomeProp=${placeholder}'{code}
>
> Then we get:
> - Maven 3: {{someProp}} equals to an empty string
> - Maven 4.0.0-rc-4-SNAPSHOT (5426073a3655278e58f8a4178faae335b1544fc0) :
> {{someProp}} equals to {{foo}}
> The single quote implies the variable should not be substituted, in that
> sense Maven 3 seems to be the correct behavior.
> It's due to this
> [change|https://github.com/apache/maven/commit/335ba3941c2804704ef11598eb512c305045ab58#diff-7338f8ec18a686d67b8ce118f13744dfd6bb26e92b84c73c8043a946a72283fbR241-R262].
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)