Are the source directories related?  i.e. are they all for the same jar, 
or as it looks by the directory names, they're fairly separate?

If they're separate, I'd set up multiple project.xml's and run them via 
the reactor.

But anyway, on to your problem, 

maven checks whether sources are present *when it starts* by looking for 
the source directory.
It then sets the source set of files *when it starts* if the source 
directory is there.

This is a known bug on maven's part.....
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


"Eric Hartmann" <[EMAIL PROTECTED]> wrote on 07/10/2002 07:34:16 PM:

> Hi,
> 
> I'm trying to use maven 1.0-b7 instead of Ant. 
> I cannot find the answer on the web site nor the mailing list archive.
> 
> I have multiple source directory, so I use a preGoal to copy all sources
> to the src directory :
> 
> ...
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
>    <preGoal name="java:prepare-filesystem">
>       <copy todir="src">
>          <fileset dir="../tools"/>
>          <fileset dir="../tcp"/>
>       </copy>
>    </preGoal> 
> </project>
> ...
> 
> But the first time, Maven doesnot find any sources :
> 
> ...
> java:prepare-filesystem:
>     [copy] Copying 215 files to
> C:\Projects\SharedValue\autocompil\llf.build\src
>     [copy] Copied 5 empty directories to
> C:\Projects\SharedValue\autocompil\llf.build\src
>     [mkdir] Created dir:
> C:\Projects\SharedValue\autocompil\llf.build\target\classes
> 
> java:compile:
>     [echo] No java source files to compile.
> ...
> 
> The second time, everything works fine (file are already copied).
> I've try to use prereqs instead of preGoal but I experience the same
> problem.
> 
> Can anyone help me ?
> 
> Eric
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>
> 


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

Reply via email to