title: CouchDB4j/ mvn dependencies are missing
body: <p>I am having trouble setting up a connection to my local CouchDB programmatically. </p>
  
  <p>I am using couchDb4j- and things seem to look good, until I run and try to connect to the DB.</p>
  
  <p>My console is throwing the following error:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/http/params/HttpParams
  [...]
  Caused by: java.lang.ClassNotFoundException: org.apache.http.params.HttpParams
  </code></pre>
  
  <p>Since my small application is not finding a class, I've checked my dependencies- everything should be fine. I have:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
      &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
      &lt;version&gt;4.0-beta3&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;commons-httpclient&lt;/groupId&gt;
      &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt;
      &lt;version&gt;3.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Which should include all necessary http specific .jar (especially the first one should include the httpParams binaries; source: <a href="http://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.0-beta3" rel="nofollow">http://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.0-beta3</a> ). </p>
  
  <p>To prevent from including wrong binaries cached on my system, I am running the following:</p>
  
  <p>mvn clean &amp;&amp; mvn package</p>
  
  <p>I've also deleted my .m2 folder.</p>
  
  <p>Googling around gave me the hint that my classpath may be wrong leading to missing dependencies in runtime. But I have set up my classpath in my pom; see here:</p>
  
  <pre><code>&lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.4&lt;/version&gt;
        &lt;configuration&gt;
          &lt;archive&gt;
            &lt;manifest&gt;
              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
              &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
              &lt;mainClass&gt;Packagename.Main&lt;/mainClass&gt;
            &lt;/manifest&gt;
          &lt;/archive&gt;
        &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Hopefully anyone can give me one idea so that I can fix this issue :)</p>
  
  <p>Best regards.</p>