Now the interesting news - this ivysettings.xml can point to other settings.xml files, which in turn can point to other settings.xml and so on.
So, you can restrict ivy configuration to a single long ivysettings.xml file or distribute it to several short (specific) settings.xml files.
By default, Ivy ships with a ivysettings.xml file which points to 5 other settings.xml file.
It looks like this:
<ivysettings>
<settings defaultResolver="default"/>
<include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
</ivysettings>
The ${ivy.default.settings.dir} by default points to the ./ivy directory in your home directory
The ivysettings-public.xml, ivysettings-shared.xml, ivysettings-local.xml files point to resolvers for your public, shared and local repositories.
The ivysettings-main-chain.xml and ivysettings-default-chain.xml specify the order in which Ivy will look at repositories.
No comments:
Post a Comment