Apache IVY Tutorial
Selected Reading
- Apache IVY - Discussion
- Apache IVY - Useful Resources
- Apache IVY - Quick Guide
- Apache IVY - Public Repository
- Apache IVY - Shared Repository
- Apache IVY - Local Repository
- Apache IVY - Resolvers
- Apache IVY - info
- Apache IVY - publish
- Apache IVY - cachepath
- Apache IVY - retrieve
- Apache IVY - install
- Apache IVY - resolve
- Apache IVY - Eclipse Ivy Plugin
- Apache IVY - Settings File
- Apache IVY - Terminology
- Apache IVY - Environment Setup
- Apache IVY - Overview
- Apache IVY - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache IVY - Public Repository
Apache IVY - Pubpc Repository
A pubpc repository is a repository accessible using internet and have third party modules. By default ibibpo in m2 compatible mode is the pubpc repository. It is also referred as maven 2 pubpc repository.
Overriding ivysettings defaults
By default ivy has its configurations in ivysettings.xml present in ivy.jar.
ivysettings.xml
<ivysettings> <settings defaultResolver="default"/> <include url="${ivy.default.settings.dir}/ivysettings-pubpc.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>
To override pubpc repository setting, update the contents of ivysettings-pubpc.xml or create the ivysettings.xml in setting folder of your project.
ivysettings.xml
<ivysettings> <settings defaultResolver="default"/> <include url="http://customserver/ivy/ivysettings-pubpc.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>
Update the default ivysetting-pubpc.xml contents.
Original - ivysetting-pubpc.xml
<ivysettings> <resolvers> <ibibpo name="pubpc" m2compatible="true"/> </resolvers> </ivysettings>
Updated - ivysetting-pubpc.xml
<ivysettings> <resolvers> <filesystem name="pubpc"> <ivy pattern="/path/to/my/pubpc/rep/[organisation]/[module]/ivy-[revision].xml" /> <artifact pattern="/path/to/my/pubpc/rep/[organisation]/[module]/[artifact]-[revision].[ext]" /> </filesystem> </resolvers> </ivysettings>Advertisements