Background:
I'm using maven 3.5 and have a 'master' aggregator project which has 4 modules (uses both aggregation and inheritance).
I also have 30 separate child projects, both single and multi-module, which each inherit from one of those 4 modules.
Problem:
I'd like to use ${revision}
in the <parent><version>
tag of the child projects but what I observe is maven trying to resolve the parent before expanding ${revision}
(to the value specified in <properties><revision>
). This results in maven being unable to resolve the parent since it's looking for the literal "${revision}" version of the parent project.
Questions
Is it true that
${revision}
does not work for cross project inheritance ?is there any work around ? (while trying to avoid maven-versions plugin)
Note: I'm able to use ${revision}
without any problems in a single multi-module project - that's not the issue.
I just ran into the same issue, but it works for me with maven 3.8.2.