Affected version
3.9.16 (4.0 as well)
Bug description
Hello,
If you run run mvn --define 'revision=1.0-SNAPSHOT --version`, it runs fine and displays the version.
now, if you add the define to the .mvn/maven.config file:
--define 'revision=1.0-SNAPSHOT'
then, running mvn --version will crash displaying this (edited) help message:
Unable to parse maven.config file options: Unrecognized option: --define 'revision=1.0-SNAPSHOT'
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
(...)
-D,--define <arg> Define a user property
(...)
Note: the -D variant is accepted in maven.config.
This seems to indicate that option parsing might not be aligned between the cli arguments and the maven.config file.
Affected version
3.9.16 (4.0 as well)
Bug description
Hello,
If you run run
mvn --define 'revision=1.0-SNAPSHOT--version`, it runs fine and displays the version.now, if you add the define to the
.mvn/maven.configfile:then, running
mvn --versionwill crash displaying this (edited) help message:Note: the
-Dvariant is accepted inmaven.config.This seems to indicate that option parsing might not be aligned between the cli arguments and the
maven.configfile.