I want to specify an expression for calculation on the command line, so the plugin does not go into interactive mode.
According to docs, the parameter expressionshould do the trick.
I tried:
mvn help:evaluate -Dexpression=project.groupId
and
mvn help:evaluate -Dexpression=xxx
but is expressionignored, and the plugin goes online as unwanted.
Curiously, the following works very well:
mvn help:describe -Dplugin=help
(“Curious,” because it's the same plugin, and I follow the same convention for specifying parameters, but once it works, and another time it doesn't.)
source
share