I have tried to resolve dependencies from local filesystem; to do so, I
have wrote ivy.xml, ivyconf.xml and build.xml. However, my scripts donot
work and couldnot resolve dependencies i.e. couldnot find jar files. What
is the problem behind it? And, how can I solve it?

error

Error[ivy:resolve] com.google.guava#guava;17.0: not found

 project hierarchy

project
  | - - src
  | - - lib
         | - - guava.jar
  | - - conf
         | - - ant
                | - - build.xml
         | - - ivy
                | - - ivy.xml
                | - - ivyconf.xml

 ivy.xml file

<ivy-module version="2.0">
    <configurations defaultconfmapping="runtime->public">
        <conf   name="compile"      visibility="private"/>
        <conf   name="jar"
                extends="compile"
                visibility="private"/>

        <conf   name="runtime"
                extends="jar"
                visibility="public"/>
    </configurations>

    <dependencies>
        <dependency org="com.google.guava"  name="guava"    rev="17.0"
 conf="runtime->public"/>
    </dependencies></ivy-module>

lastly, ivyconf.xml

<conf   defaultresolver="local"/><resolves>
        <filesystem name="local">
            <artifact   pattern="${lib.dir}/**/*.jar" />
        </filesystem></resolves>

Reply via email to