maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <>
Subject Re: CD versioning
Date Thu, 21 Jan 2016 19:42:13 GMT
Hi Benson,

you know that you can define the following properties since Maven 3.2.1[1]

${revision}, ${changelist} and ${sha1} which can be set outside from 
Maven via:

mvn -Drevision=1.2.3-SNAPSHOT ...

and you can use it:


in case of a multi module build you can also use it in the parent 
definition of the children...

but there does not exist some kind of jar which generates the far as i know...

Kind regards
Karl Heinz Marbaise


On 1/20/16 1:11 PM, Benson Margulies wrote:
> Some time ago, I recall some email about dynamic versioning; the idea
> being that all the <version/> elements in all the POMs of the project
> would look like <version>${version}</version>, and a jar dropped into
> the maven extensions directory would provide a component that would
> generate the version, perhaps from a git hash or something like that.
> Is there any doc around on how to set this up? Is it functional in
> 3.2.5?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message