Skip to content

[MNG-8672] Maven 4 CLI substitutes variable when single quoted #10421

@jira-importer

Description

@jira-importer

Alexis Tual opened MNG-8672 and commented

When executing this command line:

 

placeholder=foo mvn clean verify '-DsomeProp=${placeholder}'

 

Then we get:

  • Maven 3:  someProp equals to ${placeholder}

  • Maven 4.0.0-rc-4-SNAPSHOT (5426073) :  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


Affects: 4.0.0-rc-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions