ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Conflicts Dependencies
Date Tue, 10 Apr 2007 13:40:39 GMT
Ok, it's still not completely clear in my head, because I'm not sure if what
you provide is actually what you use, or if you do some kind of manual
obfuscation before posting which could be the cause of your trouble. What is
strange for me is that you say that in your cache you have spring 1.2.6 in
module D and 2.0.1 in module B dir. Indeed in Ivy cache spring artifacts
should be part of spring module, ot of module D or B or whatever. So since I
see that in your ivy files you do not specify the organisation for spring,
I'm wondering if the problem is not there. When you do not specify the org
or a dependency, Ivy assumes it is of the same org as the module in which
the dependency is published. According to your ivy files, the org is always
'myorg', so it shouldn't be a problem (even if I don't think it's a good
idea to say that spring is from your own organization). But if you have
different organizations for B and D, for instance, then Ivy will see the
dependency on spring as a dependency on two separate modules: spring from
modBorg, and spring from modDOrg. And thus it won't see any conflict among
them.

So I suggest adding the org when you declare the dependency on spring in all
your modules, and see if it work better. If you still have problem, please
post your ivy xml report (you will find it in your cache, with a name like
[organisation]-[module]-[conf].xml).

HTH,

- Xavier

On 4/10/07, Saloucious <saloucious@gmail.com> wrote:
>
>
> - which tasks you are using in your ant build (if you use ant) or which
> command line arguments you use
>
> I'm using Ant  1.7.0 with a retrieve Task :
>
> <ivy-retrieve pattern="${lib.dir}/[artifact]-[revision].[ext]" />
>
> As i understand, this task resolve dependencies from repository and
> retrieve
> theses ones on my project lib dir.
>
>
> - what do you see in the console related to spring dependency resolution
>
> grep on spring
>
> [ivy-retrieve]  found [ myorg | springframework | 2.0.1 ] in
> libs-springframework
> [ivy-retrieve]  found [ myorg | springframework | 1.2.6 ] in
> libs-springframework
> [ivy-retrieve] downloading S:\libs\springframework\2.0.1\jars\spring-
> web.jar
> ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-web.jar[jar] (31ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-core.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-core.jar[jar] (47ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-context.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-context.jar[jar] (31ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-beans.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-beans.jar[jar] (63ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-webmvc.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-webmvc.jar[jar] (47ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-remoting.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-remoting.jar[jar] (31ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\2.0.1\jars\spring-mock.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-mock.jar[jar] (47ms)
> [ivy-retrieve] downloading S:\libs\springframework\2.0.1\jars\spring-
> aop.jar
> ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 2.0.1
> ]/spring-aop.jar[jar] (47ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\1.2.6\jars\spring-beans.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 1.2.6
> ]/spring-beans.jar[jar] (16ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\1.2.6\jars\spring-core.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 1.2.6
> ]/spring-core.jar[jar] (16ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\1.2.6\jars\spring-mock.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 1.2.6
> ]/spring-mock.jar[jar] (31ms)
> [ivy-retrieve] downloading
> S:\libs\springframework\1.2.6\jars\spring-context.jar ...
> [ivy-retrieve]  [SUCCESSFUL ] [ myorg | springframework | 1.2.6
> ]/spring-context.jar[jar] (31ms)
> [ivy-retrieve]  :: evicted modules:
> [ivy-retrieve]  [ myorg | springframework | 1.2.6 ] by [[ myorg |
> springframework | 2.0.1 ]] in [buildtime, source, test, runtime]
> [ivy-retrieve]  conflict on
> z:\dev2_stg\VscMobile\VscMobileWS\lib\spring-core-1.2.6.jar in [buildtime,
> source, test, runtime]: 1.2.6 won
> [ivy-retrieve]  conflict on
> z:\dev2_stg\VscMobile\VscMobileWS\lib\spring-context-1.2.6.jar in
> [buildtime, source, test, runtime]: 1.2.6 won
> [ivy-retrieve]  conflict on
> z:\dev2_stg\VscMobile\VscMobileWS\lib\spring-beans-1.2.6.jar in
> [buildtime,
> source, test, runtime]: 1.2.6 won
>
>
>
> - which files related to spring do you see in your cache after the
> resolution of module A dependencies, if you clean your cache before
> launching Ivy
>
>
> In my cache, i have a directory module B dir with springframework 2.0.1
> inside, and a directory module D with spring 1.2.6
>
> So finally, with retrieve Ant Task in my project lib dir, i have 2.0.1 and
> 1.2.6
>
>
>
> Xavier Hanin wrote:
> >
> > On 4/10/07, Saloucious <saloucious@gmail.com> wrote:
> >>
> >>
> >> Hi,
> >> I'm using v1.4.1
> >>
> >> Here is the files (i've refractored files).
> >>
> >> Module A :
> >> http://www.nabble.com/file/7779/ivy.xml ivy.xml
> >>
> >> Module B :
> >> http://www.nabble.com/file/7780/B-ivy.xml B-ivy.xml
> >>
> >> Module D:
> >> http://www.nabble.com/file/7781/D-ivy.xml D-ivy.xml
> >>
> >> Module C
> >> Spring Framework (2.0.1 and  1.2.6)
> >>
> >>
> >> Behaviour ---> Ivy retrieves Spring 2.0.1 asked by A, Spring 1.2.6asked
> >> by
> >> D and rejects Spring 1.2.6 asked by B
> >
> >
> > I'm sorry, but I'm still not sure to understand what you mean by
> retrieve
> > in
> > that context. Could you tell us:
> > - which tasks you are using in your ant build (if you use ant) or which
> > command line arguments you use
> > - what do you see in the console related to spring dependency resolution
> > - which files related to spring do you see in your cache after the
> > resolution of module A dependencies, if you clean your cache before
> > launching Ivy
> >
> > Thanks,
> > - Xavier
> >
> > --
> > Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
> > Manage your dependencies with Ivy!
> > http://incubator.apache.org/ivy/
> >
> >
> - which tasks you are using in your ant build (if you use ant) or which-
> which tasks you are using in your ant build (if you use ant) or which-
> which
> tasks you are using in your ant build (if you use ant) or which
> --
> View this message in context:
> http://www.nabble.com/Conflicts-Dependencies-tf3536838.html#a9919432
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message