Hello,
We are still getting our heads around all that Ivy offers and trying to
apply it to our build infrastructure along with Hudson. In general,
things are working pretty well for us, but while on a flight last week,
I found that despite having a fully primed resolution cache, that
resolution still wanted to call out and check the cache, causing build
failures while disconnected. It was my understanding that the caching
should have been able to take care of this, but obviously we aren't
doing something correctly. I'm hoping someone can shed some light on
what we might be doing wrong. Our Ivy settings file is embedded below.
Thanks for any insights,
Craig
<ivysettings>
<!-- Set the default settings -->
<settings defaultResolver="mfoundry" defaultConflictManager="all" />
<!-- Read in the properties -->
<properties file="${ivy.settings.dir}/ivy-builder-settings.properties" />
<!-- Configure the SVN Resolver support -->
<property name="ivn.svnresolver.home"
value="${ivy.settings.dir}/lib/ivy-svnresolver-2.0.0" />
<classpath file="${ivn.svnresolver.home}/ivysvnresolver.jar"/>
<classpath file="${ivn.svnresolver.home}/svnkit.jar"/>
<classpath
file="${ivn.svnresolver.home}/ivy-svnresolver-2.0.0/trilead.jar"/>
<typedef name="svn"
classname="fm.last.ivy.plugins.svnresolver.SvnResolver" />
<caches>
<cache name="adhoc-cache" basedir="${ivy.adhoc.cache}" useOrigin="true"
defaultTTL="${mf.ivy.local.cache.ttl}" />
<cache name="local-cache" basedir="${ivy.local.cache}" useOrigin="true"
defaultTTL="${mf.ivy.local.cache.ttl}" />
</caches>
<resolvers>
<filesystem name="adhoc" cache="adhoc-cache">
<ivy
pattern="${ivy.adhoc.repository}/[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"
/>
<artifact
pattern="${ivy.adhoc.repository}/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"
/>
</filesystem>
<filesystem name="local" cache="local-cache">
<ivy
pattern="${ivy.local.repository}/[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"
/>
<artifact
pattern="${ivy.local.repository}/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"
/>
</filesystem>
<svn name="artifacts" repositoryRoot="${ivy.svn.repo.path}"
userName="${svn.username}" userPassword="${svn.password}"
binaryDiff="false">
<ivy
pattern="artifacts/[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"/>
<artifact
pattern="artifacts/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"/>
</svn>
<svn name="snapshots" repositoryRoot="${ivy.svn.repo.path}"
userName="${svn.username}" userPassword="${svn.password}"
binaryDiff="false">
<ivy
pattern="snapshots/[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"/>
<artifact
pattern="snapshots/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"/>
</svn>
<!--
Chain of repositories used for retrieval only. The repositories
are searched in
order with the first match ending the search. This is a good
starting point for
development use as the search list is from more private to more
public.
-->
<chain name="mfoundry" returnFirst="true">
<resolver ref="adhoc"/>
<resolver ref="local"/>
<resolver ref="snapshots"/>
<resolver ref="artifacts"/>
</chain>
</resolvers>
</ivysettings>