ggkochanski commented on PR #132:
URL:
https://github.com/apache/maven-help-plugin/pull/132#issuecomment-3486430884
It appears that property expression
@Parameter(property = "expression")
private String expression;
is already resolved when it goes to `EvaluateMojo.execute()`
e.g. executing
-Dexpression='project_version=${project.version}'
causes that the value of injected parameter expression is already resolved:
`project_version=3.5.2-SNAPSHOT`
and overlapping it with ${} does not do any good 😢
It overlaps already resolved expression with '${}' and tries to handle
expression ${project_version=3.5.2-SNAPSHOT}, which fails with message
null object or invalid expression
However, the workaround exists :stuck_out_tongue:
passing property through additional parameter does the job, e.g.
`-Dexpression='project_version=$${ver_property}'
-Dver_property='{project.version}'`
outputs desired value:
`project_version=3.5.2-SNAPSHOT`
--
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]