Thanks for the quick response.

Yes the source directories are related (and for the same jar) and
unfortunatelly I cannot use multiple projects.xml files (and, by now, I
cannot move everything under a /src directory in our CVS repository).

So the "good" work-around is it to create a new goal to copy all the
files, launch twice maven : 
1- copy the file
2- compile and site ? 

That's not so bad, my primary goal is to use it on a integration server
so the first time I will add a check-out the sources and copy the files,
the next one to compile, test, compile the jars and make the site.

Again thanks for your help.

Eric

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 07, 2002 12:39 PM
To: Turbine Maven Users List
Subject: Re: Problem with preGoal and multiple source directories


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]>


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

Reply via email to