On Fri, Aug 21, 2009 at 6:18 AM, Indrajit Raychaudhuri <[email protected]>wrote:
> > Maven is still quite git unfriendly, unfortunately. > > We used to have BuildNumber plugin (http://mojo.codehaus.org/ > buildnumber-maven-plugin/create-mojo.html<http://mojo.codehaus.org/%0Abuildnumber-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? Gaacckkk... that's the first thought that comes to mind... ;-) Looks like our choices are: - Write our own Maven plugin and/or update the BuildNumber plugin - Avoid the feature We actually have the build time already in the manifest. I'd love to get the repo and the fingerprint in there as well. > > > /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 > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://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 -~----------~----~----~----~------~----~------~--~---
