You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by sebb <se...@gmail.com> on 2011/09/09 17:33:03 UTC

Add SVN build info to jar manifests?

Over in Commons we just added the buildnumber-maven-plugin ([1]) to
the parent POM [2]
This allows one to add an entry to manifests of the form:

Implementation-Build: r1086677; 2011-09-09 16:19:05+0100

or, if the revision cannot be determined:

Implementation-Build: UNKOWN_REVISION; 2011-09-09 16:19:05+0100

Is this of interest?
It could be added as a default enabled profile which could then be
disabled if necessary (but plugin seems to run OK regardless of
whether SVN is present or not)

[1] http://mojo.codehaus.org/buildnumber-maven-plugin/
[2] https://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk/pom.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Add SVN build info to jar manifests?

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2011-09-09 at 16:33 +0100, sebb wrote:
> Over in Commons we just added the buildnumber-maven-plugin ([1]) to
> the parent POM [2]
> This allows one to add an entry to manifests of the form:
> 
> Implementation-Build: r1086677; 2011-09-09 16:19:05+0100
> 
> or, if the revision cannot be determined:
> 
> Implementation-Build: UNKOWN_REVISION; 2011-09-09 16:19:05+0100
> 
> Is this of interest?

Absolutely. It'd be quite helpful.

Oleg

> It could be added as a default enabled profile which could then be
> disabled if necessary (but plugin seems to run OK regardless of
> whether SVN is present or not)
> 
> [1] http://mojo.codehaus.org/buildnumber-maven-plugin/
> [2] https://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk/pom.xml
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org