Hi All,

I'm currently working on a project relying on Ivy to manage its
dependencies, and leveraging maven 2 repository. After fixing some bugs in
pom parsing, it now works pretty well. But there is one thing I notice whlie
working with maven 2 repo is that I often have to declare dependencies on a
set of modules from the same org (groupId in maven 2). For instance:
       <dependency org="org.springframework" name="spring-core" rev="2.0.2"
/>
       <dependency org="org.springframework" name="spring-beans" rev="2.0.2"
/>
       <dependency org="org.springframework" name="spring-aop" rev="2.0.2"
/>
       <dependency org="org.springframework" name="spring-hibernate3" rev="
2.0.2" />

Obviously I should better use an ivy variable for the revision, but it's
still very verbose IMO. So I was thinking about a new syntax, very easy to
implement (handled only as a shortcut, do not modify ModuleDescriptor
structure), allowing to group a set of dependencies by specifying some
attributes only once. For instance:
   <group org="org.springframework" rev="2.0.2">
       <dependency name="spring-core" />
       <dependency name="spring-beans" />
       <dependency name="spring-aop" />
       <dependency name="spring-hibernate3" />
   </group>

What do you think? Is it something that could help, ugly or wonderful?

- Xavier

Reply via email to