You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chen Li <ch...@ebi.ac.uk> on 2007/04/18 23:41:35 UTC

Is there any way to get timestamp in maven?

Hi,

It might be a very basic question.

I want to add timestamp to the distribute, for instance ${DSTAMP}.war .
Is there any similar way in maven can do it like what <tstamp/> does in ant?

Thanks,
Chen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [Spam] Is there any way to get timestamp in maven?

Posted by David Corbin <dc...@allureglobal.com>.
On Wednesday 18 April 2007 17:41, Chen Li wrote:
> Hi,
>
> It might be a very basic question.
>
> I want to add timestamp to the distribute, for instance ${DSTAMP}.war .
> Is there any similar way in maven can do it like what <tstamp/> does in
> ant?

You can use Groovy.

http://pteropus.blogspot.com/2007/03/from-maven-to-mvn-part-5.html

>
> Thanks,
> Chen
>
> ---------------------------------------------------------------------
> 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: Is there any way to get timestamp in maven?

Posted by Andrius Ĺ abanas <an...@pivotcapital.com>.
Chen Li wrote:
> Hi,
> 
> It might be a very basic question.
> 
> I want to add timestamp to the distribute, for instance ${DSTAMP}.war .
> Is there any similar way in maven can do it like what <tstamp/> does in 
> ant?

Check out this plugin:
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

I have not tried it myself yet, but it seems to be exactly what you need.


Andrius


P.S. Please do not reply to an existing thread to start a new topic, it 
messes up the threading in some mail clients, and probably also mailing 
list archives - thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Is there any way to get timestamp in maven?

Posted by Jeroen Leenarts <je...@gmail.com>.
This'll help a bit too I think:
http://docs.codehaus.org/display/MAVENUSER/Creating+the+repositories
(search for "uniqueVersion" with your browser on the page.)

On 19/04/07, Jeroen Leenarts <je...@gmail.com> wrote:
>
> Look into the distributionmanagement section of the Maven pom: http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_distributionManagement
>
>
> Note the "uniqueVersion" element.
>
> Jeroen
>
> On 18/04/07, Chen Li <chenli@ebi.ac.uk > wrote:
> >
> > Hi,
> >
> > It might be a very basic question.
> >
> > I want to add timestamp to the distribute, for instance ${DSTAMP}.war .
> > Is there any similar way in maven can do it like what <tstamp/> does in
> > ant?
> >
> > Thanks,
> > Chen
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Re: Is there any way to get timestamp in maven?

Posted by Jeroen Leenarts <je...@gmail.com>.
Look into the distributionmanagement section of the Maven pom:
http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_distributionManagement

Note the "uniqueVersion" element.

Jeroen

On 18/04/07, Chen Li <ch...@ebi.ac.uk> wrote:
>
> Hi,
>
> It might be a very basic question.
>
> I want to add timestamp to the distribute, for instance ${DSTAMP}.war .
> Is there any similar way in maven can do it like what <tstamp/> does in
> ant?
>
> Thanks,
> Chen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>