Hi Alain,

The Maven java plugin only supports one source path. The canonical way
to solve your problem is to split your project in 3 : one client, one
server and one util. Then use the reactor to easily build all of them.

myProject
  |_ myclientproject
    |_ src
    |_ project.xml
  |_ myserverproject
    |_ src
    |_ project.xml
  |_ myutilproject
    |_ src
    |_ project.xml
  |_ project.xml

The subproject project.xml can <extend> the master project.xml in order
to avoid copy/paste ...

-Vincent

> -----Original Message-----
> From: Alain Bergevin [mailto:[EMAIL PROTECTED]]
> Sent: 11 October 2002 22:46
> To: [EMAIL PROTECTED]
> Subject: How to deal with inner project dependencies?
> 
> Hi,
> 
> I'm trying to configure Maven for my project. This project have innner
> dependencies. Is there a way to specify multiple source path or
> compilation
> order?
> I tried to use multiple <build> or <sourceDirectory> tags without
success.
> 
> My problem is that I have some classes that must be compiled before
> others.
> 
> I have something like:
> 
>     --- myProject
>             |------------> client
>                     |----------> src
>             |------------> server
>                     |----------> src
>             |------------> util
>                     |----------> src
> 
> So, I would like to compile util first, then server and finally
client. Is
> there a way to do this using the POM?
> 
> Thanks


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

Reply via email to