jgitver / jgitver-maven-plugin

maven core extension to automatically define versions using jgitver & git tags
https://jgitver.github.io/
Other
159 stars 41 forks source link

Building via aggregator POM does not honor module's versions #124

Open fjakop opened 5 years ago

fjakop commented 5 years ago

version: 1.4.4

usage context:

Problem description:

When building several Maven projects - all with jgitver enabled - via aggregator POM (no jgitver there) the version numbers of the projects are not calculated and changed.

Rebroduce

--> versions of projects A and B are not changed

McFoggy commented 5 years ago

It is the maven extension mechanism that works only at the main level.
Did you tried with other core extensions to see if they are activated in sub-projects, my bet is no.

bondolo commented 4 years ago

The extension does not appear to be executed for the sub-projects. As you suggest, the extension mechanism appears to be activated only at the aggregator level.

bondolo commented 4 years ago

I have filed a Maven issue: MNG-6995

McFoggy commented 4 years ago

and I added some info on it to demo the problem, thanks.