Second one works where the first one didn't, because the maven tag
(<maven:maven.../>) doesn't inherit the environment/context setup in the
parent maven's execution.

-john

On Thu, 2004-02-12 at 08:31, JoÃl Wijngaarde [Us Media] wrote:
> Hi,
> 
> Well, found out it works when I use the "attainGoal" command. Not sure
> why, but it works.
> 
> / J
> 
> 
> On Thu, 2004-02-12 at 12:55, JoÃl Wijngaarde [Us Media] wrote:
> > Hi, 
> > 
> > how can you set a variable using the maven.xml file which normally is
> > set using the -D attribute at runtime.
> > 
> > I want to create a custom target "myproject:webapp" which calls:
> > 
> >     maven -Dgoal=webapp multiproject:goal
> > 
> > I currently do:
> > 
> > <goal name="myproject:deploy" description="Build the projects webapps">
> >     <j:set var"goal value="war:webapp" />
> >     <maven:maven descriptor="${basedir}/project.xml" 
> >     goals="multiproject:goal" />
> > </goal>
> > 
> > Bud this does not seem to wrok. Any ideas?
> > 
> > Regards,
> > 
> > Joel
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to