maven-git-versioning-extension icon indicating copy to clipboard operation
maven-git-versioning-extension copied to clipboard

specifying version from a property does not work anymore

Open mach-wkl opened this issue 6 months ago • 0 comments
trafficstars

We have a project with a parent pom specifying its version via a revision property and and some submodules specifying their version via that same property. This works up to maven-git-versioning-extension 5.2.1, but not anymore with 6.0.0 up to 9.10.2. We would like this to work again.

relevant parts of parent pom:

<version>${revision}</version>
<properties>
    <revision>1.2.3</revision>
</properties>

relevant parts of module poms:

  <parent>
    <version>${revision}</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

"works" means the poms generated and installed contain <version>1.2.3</version>.

"does not work" means the poms generated and installed contain <version>${revision}</version> instead.

If necessary, I can provide minimal reproducers with either maven-git-versioning-extension.xml format.

(Also, I think this is something entirely different from #313.)

mach-wkl avatar May 15 '25 14:05 mach-wkl