Hi,
The problem most likely is a bug in the plugin. I based a 
multi-project maven build on appfuse in the same fashion 
and my dependencies inherit fine, but I only use the 
standard maven build process to compile. It wouldn't 
surprise me if the ant plugin gets confused about the 
classpath in a multiproject scenario, that's a notoriously 
buggy part of maven.

That said I'm not entirely sure what the advantage of using 
the ant plugin is anyway (for anything requring classpaths 
anyway). What are you trying to do? Perhaps there is a 
better, more Mavenized, way .

c

On Tuesday 22 March 2005 14:50, 
[EMAIL PROTECTED] wrote:
> Hi all,
>
> inspired by the maven magic tutorial i've started to
> integrate a simple multiproject in maven.
> My project has the following structure:
>
>                     root
>
>                         | ------- project.xml   (Master
>                         | definition
>
> Template)
>
>                         | ------  MainProject
>                         |
>                         |                | -------- 
>                         |                | project.xml
>
> (MainProject Descriptor)
>
>                         |                | -------- 
maven.xml
>                         |                | (Reactor)
>                         |                |
>                         |                | ____  src
>                         |
>                         | _____ SubProject 1 (Same
>                         | structure as
>
> MainProject)
>
>
> Both projects inhered in their descriptor-files the
> master definition template on top. All works
> fine, when i use the reactor the project is build like it
> should be. Now i try to inherid some dependencies from
> the master definition template, because this
> definition should be global for each project. But this
> fails... My ant-Plugin which uses one
> of these dependencies will not work, because the jar
> classes are not found ... When i set
> the same dependency in the descriptors of both projects
> explicit, all works fine...
>
> I've got the same problem by setting maven members in the
> template, i must reset it in every
> descriptor ...
>
> Is it inpossible to inherid dependencies by this way? I
> think it's not realy elegant to set the
> basic dependencies again and again ...
>
> Thanks for any help or hint,
> Christian
>
> BG-PHOENICS GMBH
> IT-EW / DS
> Thurnithistr.16
> 30519 Hannover
> Telefon: 0511-987-1248
>
> mailto: [EMAIL PROTECTED]

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

Reply via email to