Maven is still quite git unfriendly, unfortunately.

We used to have BuildNumber plugin (http://mojo.codehaus.org/
buildnumber-maven-plugin/create-mojo.html) in a Subversion based
project.
I don't think that works for Maven's Git SCM provider though.

Alternately, this plugin allows injecting timestamp (http://
code.google.com/p/maven-timestamp-plugin/) into manifest.mf.
This is crude, and far different from what we want (git commit hash),
but probably useful in identifying the unique build timestamp.

Thoughts?

/indrajit

On Aug 21, 12:32 pm, David Bernard <[email protected]> wrote:
> I don't know how to grab git fingerprint, but I can modify the pom.xml
> to add a timestamp in the Manifest
>    
> <Implementation-Version>${project.version}-${buildNumber}</Implementation-Version>
>
> Are you ok ?
>
> On Wed, Aug 19, 2009 at 18:26, David
>
> Pollak<[email protected]> wrote:
>
> > On Wed, Aug 19, 2009 at 5:44 AM, Jeppe Nejsum Madsen <[email protected]>
> > wrote:
>
> >> Hi,
>
> >> When living on the bleeding edge (i.e. 1.1-SNAPSHOT) it is sometimes
> >> difficult to figure out which version of lift is in use and deployed.
>
> >> LiftRules.liftVersion only returns 1-1.0-SNAPSHOT.
>
> >> I could probably try to correlate liftBuildDate with hudson and github but
> >> this seem error prone :-)
>
> >> Would it be possible to:
>
> >> 1) Include the build # in liftVersion for the snapshot release?
>
> > Right now the version number is available in the manifest file.  If you, or
> > someone else, can suggest a way grab the Git fingerprint for the build
> > release, I'm all for including that in the manifest as well.
>
> >> 2) Make it possible to identify the revision from this build #
> >> (e.g. push the hudson build tags to the github repo or something
> >> similar)?
>
> >> /Jeppe
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to