If some sources are generated (for example with JAXB, GUI builders, ...),
it is a good idea to keep them separated from the normal sources (to be able
to clean them etc),
so it seems logical to me that Maven includes the option directly to have
several source directories.
Having some sources being generated is not a valid reason to have separate
module I think.

But maybe this should be looked at together with RMI stub generation
and other binary class generators (jsp precompilation?).
It would be nice if there is a general system to plugin plugins that
generate sources
or plugins that generate class files.

-- 
With kind regards,
Geoffrey

"dan tran" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Roberto,
>
> Maven discourages from this kind of build practice, unless you are willing
to
> do it your self, by combining multiple source directories into one via
> preGoal of
> java:complile.
>
> The correct way is to break your project into multiple projects and
> use Multiproject plugin to build them.
>
> -D
>
>
>
> On Mon, 30 Aug 2004 10:36:11 -0300, Roberto Castro
> <[EMAIL PROTECTED]> wrote:
> > Hi, in my project, java source codes are in more than one subdirectory,
like this:
> > --Source
> >     |
> >     +-Dir1
> >         |
> >         +subdir1
> >         |   + . . .
> >         |
> >         +subdir2
> >             + . . .
> > I tried to configure "project.xml" this way:
> >        <build>
> >                <sourceDirectory>Source/Dir1/**</sourceDirectory>
> >
> > But, maven was not able to find java source codes.
> > Is there a way to compile all this codes in one subproject?
> >        Thanks in advance for the help,
> >
> >     Roberto de Castro
> >     Analista de Suporte
> >     Cetip - Desus Rio de Janeiro
> >     +55 21 2276-7439
> >     mailto:[EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > 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