You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Karan-Sahni (Contractor)" <KS...@OfficeDepot.com> on 2004/08/18 18:01:14 UTC

setting pom version to yyyy.mm.dd

I want my project version to be a date. I am trying :


<currentVersion>${build.date}</currentVersion>

in project.xml
and 

<tstamp/>
<j:set var="build.date" value="${DSTAMP}"/>

in maven.xml at the start of my goal. But this is not working.
Any ideas?








-----Original Message-----
From: Jefferson K. French [mailto:jeff@frenches.org]
Sent: Wednesday, August 18, 2004 8:53 AM
To: Maven Users List
Subject: Re: include question


Eugene,

You could put the <j:set> tag outside the goal:

  <j:set var="myName" value="someValue"/>
  <j:include file="${myName}/maven.xml"/>

Or you could invoke Maven like this:

  maven -DmyName=someValue

  Jeff

On Wed, 18 Aug 2004, at 13:00:47 [GMT +0400] Eugene Kirin wrote:

> Hello!

> I'm wonder can I include maven.xml with some goals into another maven.xml dynamiclly? I mean the next:

> <project>       

>     <goal name="set:name">
>         <j:set var="myName" value="someValue"/>
>     </goal>

>     <j:include file="${myName}/maven.xml"/>

> </project>

> I know the "include" tag always executes first than the "set:name" goal. Does exist any way to set the "myName" var first and than include maven.xml?


> Sincerely, Eugene Kirin
> East View Information Services - Moscow
> Research and Development Department

> URL: http://www.eastview.com

-- 
mailto:jeff@frenches.org



---------------------------------------------------------------------
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: setting pom version to yyyy.mm.dd

Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi,

Why don't you build snapshots (maven jar:install-snapshot) ?

Regards

Carlos Sanchez
A Coruña, Spain

Oness Project
http://oness.sourceforge.net


> -----Original Message-----
> From: Karan-Sahni (Contractor) [mailto:KSahni@OfficeDepot.com] 
> Sent: Wednesday, August 18, 2004 6:01 PM
> To: Maven Users List
> Subject: setting pom version to yyyy.mm.dd
> 
> I want my project version to be a date. I am trying :
> 
> 
> <currentVersion>${build.date}</currentVersion>
> 
> in project.xml
> and 
> 
> <tstamp/>
> <j:set var="build.date" value="${DSTAMP}"/>
> 
> in maven.xml at the start of my goal. But this is not working.
> Any ideas?
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jefferson K. French [mailto:jeff@frenches.org]
> Sent: Wednesday, August 18, 2004 8:53 AM
> To: Maven Users List
> Subject: Re: include question
> 
> 
> Eugene,
> 
> You could put the <j:set> tag outside the goal:
> 
>   <j:set var="myName" value="someValue"/>
>   <j:include file="${myName}/maven.xml"/>
> 
> Or you could invoke Maven like this:
> 
>   maven -DmyName=someValue
> 
>   Jeff
> 
> On Wed, 18 Aug 2004, at 13:00:47 [GMT +0400] Eugene Kirin wrote:
> 
> > Hello!
> 
> > I'm wonder can I include maven.xml with some goals into 
> another maven.xml dynamiclly? I mean the next:
> 
> > <project>       
> 
> >     <goal name="set:name">
> >         <j:set var="myName" value="someValue"/>
> >     </goal>
> 
> >     <j:include file="${myName}/maven.xml"/>
> 
> > </project>
> 
> > I know the "include" tag always executes first than the 
> "set:name" goal. Does exist any way to set the "myName" var 
> first and than include maven.xml?
> 
> 
> > Sincerely, Eugene Kirin
> > East View Information Services - Moscow Research and Development 
> > Department
> 
> > URL: http://www.eastview.com
> 
> --
> mailto:jeff@frenches.org
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 



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