On Feb 13, 2008 9:10 AM, Gilles Scokart <[EMAIL PROTECTED]> wrote:

> In the rewrite of the pom parser, I would like to store the maven
> dependency
> managment (and maybe also the properties) into the extra data of the
> moduleRevisionId.
>
> That way, the corresponding ivy module descriptor would contains all the
> info coming from the pom.  I think it might be usefull when it is
> serialized
> are reused from the cache (thought I'm not sure if it's the original pom
> or
> the serialized ivy.xml that is used in that case).
>
> However, I have noticed that the extra attributes are used to compare
> moduleRevisionId, and I fear that might bring some problem.  Does it?

Probably.


>  And
> is it normal to use the extra attributes in this comparison?

I think so, many time people use extra attributes in the info tag to add
extra identification attributes. I don't really think putty meta information
such as the dependency management information in extra attributes is a good
fit. But I like the idea of keeping data from dependency management section.
Maybe a good way to do it would be to add a Map of properties to the module
descriptor. This would be another area of flexibility for Ivy users, and I'd
even see usage for Ivy files, if we actually make them usable as properties
in the Ivy file. Something like:
<ivy-module version="2.0">
  <info org="foo" name="bar" />
  <property name="foo.baz.revision" value="1.0.4" />
  <dependencies>
    <dependency org="foo" name="baz-api" rev="${foo.baz.revision}" />
    <dependency org="foo" name="baz-main" rev="${foo.baz.revision}" />
    <dependency org="foo" name="baz-other" rev="${foo.baz.revision}" />
  </dependencies>
</ivy-module>

WDYT?

Xavier

>
>
> --
> Gilles Scokart
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Reply via email to