ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "corwin.yo" <>
Subject RE: dynamic revision and determine the most recent
Date Wed, 21 Oct 2009 14:15:59 GMT

Thanks Douglass,

I understand how its working. But in this case, what is the best practice ?

If we imagine this case :
Module B depends of Module A (A->B)

2009-10-01 : the developper D1 commits and publishes to its local a
modification on 1.2.0-SNAPSHOT version of module A.
2009-10-20 : a developper D2 commits another modification on 1.2.0-SNAPSHOT
of module A and a continue integration system publishes to a shared
repository. This modification occurs a new dependancy with module B.
2009-10-21 : developpeur D1 updates the Module B and  Ivy downloads the
lastest.integration Module A from the local. Thereforce Module B does not
compile, because it is older.

Has to update Module A and publish the last changes in its local, Developper
D1 ?
or is there a better pratice ?

Glidden, Douglass A wrote:
> Ivy uses ONLY the revision numbers to compare versions across
> repositories-it does not use the "publication date" or any other
> metadata-it would be essentially meaningless, since there is no guarantee
> that any given server or your local computer has a correctly synchronized
> system clock.  If an artifact is found with the same revision in two
> different repositories, they are assumed to be the same and whatever
> repository is first in the chain will be used.  So in your case, Ivy finds
> that the most recent version in each repository is; since they are
> the same, it then proceeds to download from the first repository in the
> chain.  If two revisions are different they need to have different
> revision numbers.
> Incidentally, the returnFirst property (which is false by default) has no
> relation to this-setting returnFirst to true causes Ivy to get the
> artifact from the first repository in which it finds a satisfactory
> version without checking to see if there are more recent versions in other
> repositories.
> Doug Glidden
> Software Engineer
> The Boeing Company

View this message in context:
Sent from the ivy-user mailing list archive at

View raw message