I played with the basic Ivy Tutorial and gradually expanded to the state where I now have seprate ivy.xml, which defines my dependencies and with a can of ivy inside the apache ant installation.
I was also able to identify a common repository to stop ivy popping into an external repository. This was done by defining the properties in the resolution task.
<target name="resolve" depends="" description="Resolve the dependencies">
<property name="ivy.shared.default.root" value="C:/ivy/localLibsStore" />
<property name="ivy.shared.default.artifact.pattern" value="[module]/[revision]/[type]s/[artifact]-[revision].[ext]" />
<ivy:retrieve/>
</target>
However, I tried moving these properties to a separate ivysettings.xml file with no luck.
So the question is what do I need in my ivysettings.xml?
My last attempt below gives an error:
unknown resolver null
no recognizer ...
<ivysettings>
<property name="ivy.shared.default.root" value="C:/ivy/localLibsStore" />
<property name="ivy.shared.default.artifact.pattern" value="[module]/[revision]/[type]s/[artifact]-[revision].[ext]" />
<resolvers>
<filesystem name="shared">
<ivy pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" />
<artifact pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}" />
</filesystem>
</resolvers>
</ivysettings>
source
share