You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Saloucious Crumb <sa...@gmail.com> on 2007/04/06 15:26:37 UTC

Conflicts Dependencies

Hi,

I've just discovered Ivy and have to use it on my projects.

Actually i have a problem with conflicts dependencies.

Indeed, i've got a module A which depends on B and C (revision=2).

B depends on C (revision=1) and D

D depends on C (revision=1)

Ivy detects a conflict between A and B (about C revision) -> OK, it takes
revision 2

But ivy do not detect conflict between B and D (about C revision) -> Ivy
retrieves C revision 1

So, in my libs directory, i have C revisions 1 and 2 -> NOK

I've you got an idea ?

Re: Conflicts Dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
On 4/10/07, Saloucious <sa...@gmail.com> wrote:
>
>
> Yeah !!!!!!!
>
> organisation attribute seems to be the solution.
>
> Sorry for obfuscating code but i'm not files' owner and i'm not sure to be
> granted to publish them....


I understand, no problem except that manual obfuscation sometimes loose
crucial information :-)

You're right on module D this is not "myorg" but "other-org"
>
> Now a battlle begins to tell other people to change their ivy module files
> (put a org attribute in spring dependency)
>
> Thanks for your amazingly reactivity


You're welcome,

- Xavier

:-)
>
>
>
> Xavier Hanin wrote:
> >
> > 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.6in
> > 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 <sa...@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 <sa...@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/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Conflicts-Dependencies-tf3536838.html#a9920569
> 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/

Re: Conflicts Dependencies

Posted by Saloucious <sa...@gmail.com>.
Yeah !!!!!!!

organisation attribute seems to be the solution.

Sorry for obfuscating code but i'm not files' owner and i'm not sure to be
granted to publish them....
You're right on module D this is not "myorg" but "other-org"

Now a battlle begins to tell other people to change their ivy module files
(put a org attribute in spring dependency)

Thanks for your amazingly reactivity 

:-)



Xavier Hanin wrote:
> 
> 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 <sa...@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 <sa...@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/
> 
> 

-- 
View this message in context: http://www.nabble.com/Conflicts-Dependencies-tf3536838.html#a9920569
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Conflicts Dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
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 <sa...@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 <sa...@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/

Re: Conflicts Dependencies

Posted by Saloucious <sa...@gmail.com>.
- 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 <sa...@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.6 asked
>> 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.


Re: Conflicts Dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
On 4/10/07, Saloucious <sa...@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.6 asked
> 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/

Re: Conflicts Dependencies

Posted by Saloucious <sa...@gmail.com>.
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.6 asked by
D and rejects Spring 1.2.6 asked by B

I'm using a filesystem pattern : 

<filesystem name="libs">
<ivy
pattern="${ivy.shared.default.root}/[organization]/[module]/[revision]/[module]-ivy.xml"
/>
<artifact
pattern="${ivy.shared.default.root}/[organization]/[module]/[revision]/[type]s/[artifact].[ext]"
/>
</filesystem>


Thanks


Xavier Hanin wrote:
> 
> On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
>>
>> Yes,
>>
>> Ivy retrieve C2 asked by A, reject C1 asked by B, but retrieve C1 asked
>> by
>> D.
>>
>> And in do not understand why there is no conflict between C2 asked by A
>> and
>> C1 asked by D (I suppose this is a non direct dependencies ...)
>>
>> I send you files ASAP
> 
> 
> Ok, and tell us also which version you are using. We have quite a lot of
> unit tests concerning conflicts, but you may have run into a strange case.
> 
> - Xavier
> 
> 2007/4/6, Xavier Hanin <xa...@gmail.com>:
>> >
>> > On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
>> > >
>> > > Hi,
>> > >
>> > > I've just discovered Ivy and have to use it on my projects.
>> > >
>> > > Actually i have a problem with conflicts dependencies.
>> > >
>> > > Indeed, i've got a module A which depends on B and C (revision=2).
>> > >
>> > > B depends on C (revision=1) and D
>> > >
>> > > D depends on C (revision=1)
>> > >
>> > > Ivy detects a conflict between A and B (about C revision) -> OK, it
>> > takes
>> > > revision 2
>> > >
>> > > But ivy do not detect conflict between B and D (about C revision) ->
>> Ivy
>> > > retrieves C revision 1
>> > >
>> > > So, in my libs directory, i have C revisions 1 and 2 -> NOK
>> > >
>> > > I've you got an idea ?
>> >
>> >
>> > I'm not sure to get the picture correctly. There is no conflict between
>> B
>> > and D, since both depend on C 1. The conflict occurs in A, between C1
>> > asked
>> > by B, and C2 asked by A. In this case Ivy should select C2. But you
>> seem
>> > to
>> > say it's the case, so I don't see when you finally get the two versions
>> in
>> > your libs directory...
>> >
>> > So to be sure we can help you, could you provide your A, B, C and D ivy
>> > files, the ant tasks you call, and the result?
>> >
>> > - Xavier
>> >
>> >
>> >
>> >
>> > --
>> > Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
>> > Manage your dependencies with Ivy!
>> > http://incubator.apache.org/ivy/
>> >
>>
> 
> 
> 
> -- 
> Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
> Manage your dependencies with Ivy!
> http://incubator.apache.org/ivy/
> 
> 

