title: how to fix configuration not found in guava error
body: <p>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?</p>
  
  <p>error</p>
  
  <pre><code>Error
  [ivy:resolve] com.google.guava#guava;17.0: configuration not found in
                com.google.guava#guava;17.0: 'public'. It was required from 
                .. runtime
  </code></pre>
  
  <p>project hierarchy</p>
  
  <pre><code>project
    | - - src
    | - - lib
           | - - guava.jar
    | - - conf
           | - - ant
                  | - - build.xml
           | - - ivy
                  | - - ivy.xml
                  | - - ivyconf.xml
  </code></pre>
  
  <p>ivy.xml file</p>
  
  <pre><code>&lt;ivy-module version="2.0"&gt;
      &lt;configurations defaultconfmapping="runtime-&gt;public"&gt;
          &lt;conf   name="compile"      visibility="private"/&gt;
          &lt;conf   name="jar"
                  extends="compile"       
                  visibility="private"/&gt;
  
          &lt;conf   name="runtime"      
                  extends="jar"   
                  visibility="public"/&gt;
      &lt;/configurations&gt;
  
      &lt;dependencies&gt;
          &lt;dependency org="com.google.guava"  name="guava"    rev="17.0"  conf="runtime-&gt;public"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>lastly, ivyconf.xml</p>
  
  <pre><code>&lt;conf   defaultresolver="local"/&gt;
  &lt;resolves&gt;
          &lt;filesystem name="local"&gt;
              &lt;artifact   pattern="${lib.dir}/**/*.jar" /&gt;
          &lt;/filesystem&gt;
  &lt;/resolves&gt;
  </code></pre>