Jiehong opened a new issue, #13092:
URL: https://github.com/apache/maven/issues/13092
### Affected version
3.9.16
### 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]