I'm wondering why we have to sort modules during a resolve/retrieve. What are the reasons?
I will look this evening to use another NonMatchingVersionReporter (if I have time). Gilles > -----Original Message----- > From: Xavier Hanin [mailto:[EMAIL PROTECTED] > Sent: jeudi 7 juin 2007 10:05 > To: [email protected] > Subject: Re: too much warnings when building ivy > > On 6/7/07, Gilles Scokart <[EMAIL PROTECTED]> wrote: > > > > I added the warning because it is rather strange to sort modules with > > non matching revision in the buildlist task. When you invoke a > > buillist to order modules that has non matching revision, the sort > > algorithm will consider it is two different modules, and will not > > order them correctly. In such a case, warning the user seemed to be > > important. > > > > But you are right, during a retrieve the warning should not be there. > > > So maybe we should use the DefaultNonMatchingVersionReporter only for the > build list task, and use an ignore implementation for other cases? > > Xavier > > Gilles > > > > 2007/6/7, Xavier Hanin <[EMAIL PROTECTED]>: > > > On 6/7/07, Maarten Coene <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > when I build Ivy, I get a lot of warnings after resolving the > > dependencies > > > > (see below). > > > > Any idea what they mean and how we can solve (or ignore) them? > > > > > > > > > Indeed, I noticed that too. It seems to be related to the new sort > > > implementation (see > > > CollectionOfModulesToSort#getModuleDescriptorDependency). > > > > > > The problem I see here is that warnings are output by default while > this > > is > > > a very usual case to find non matching revisions. Gilles, could you > > explain > > > what was your intention with these warnings? > > > > > > Xavier > > > > > > Maarten > > > > > > > > > > > > [ivy:retrieve] :: problems summary :: > > > > [ivy:retrieve] :::: WARNINGS > > > > [ivy:retrieve] Non matching revision detected. [ commons- > httpclient > > | > > > > commons- > > > > httpclient ] depends on [ junit | junit | 3.8.1 ], doesn't match > > module: [ > > > > junit > > > > | junit | 3.8.2 ] status=integration publication=Mon May 14 23:34:53 > > CEST > > > > 2007 > > > > configurations={default=default, master=master, compile=compile, > > > > provided=provid > > > > ed, runtime=runtime, test=test, system=system} artifacts={master=[[ > > junit > > > > | juni > > > > t | 3.8.2 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons- > httpclient > > | > > > > commons- > > > > httpclient ] depends on [ commons-logging | commons-logging | 1.0.3 > ], > > > > doesn't m > > > > atch module: [ commons-logging | commons-logging | 1.0.4 ] > > > > status=integration pu > > > > blication=Tue Nov 08 23:16:41 CET 2005 > > configurations={default=default, > > > > master=m > > > > aster, compile=compile, provided=provided, runtime=runtime, > test=test, > > > > system=sy > > > > stem, optional=optional} artifacts={master=[[ commons-logging | > > > > commons-logging > > > > | 1.0.4 ]/commons-logging.jar[jar]]} dependencies=[dependency: [ > log4j > > | > > > > log4j | > > > > 1.2.6 ] {optional=[compile(*), runtime(*), master(*)]}, dependency: > [ > > > > logkit | > > > > logkit | 1.0.1 ] {optional=[compile(*), runtime(*), master(*)]}, > > > > dependency: [ j > > > > unit | junit | 3.7 ] {test=[compile(*), runtime(*), master(*)]}, > > > > dependency: [ a > > > > valon-framework | avalon-framework | 4.1.3 ] {optional=[compile(*), > > > > runtime(*), > > > > master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.2 ] status=integration publication=Mon May 14 23:34:53 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 2 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.1 ] status=integration publication=Mon May 14 23:34:18 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 1 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ commons-logging | commons-logging | 1.0 ], doesn't match > > > > module: [ c > > > > ommons-logging | commons-logging | 1.0.4 ] status=integration > > > > publication=Tue No > > > > v 08 23:16:41 CET 2005 configurations={default=default, > master=master, > > > > compile=c > > > > ompile, provided=provided, runtime=runtime, test=test, > system=system, > > > > optional=o > > > > ptional} artifacts={master=[[ commons-logging | commons-logging | > > 1.0.4]/common > > > > s-logging.jar[jar]]} dependencies=[dependency: [ log4j | log4j | > 1.2.6] > > > > {option > > > > al=[compile(*), runtime(*), master(*)]}, dependency: [ logkit | > logkit > > | > > > > 1.0.1 ] > > > > {optional=[compile(*), runtime(*), master(*)]}, dependency: [ junit > | > > > > junit | 3 > > > > .7 ] {test=[compile(*), runtime(*), master(*)]}, dependency: [ > > > > avalon-framework > > > > | avalon-framework | 4.1.3 ] {optional=[compile(*), runtime(*), > > > > master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ commons-logging | commons-logging | 1.0 ], doesn't match > > > > module: [ c > > > > ommons-logging | commons-logging | 1.0.3 ] status=integration > > > > publication=Thu No > > > > v 17 14:22:22 CET 2005 configurations={default=default, > master=master, > > > > compile=c > > > > ompile, provided=provided, runtime=runtime, test=test, > system=system, > > > > optional=o > > > > ptional} artifacts={master=[[ commons-logging | commons-logging | > > 1.0.3]/common > > > > s-logging.jar[jar]]} dependencies=[dependency: [ log4j | log4j | > 1.2.6] > > > > {option > > > > al=[compile(*), runtime(*), master(*)]}, dependency: [ logkit | > logkit > > | > > > > 1.0.1 ] > > > > {optional=[compile(*), runtime(*), master(*)]}, dependency: [ junit > | > > > > junit | 3 > > > > .7 ] {test=[compile(*), runtime(*), master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-lang | > > > > commons-lang ] > > > > depends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit > > > > | 3.8 > > > > .2 ] status=integration publication=Mon May 14 23:34:53 CEST 2007 > > > > configurations > > > > ={default=default, master=master, compile=compile, > provided=provided, > > > > runtime=ru > > > > ntime, test=test, system=system} artifacts={master=[[ junit | junit > | > > > > 3.8.2 ]/ju > > > > nit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-lang | > > > > commons-lang ] > > > > depends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit > > > > | 3.8 > > > > .1 ] status=integration publication=Mon May 14 23:34:18 CEST 2007 > > > > configurations > > > > ={default=default, master=master, compile=compile, > provided=provided, > > > > runtime=ru > > > > ntime, test=test, system=system} artifacts={master=[[ junit | junit > | > > > > 3.8.1 ]/ju > > > > nit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit | > > > > 3.8.2 > > > > ] status=integration publication=Mon May 14 23:34:53 CEST 2007 > > > > configurations={ > > > > default=default, master=master, compile=compile, provided=provided, > > > > runtime=runt > > > > ime, test=test, system=system} artifacts={master=[[ junit | junit | > > 3.8.2]/juni > > > > t.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit | > > > > 3.8.1 > > > > ] status=integration publication=Mon May 14 23:34:18 CEST 2007 > > > > configurations={ > > > > default=default, master=master, compile=compile, provided=provided, > > > > runtime=runt > > > > ime, test=test, system=system} artifacts={master=[[ junit | junit | > > 3.8.1]/juni > > > > t.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.2 ] status=integration publication=Mon May 14 23:34:53 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 2 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.1 ] status=integration publication=Mon May 14 23:34:18 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 1 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-vfs | > > > > commons-vfs ] d > > > > epends on [ commons-httpclient | commons-httpclient | 2.0 ], doesn't > > match > > > > modul > > > > e: [ commons-httpclient | commons-httpclient | 3.0 ] > > status=integration > > > > publicat > > > > ion=Tue Dec 20 06:34:26 CET 2005 configurations={default=default, > > > > master=master, > > > > compile=compile, provided=provided, runtime=runtime, test=test, > > > > system=system} > > > > artifacts={master=[[ commons-httpclient | commons-httpclient | 3.0 > > ]/commons-htt > > > > pclient.jar[jar]]} dependencies=[dependency: [ junit | junit | 3.8.1 > ] > > > > {compile= > > > > [compile(*), master(*)], runtime=[runtime(*)]}, dependency: [ > > > > commons-logging | > > > > commons-logging | 1.0.3 ] {compile=[compile(*), master(*)], > > > > runtime=[runtime(*)] > > > > }, dependency: [ commons-codec | commons-codec | 1.2 ] > > > > {compile=[compile(*), mas > > > > ter(*)], runtime=[runtime(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons- > httpclient > > | > > > > commons- > > > > httpclient ] depends on [ commons-logging | commons-logging | 1.0.3 > ], > > > > doesn't m > > > > atch module: [ commons-logging | commons-logging | 1.0.4 ] > > > > status=integration pu > > > > blication=Tue Nov 08 23:16:41 CET 2005 > > configurations={default=default, > > > > master=m > > > > aster, compile=compile, provided=provided, runtime=runtime, > test=test, > > > > system=sy > > > > stem, optional=optional} artifacts={master=[[ commons-logging | > > > > commons-logging > > > > | 1.0.4 ]/commons-logging.jar[jar]]} dependencies=[dependency: [ > log4j > > | > > > > log4j | > > > > 1.2.6 ] {optional=[compile(*), runtime(*), master(*)]}, dependency: > [ > > > > logkit | > > > > logkit | 1.0.1 ] {optional=[compile(*), runtime(*), master(*)]}, > > > > dependency: [ j > > > > unit | junit | 3.7 ] {test=[compile(*), runtime(*), master(*)]}, > > > > dependency: [ a > > > > valon-framework | avalon-framework | 4.1.3 ] {optional=[compile(*), > > > > runtime(*), > > > > master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.1 ] status=integration publication=Mon May 14 23:34:18 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 1 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ commons-logging | commons-logging | 1.0 ], doesn't match > > > > module: [ c > > > > ommons-logging | commons-logging | 1.0.4 ] status=integration > > > > publication=Tue No > > > > v 08 23:16:41 CET 2005 configurations={default=default, > master=master, > > > > compile=c > > > > ompile, provided=provided, runtime=runtime, test=test, > system=system, > > > > optional=o > > > > ptional} artifacts={master=[[ commons-logging | commons-logging | > > 1.0.4]/common > > > > s-logging.jar[jar]]} dependencies=[dependency: [ log4j | log4j | > 1.2.6] > > > > {option > > > > al=[compile(*), runtime(*), master(*)]}, dependency: [ logkit | > logkit > > | > > > > 1.0.1 ] > > > > {optional=[compile(*), runtime(*), master(*)]}, dependency: [ junit > | > > > > junit | 3 > > > > .7 ] {test=[compile(*), runtime(*), master(*)]}, dependency: [ > > > > avalon-framework > > > > | avalon-framework | 4.1.3 ] {optional=[compile(*), runtime(*), > > > > master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ commons-logging | commons-logging | 1.0 ], doesn't match > > > > module: [ c > > > > ommons-logging | commons-logging | 1.0.3 ] status=integration > > > > publication=Thu No > > > > v 17 14:22:22 CET 2005 configurations={default=default, > master=master, > > > > compile=c > > > > ompile, provided=provided, runtime=runtime, test=test, > system=system, > > > > optional=o > > > > ptional} artifacts={master=[[ commons-logging | commons-logging | > > 1.0.3]/common > > > > s-logging.jar[jar]]} dependencies=[dependency: [ log4j | log4j | > 1.2.6] > > > > {option > > > > al=[compile(*), runtime(*), master(*)]}, dependency: [ logkit | > logkit > > | > > > > 1.0.1 ] > > > > {optional=[compile(*), runtime(*), master(*)]}, dependency: [ junit > | > > > > junit | 3 > > > > .7 ] {test=[compile(*), runtime(*), master(*)]}] > > > > [ivy:retrieve] Non matching revision detected. [ commons-lang | > > > > commons-lang ] > > > > depends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit > > > > | 3.8 > > > > .1 ] status=integration publication=Mon May 14 23:34:18 CEST 2007 > > > > configurations > > > > ={default=default, master=master, compile=compile, > provided=provided, > > > > runtime=ru > > > > ntime, test=test, system=system} artifacts={master=[[ junit | junit > | > > > > 3.8.1 ]/ju > > > > nit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-cli | > > > > commons-cli ] d > > > > epends on [ junit | junit | 3.7 ], doesn't match module: [ junit | > > junit | > > > > 3.8.1 > > > > ] status=integration publication=Mon May 14 23:34:18 CEST 2007 > > > > configurations={ > > > > default=default, master=master, compile=compile, provided=provided, > > > > runtime=runt > > > > ime, test=test, system=system} artifacts={master=[[ junit | junit | > > 3.8.1]/juni > > > > t.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-logging | > > > > commons-log > > > > ging ] depends on [ junit | junit | 3.7 ], doesn't match module: [ > > junit | > > > > junit > > > > | 3.8.1 ] status=integration publication=Mon May 14 23:34:18 CEST > 2007 > > > > configur > > > > ations={default=default, master=master, compile=compile, > > > > provided=provided, runt > > > > ime=runtime, test=test, system=system} artifacts={master=[[ junit | > > junit > > > > | 3.8. > > > > 1 ]/junit.jar[jar]]} dependencies=[] > > > > [ivy:retrieve] Non matching revision detected. [ commons-vfs | > > > > commons-vfs ] d > > > > epends on [ commons-httpclient | commons-httpclient | 2.0 ], doesn't > > match > > > > modul > > > > e: [ commons-httpclient | commons-httpclient | 3.0 ] > > status=integration > > > > publicat > > > > ion=Tue Dec 20 06:34:26 CET 2005 configurations={default=default, > > > > master=master, > > > > compile=compile, provided=provided, runtime=runtime, test=test, > > > > system=system} > > > > artifacts={master=[[ commons-httpclient | commons-httpclient | 3.0 > > ]/commons-htt > > > > pclient.jar[jar]]} dependencies=[dependency: [ junit | junit | 3.8.1 > ] > > > > {compile= > > > > [compile(*), master(*)], runtime=[runtime(*)]}, dependency: [ > > > > commons-logging | > > > > commons-logging | 1.0.3 ] {compile=[compile(*), master(*)], > > > > runtime=[runtime(*)] > > > > }, dependency: [ commons-codec | commons-codec | 1.2 ] > > > > {compile=[compile(*), mas > > > > ter(*)], runtime=[runtime(*)]}] > > > > [ivy:retrieve] > > > > [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE > DETAILS > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________________ > __________ > > > > Luggage? GPS? Comic books? > > > > Check out fitting gifts for grads at Yahoo! Search > > > > > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz > > > > > > > > > > > > > > > > -- > > > Xavier Hanin - Independent Java Consultant > > > Manage your dependencies with Ivy! > > > http://incubator.apache.org/ivy/ > > > > > > > > > -- > > Gilles SCOKART > > > > > > -- > Xavier Hanin - Independent Java Consultant > Manage your dependencies with Ivy! > http://incubator.apache.org/ivy/
