Skip to content

Conversation

@ggkochanski
Copy link

Overlapping parameter expression for goal help:evaluate by default:
handleResponse("${" + expression + "}", output);

limits usage for more complex expressions, e.g.
mvn help:evaluate -Dexpression='project_version=${project.version}'

which currently fails with message:
null object or invalid expression

Skipping the overlapping when an expression already contains string '${' removes this limitation and allows to define expression in the same way as in the interactive mode:
echo 'project_version=${project.version}'|mvn help:evaluate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant