You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Randy Xu <r...@post.harvard.edu> on 2005/01/09 17:46:55 UTC

Setting multiproject variables

It seems like when I launch multiproject:goal, that it creates a new 
context for variables.

How do I set a variable at runtime so that it gets picked up by the 
subprojects?

-Randy

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


Re: Setting multiproject variables

Posted by Brett Porter <br...@gmail.com>.
At the moment, multiproject does not inherit the caller's scope, it
inherits the base scope. If you use:

<j:set var="..." value="..." scope="parent" />

It will be available to -everything-. This won't work in a plugin, however.

- Brett


On Sun, 09 Jan 2005 11:46:55 -0500, Randy Xu <r...@post.harvard.edu> wrote:
> It seems like when I launch multiproject:goal, that it creates a new
> context for variables.
> 
> How do I set a variable at runtime so that it gets picked up by the
> subprojects?
> 
> -Randy
> 
> ---------------------------------------------------------------------
> 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