I have a continuous that build a project A . continuously. The continuous
build publish the result to a share repository using a version pattern
build.XXXX. From time to time, we make an official build and publish the
result to a release repository using a pattern 1.YY.
Now, I just realized that when we make a resolve of a project depending on A
using latest.integration, I obtain the version 1.YY instead of the build.XXX
version.
My resolvers are :
<resolvers>
<cache name="cache">
<ivy
pattern="${ivy.cache.dir}/${ivy.cache.default.ivy.pattern}" />
<artifact
pattern="${ivy.cache.dir}/${ivy.cache.default.artifact.pattern}" />
</cache>
<filesystem name="local">
<ivy
pattern="${ivy.local.dir}/${ivy.local.default.ivy.pattern}" />
<artifact
pattern="${ivy.local.dir}/${ivy.local.default.artifact.pattern}" />
</filesystem>
<filesystem name="shared">
<ivy
pattern="${ivy.share.dir}/${ivy.shared.default.ivy.pattern}" />
<artifact
pattern="${ivy.share.dir}/${ivy.shared.default.artifact.pattern}" />
</filesystem>
<filesystem name="release">
<ivy
pattern="${ivy.release.dir}/${ivy.shared.default.ivy.pattern}" />
<artifact
pattern="${ivy.release.dir}/${ivy.shared.default.artifact.pattern}" />
</filesystem>
<chain name="remote" returnFirst="false">
<resolver ref="release"/>
<resolver ref="shared"/>
</chain>
<chain name="offline" returnFirst="true">
<resolver ref="local"/>
<resolver ref="cache"/>
</chain>
<chain name="online" returnFirst="true">
<resolver ref="local"/>
<resolver ref="remote"/>
</chain>
</resolvers>
To make my resolve I use the online resolver. My local repository is empty,
but my cache is complete.
I use the latest strategy :
<latest-strategies>
<latest-revision name="local-revision">
<specialMeaning name="build" value="-1"/>
<specialMeaning name="dev" value="1"/> <!-- Dev
received the priority -->
</latest-revision>
</latest-strategies>
I also tried this :
<latest-strategies>
<latest-revision name="local-revision">
<specialMeaning name="build" value="100"/> <!--
Build received the priority over official build -->
<specialMeaning name="dev" value="101"/> <!-- Dev
received the priority -->
</latest-revision>
</latest-strategies>
But it doesn't change anything.
Before I tried to clean my cache. Do you think that in the first latest
strategy the version 1.YYYY will come before build.YYYY ?
Do you think that the problem that I have might be because of something
present in the cache?
Thanks,
Gilles