[MNG-8672] Maven 4 CLI substitutes variable when single quoted
Alexis Tual opened MNG-8672 and commented
When executing this command line:
placeholder=foo mvn clean verify '-DsomeProp=${placeholder}'
Then we get:
-
Maven 3:
somePropequals to${placeholder} -
Maven 4.0.0-rc-4-SNAPSHOT (5426073a3655278e58f8a4178faae335b1544fc0) :
somePropequals tofoo
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.
Affects: 4.0.0-rc-4
Alexis Tual commented
I've fixed the bug description to reflect what we see in our regression tests. We don't know if it's a use case or not; we can adapt our tests, but we just wanted to report this regression.
@michael-o What is the state here? Can this be fixed for the upcoming Maven 4 RC version as it's a regression?
@michael-o What is the state here? Can this be fixed for the upcoming Maven 4 RC version as it's a regression?
I can't tell you. I stopped working on Maven Core more than a year ago and lost complete track.
@michael-o What is the state here? Can this be fixed for the upcoming Maven 4 RC version as it's a regression?
@gnodet @cstamas any insights on this?