geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Use velocity to add dependencies to plans from poms??
Date Sat, 05 Feb 2005 02:37:17 GMT
We could also generate geronimo-service.xml dependency lists entirely 
from the pom, perhaps using

   <geronimo.module.dependency>true</geronimo.module.dependency>

This would also eliminate my old objection to the geronimo-service.xml 
plans that there was no clue that they were being used.

david jencks

On Feb 4, 2005, at 4:10 PM, David Jencks wrote:

> Every time I add or remove a dependency from a plan and have to modify 
> the project.xml as well I feel like our configuration system is just 
> not in a high enough normal form :-)
>
> I think we could change this by using velocity to insert the whole 
> dependency element in the plans from the pom, copying in specially 
> marked dependencies.
>
> So, in the plan, you'd have something like
>
> %dependencies
>
> at the top.
>
> In the project.xml, you'd have something like
>
> <dependency>
>   <groupId>foo</groupId>
>   <artifactId>bar</artifactid>
>   <properties>
>     <geronimo.plan>plan1.xml</geronimo.plan>
>     <geronimo.plan>plan2.xml</geronimo.plan>
>   </properties>
> </dependency>
>
> or, if maven doesn't like having lots of properties with the same name,
>
> <dependency>
>   <groupId>foo</groupId>
>   <artifactId>bar</artifactid>
>   <properties>
>     <geronimo.plans>plan1.xml,plan2.xml</geronimo.plans>
>   </properties>
> </dependency>
>
> I think this would reduce redundancy, but I am unsure if it would be 
> easier to use.  Opinions?
>
> thanks
> david jencks
>


Mime
View raw message