You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stanley Lee <ma...@gmail.com> on 2008/03/24 21:18:38 UTC

How to set multi-module workingDirectory?

I set up a parent module "Parent" and two child modules "Child1" and
"Child2".

I want to build Parent module and child modules differently -- for all child
modules, I need to run a specific plugin. So I set up a profile for child
modules and trigger it by checking file existance: target/checkout.

If I build child modules from their own directories, they runs fine.
However, If I build child modules from parent, Maven builds parent module
fine, but not child modules. My profile is not run because from parent
level, Maven doesn't see target/checkout

My question is: how can I make Maven build module at its own working
directory?

Thanks!

Re: How to set multi-module workingDirectory?

Posted by Martin Gainty <mg...@hotmail.com>.
Hi Stan

I *think* this will be enabled as a new feature in 2.1 called
summarize:phase
http://docs.codehaus.org/display/MAVEN/Atypical+Plugin+Use+Cases
I qualify with *think* because I have'nt seen the 2.1 release date yet

Martin
----- Original Message -----
From: "Stanley Lee" <ma...@gmail.com>
To: <us...@maven.apache.org>
Sent: Monday, March 24, 2008 3:18 PM
Subject: How to set multi-module workingDirectory?


> I set up a parent module "Parent" and two child modules "Child1" and
> "Child2".
>
> I want to build Parent module and child modules differently -- for all
child
> modules, I need to run a specific plugin. So I set up a profile for child
> modules and trigger it by checking file existance: target/checkout.
>
> If I build child modules from their own directories, they runs fine.
> However, If I build child modules from parent, Maven builds parent module
> fine, but not child modules. My profile is not run because from parent
> level, Maven doesn't see target/checkout
>
> My question is: how can I make Maven build module at its own working
> directory?
>
> Thanks!
>


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