You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Baz <ba...@gmail.com> on 2007/07/20 04:52:11 UTC

How to build sub-directories recursively without knowing the exact names for sub-directories?

All,

I know we can use <modules> to specify which sub-directories that we would
like to build. What if i dont know the name of the sub-directories? Can i do
wildcards?

Thanks.

Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

Posted by Dmitry <dm...@hotmail.com>.
think it makes sense , partucularly if you have always growth of products/ 
modules, had before the same issue with maven.
www.ejinz.com
----- Original Message ----- 
From: "Baz" <ba...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, July 19, 2007 11:47 PM
Subject: Re: How to build sub-directories recursively without knowing the 
exact names for sub-directories?


> Say I have a the following directory structure:
>
> product/
>   module_1/
>   module_2/
>   ...
>
> Can i have a pom.xml at product directory level, and it will go into 
> module
> directories and run their pom files?
>
> The number of module subdirectories can increase but i do not want to
> maintain the product/pom.xml. Does it make sense?
>
> A.
>
> On 7/19/07, Wayne Fay <wa...@gmail.com> wrote:
>>
>> What's your use case? How could you possibly not know the names of the
>> modules when you're building a project? Are you trying to build a
>> "super master pom" that builds all your company's projects, or
>> something along those lines?
>>
>> Wayne
>>
>> On 7/19/07, Baz <ba...@gmail.com> wrote:
>> > All,
>> >
>> > I know we can use <modules> to specify which sub-directories that we
>> would
>> > like to build. What if i dont know the name of the sub-directories? Can
>> i do
>> > wildcards?
>> >
>> > Thanks.
>> >
>>
>> ---------------------------------------------------------------------
>> 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: How to build sub-directories recursively without knowing the exact names for sub-directories?

Posted by Baz <ba...@gmail.com>.
Wayne, got it. Thanks.

On 7/20/07, Wayne Fay <wa...@gmail.com> wrote:
>
> I understand the situation, but you simply need to realize that (at
> least at this point) Maven does not support your use case.
>
> Considering the "work" to "maintain" product/pom.xml is extremely
> trivial (add one line in <modules> when a new module is added), I
> don't see the payoff all that large for doing things automatically.
>
> File an RFE in Jira if you'd like, but I just don't see this being
> something that very many people will care about, so if you really want
> to see this feature added, you'll need to hack it in yourself IMHO.
>
> Wayne
>
> On 7/19/07, Baz <ba...@gmail.com> wrote:
> > Say I have a the following directory structure:
> >
> > product/
> >   module_1/
> >   module_2/
> >   ...
> >
> > Can i have a pom.xml at product directory level, and it will go into
> module
> > directories and run their pom files?
> >
> > The number of module subdirectories can increase but i do not want to
> > maintain the product/pom.xml. Does it make sense?
> >
> > A.
> >
> > On 7/19/07, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > What's your use case? How could you possibly not know the names of the
> > > modules when you're building a project? Are you trying to build a
> > > "super master pom" that builds all your company's projects, or
> > > something along those lines?
> > >
> > > Wayne
> > >
> > > On 7/19/07, Baz <ba...@gmail.com> wrote:
> > > > All,
> > > >
> > > > I know we can use <modules> to specify which sub-directories that we
> > > would
> > > > like to build. What if i dont know the name of the sub-directories?
> Can
> > > i do
> > > > wildcards?
> > > >
> > > > Thanks.
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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: How to build sub-directories recursively without knowing the exact names for sub-directories?

Posted by Wayne Fay <wa...@gmail.com>.
I understand the situation, but you simply need to realize that (at
least at this point) Maven does not support your use case.

Considering the "work" to "maintain" product/pom.xml is extremely
trivial (add one line in <modules> when a new module is added), I
don't see the payoff all that large for doing things automatically.

File an RFE in Jira if you'd like, but I just don't see this being
something that very many people will care about, so if you really want
to see this feature added, you'll need to hack it in yourself IMHO.

Wayne

On 7/19/07, Baz <ba...@gmail.com> wrote:
> Say I have a the following directory structure:
>
> product/
>   module_1/
>   module_2/
>   ...
>
> Can i have a pom.xml at product directory level, and it will go into module
> directories and run their pom files?
>
> The number of module subdirectories can increase but i do not want to
> maintain the product/pom.xml. Does it make sense?
>
> A.
>
> On 7/19/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > What's your use case? How could you possibly not know the names of the
> > modules when you're building a project? Are you trying to build a
> > "super master pom" that builds all your company's projects, or
> > something along those lines?
> >
> > Wayne
> >
> > On 7/19/07, Baz <ba...@gmail.com> wrote:
> > > All,
> > >
> > > I know we can use <modules> to specify which sub-directories that we
> > would
> > > like to build. What if i dont know the name of the sub-directories? Can
> > i do
> > > wildcards?
> > >
> > > Thanks.
> > >
> >
> > ---------------------------------------------------------------------
> > 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: How to build sub-directories recursively without knowing the exact names for sub-directories?

Posted by Baz <ba...@gmail.com>.
Say I have a the following directory structure:

product/
   module_1/
   module_2/
   ...

Can i have a pom.xml at product directory level, and it will go into module
directories and run their pom files?

The number of module subdirectories can increase but i do not want to
maintain the product/pom.xml. Does it make sense?

A.

On 7/19/07, Wayne Fay <wa...@gmail.com> wrote:
>
> What's your use case? How could you possibly not know the names of the
> modules when you're building a project? Are you trying to build a
> "super master pom" that builds all your company's projects, or
> something along those lines?
>
> Wayne
>
> On 7/19/07, Baz <ba...@gmail.com> wrote:
> > All,
> >
> > I know we can use <modules> to specify which sub-directories that we
> would
> > like to build. What if i dont know the name of the sub-directories? Can
> i do
> > wildcards?
> >
> > Thanks.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

Posted by Wayne Fay <wa...@gmail.com>.
What's your use case? How could you possibly not know the names of the
modules when you're building a project? Are you trying to build a
"super master pom" that builds all your company's projects, or
something along those lines?

Wayne

On 7/19/07, Baz <ba...@gmail.com> wrote:
> All,
>
> I know we can use <modules> to specify which sub-directories that we would
> like to build. What if i dont know the name of the sub-directories? Can i do
> wildcards?
>
> Thanks.
>

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