Alexis Tual created MNG-8672:
--------------------------------

             Summary: 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


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:  {{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)

Reply via email to