-- 
View this message in context: http://www.nabble.com/Conflicts-Dependencies-tf3536838.html#a9917268
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Conflicts Dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
>
> Yes,
>
> Ivy retrieve C2 asked by A, reject C1 asked by B, but retrieve C1 asked by
> D.
>
> And in do not understand why there is no conflict between C2 asked by A
> and
> C1 asked by D (I suppose this is a non direct dependencies ...)
>
> I send you files ASAP


Ok, and tell us also which version you are using. We have quite a lot of
unit tests concerning conflicts, but you may have run into a strange case.

- Xavier

2007/4/6, Xavier Hanin <xa...@gmail.com>:
> >
> > On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > I've just discovered Ivy and have to use it on my projects.
> > >
> > > Actually i have a problem with conflicts dependencies.
> > >
> > > Indeed, i've got a module A which depends on B and C (revision=2).
> > >
> > > B depends on C (revision=1) and D
> > >
> > > D depends on C (revision=1)
> > >
> > > Ivy detects a conflict between A and B (about C revision) -> OK, it
> > takes
> > > revision 2
> > >
> > > But ivy do not detect conflict between B and D (about C revision) ->
> Ivy
> > > retrieves C revision 1
> > >
> > > So, in my libs directory, i have C revisions 1 and 2 -> NOK
> > >
> > > I've you got an idea ?
> >
> >
> > I'm not sure to get the picture correctly. There is no conflict between
> B
> > and D, since both depend on C 1. The conflict occurs in A, between C1
> > asked
> > by B, and C2 asked by A. In this case Ivy should select C2. But you seem
> > to
> > say it's the case, so I don't see when you finally get the two versions
> in
> > your libs directory...
> >
> > So to be sure we can help you, could you provide your A, B, C and D ivy
> > files, the ant tasks you call, and the result?
> >
> > - Xavier
> >
> >
> >
> >
> > --
> > Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
> > Manage your dependencies with Ivy!
> > http://incubator.apache.org/ivy/
> >
>



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

Re: Conflicts Dependencies

Posted by Saloucious Crumb <sa...@gmail.com>.
Yes,

Ivy retrieve C2 asked by A, reject C1 asked by B, but retrieve C1 asked by
D.

And in do not understand why there is no conflict between C2 asked by A and
C1 asked by D (I suppose this is a non direct dependencies ...)

I send you files ASAP

2007/4/6, Xavier Hanin <xa...@gmail.com>:
>
> On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
> >
> > Hi,
> >
> > I've just discovered Ivy and have to use it on my projects.
> >
> > Actually i have a problem with conflicts dependencies.
> >
> > Indeed, i've got a module A which depends on B and C (revision=2).
> >
> > B depends on C (revision=1) and D
> >
> > D depends on C (revision=1)
> >
> > Ivy detects a conflict between A and B (about C revision) -> OK, it
> takes
> > revision 2
> >
> > But ivy do not detect conflict between B and D (about C revision) -> Ivy
> > retrieves C revision 1
> >
> > So, in my libs directory, i have C revisions 1 and 2 -> NOK
> >
> > I've you got an idea ?
>
>
> I'm not sure to get the picture correctly. There is no conflict between B
> and D, since both depend on C 1. The conflict occurs in A, between C1
> asked
> by B, and C2 asked by A. In this case Ivy should select C2. But you seem
> to
> say it's the case, so I don't see when you finally get the two versions in
> your libs directory...
>
> So to be sure we can help you, could you provide your A, B, C and D ivy
> files, the ant tasks you call, and the result?
>
> - Xavier
>
>
>
>
> --
> Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
> Manage your dependencies with Ivy!
> http://incubator.apache.org/ivy/
>

Re: Conflicts Dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
On 4/6/07, Saloucious Crumb <sa...@gmail.com> wrote:
>
> Hi,
>
> I've just discovered Ivy and have to use it on my projects.
>
> Actually i have a problem with conflicts dependencies.
>
> Indeed, i've got a module A which depends on B and C (revision=2).
>
> B depends on C (revision=1) and D
>
> D depends on C (revision=1)
>
> Ivy detects a conflict between A and B (about C revision) -> OK, it takes
> revision 2
>
> But ivy do not detect conflict between B and D (about C revision) -> Ivy
> retrieves C revision 1
>
> So, in my libs directory, i have C revisions 1 and 2 -> NOK
>
> I've you got an idea ?


I'm not sure to get the picture correctly. There is no conflict between B
and D, since both depend on C 1. The conflict occurs in A, between C1 asked
by B, and C2 asked by A. In this case Ivy should select C2. But you seem to
say it's the case, so I don't see when you finally get the two versions in
your libs directory...

So to be sure we can help you, could you provide your A, B, C and D ivy
files, the ant tasks you call, and the result?

- Xavier




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