You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon SlinnHawkins <j....@elsevier.com> on 2008/01/29 11:04:28 UTC
SNAPSHOT timestamp ?
Hi All,
I am trying to write the SNAPSHOT version number (with timestamp) to the
manifest.mf file of a WebApp.
I can successfully use the maven-war-plugin to add the version - however
this simply adds "1.0.0-SNAPSHOT" to the manifest.
Whast i would like to achieve is adding the timestamped snapshot version
number : 1.0.0-20080125.120545-3
Is this possible ?
Is there any way i can retrieve this timestamped version by any other
means, i can then figure out how to get it into the manifest.....
Many Thanks
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Re: SNAPSHOT timestamp ?
Posted by ni...@planet.nl.
A copy paste of my last mail, which was accidentally replied to th wrong message.
I don't think you can get the timestamp generated in the deploy phase before the package phase, in which the artifact is created. I suggest take a look at the revision part of the buildnumber plugin. At least, you will be able to see from which revision your build was build.
Hth,
Nick Stolwijk
-----Original Message-----
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:15 AM
To: users@maven.apache.org
Subject: Re: SNAPSHOT timestamp ?
Thanks Nick,
Ideally i need to be able to get hold of the version number that will be
used, and deployed to the repository otherwise we cannot trace a build
number to a snapshot version in the repo.
Thanks
Jon
nicklist@planet.nl wrote:
> Take a look at the buildnumber plugin[1]. However, this will not be the timestamp it will have in your remote repository. Just the timestamp (or revision) of the moment you build.
>
> Hth,
>
> Nick Stolwijk
>
> [1] http://mojo.codehaus.org/buildnumber-maven-plugin/
>
>
> -----Original Message-----
> From: news on behalf of Jon SlinnHawkins
> Sent: Tue 1/29/2008 11:04 AM
> To: users@maven.apache.org
> Subject: SNAPSHOT timestamp ?
>
> Hi All,
>
> I am trying to write the SNAPSHOT version number (with timestamp) to the
> manifest.mf file of a WebApp.
>
> I can successfully use the maven-war-plugin to add the version - however
> this simply adds "1.0.0-SNAPSHOT" to the manifest.
>
> Whast i would like to achieve is adding the timestamped snapshot version
> number : 1.0.0-20080125.120545-3
>
> Is this possible ?
>
> Is there any way i can retrieve this timestamped version by any other
> means, i can then figure out how to get it into the manifest.....
>
> Many Thanks
>
> Jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: SNAPSHOT timestamp ?
Posted by Jon SlinnHawkins <j....@elsevier.com>.
Thanks Nick,
Ideally i need to be able to get hold of the version number that will be
used, and deployed to the repository otherwise we cannot trace a build
number to a snapshot version in the repo.
Thanks
Jon
nicklist@planet.nl wrote:
> Take a look at the buildnumber plugin[1]. However, this will not be the timestamp it will have in your remote repository. Just the timestamp (or revision) of the moment you build.
>
> Hth,
>
> Nick Stolwijk
>
> [1] http://mojo.codehaus.org/buildnumber-maven-plugin/
>
>
> -----Original Message-----
> From: news on behalf of Jon SlinnHawkins
> Sent: Tue 1/29/2008 11:04 AM
> To: users@maven.apache.org
> Subject: SNAPSHOT timestamp ?
>
> Hi All,
>
> I am trying to write the SNAPSHOT version number (with timestamp) to the
> manifest.mf file of a WebApp.
>
> I can successfully use the maven-war-plugin to add the version - however
> this simply adds "1.0.0-SNAPSHOT" to the manifest.
>
> Whast i would like to achieve is adding the timestamped snapshot version
> number : 1.0.0-20080125.120545-3
>
> Is this possible ?
>
> Is there any way i can retrieve this timestamped version by any other
> means, i can then figure out how to get it into the manifest.....
>
> Many Thanks
>
> Jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: SNAPSHOT timestamp ?
Posted by ni...@planet.nl.
Take a look at the buildnumber plugin[1]. However, this will not be the timestamp it will have in your remote repository. Just the timestamp (or revision) of the moment you build.
Hth,
Nick Stolwijk
[1] http://mojo.codehaus.org/buildnumber-maven-plugin/
-----Original Message-----
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:04 AM
To: users@maven.apache.org
Subject: SNAPSHOT timestamp ?
Hi All,
I am trying to write the SNAPSHOT version number (with timestamp) to the
manifest.mf file of a WebApp.
I can successfully use the maven-war-plugin to add the version - however
this simply adds "1.0.0-SNAPSHOT" to the manifest.
Whast i would like to achieve is adding the timestamped snapshot version
number : 1.0.0-20080125.120545-3
Is this possible ?
Is there any way i can retrieve this timestamped version by any other
means, i can then figure out how to get it into the manifest.....
Many Thanks
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org