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 Andreas Fagschlunger <an...@reflex.at> on 2014/03/15 18:08:11 UTC

Force Ivy to use local repsitory instead of cache

Hello!

I've set up a Multi-Project environment with Ivy. Every Project builds and
publishes itself to the local repository. My problem is, when there are
two or more Builds from one Project and another Projects uses the first
one as a dependency, only the first build is resolved - because the first
Build is the one that lies in the Cache.

How can I force Ivy to use the latest build from the local repository as a
dependency and not the one which lies in the cache?

Best Regards,
Andreas Fagschlunger


Re: Antwort: Force Ivy to use local repsitory instead of cache

Posted by Andreas Fagschlunger <an...@reflex.at>.
Hy Carsten!

At the moment all projects use "latest.integration" as revision. You can
view my ivy.xml file Online, for example:

https://github.com/AndreasFagschlunger/O2Xfs/blob/master/at.o2xfs.operator/ivy.xml

As you can see I also use the default resolvers and do not define any
resolvers by myself.

Best Regards
Andreas Fagschlunger

ivy-user@ant.apache.org writes:
>Hi Andreas,
>
>do all builds have the same revision? If so, do you use the 
>changingPattern and changingMatcher attributes
>on the resolver to let Ivy know that there are multiple builds with
>the 
>same revision? Additionally, you might
>use checkmodified="true" on the resolver to ensure that you
>get the most 
>recent ivy file.
>
>If that doesn't work for some reason, you could perform a resolve
>right 
>after the publishing, to make sure that
>the published build is immediately put into the cache.
>
>Cheers
>Carsten
>
>
>
>Von:    "Andreas Fagschlunger"
><an...@reflex.at>
>An:     ivy-user@ant.apache.org
>Datum:  15.03.2014 18:08
>Betreff:        Force Ivy to use local repsitory instead of cache
>
>
>
>Hello!
>
>I've set up a Multi-Project environment with Ivy. Every Project builds
>and
>publishes itself to the local repository. My problem is, when there are
>two or more Builds from one Project and another Projects uses the first
>one as a dependency, only the first build is resolved - because the
>first
>Build is the one that lies in the Cache.
>
>How can I force Ivy to use the latest build from the local repository
>as a
>dependency and not the one which lies in the cache?
>
>Best Regards,
>Andreas Fagschlunger
>
>
>



Antwort: Force Ivy to use local repsitory instead of cache

Posted by Ca...@gebit.de.
Hi Andreas,

do all builds have the same revision? If so, do you use the 
changingPattern and changingMatcher attributes
on the resolver to let Ivy know that there are multiple builds with the 
same revision? Additionally, you might
use checkmodified="true" on the resolver to ensure that you get the most 
recent ivy file.

If that doesn't work for some reason, you could perform a resolve right 
after the publishing, to make sure that
the published build is immediately put into the cache.

Cheers
Carsten



Von:    "Andreas Fagschlunger" <an...@reflex.at>
An:     ivy-user@ant.apache.org
Datum:  15.03.2014 18:08
Betreff:        Force Ivy to use local repsitory instead of cache



Hello!

I've set up a Multi-Project environment with Ivy. Every Project builds and
publishes itself to the local repository. My problem is, when there are
two or more Builds from one Project and another Projects uses the first
one as a dependency, only the first build is resolved - because the first
Build is the one that lies in the Cache.

How can I force Ivy to use the latest build from the local repository as a
dependency and not the one which lies in the cache?

Best Regards,
Andreas Fagschlunger