Can anyone explain me how to use filesystem resolver in Ivy with sample by considering..
I have ivy.xml file where i have defined all the dependecies but i want the jars from my filesystem not from maven repository..?
where do i put ivysettings.xml file.
what build.xml should contain to use ivysettings.xml so that i can use jars from filesystem not from maven..
If you're ONLY pulling jars locally and do not want to use Maven Central at all, Ivy is a waste of your time. Just put whatever jars you need in your /lib folder, add that to your classpath, and run your Ant file. Ivy is for interacting with Maven Central. However, if you need to do both, pull common jars from Maven and pull 3rd party jars from local, Mark's solution is a great one.
The ivysettings.xml file is located by default in the same directory as the ivy.xml file.
Alternative locations can be specified using the ivy settings task
Project structure
3rd party dependencies located in the lib directory.
ivy.xml
This ivy file uses configurations to manages 3 kinds of dependencies:
These will correspond to the classpaths used by the ANT build.
ivysettings.xml
Nothing fancy. Simple mapping to the jars located in the lib directory:
Alternatively..... I would always include the Maven central repo for non-local jars as follows:
The modules section specifies which jars should be retrieved locally.
build.xml
Finally the build logic that uses ivy to manage the classpaths.