I want to specify the expression to evaluate on the command line, so the plugin does not go into interactive mode.
According to the docs, the expression
parameter should do the trick.
I tried:
mvn help:evaluate -Dexpression=project.groupId
and
mvn help:evaluate -Dexpression=xxx
but the expression
is ignored, and the plugin enters interactive mode, as undesired.
Curiously, the following works just fine:
mvn help:describe -Dplugin=help
("Curiously" because it is the same plugin, and I'm following the same convention for specifying parameters, but one time it works, and the other time it does not.)