title: How to add native library dependencies to sbt project?
body: <p>I want to add a Java library (e.g. <a href="http://pdfbox.apache.org/">Apache PDFBox</a>) to an <code>sbt</code> project.</p>
  
  <p>This is the Ivy dependency:</p>
  
  <pre><code>dependency org="org.apache.pdfbox" name="pdfbox" rev="1.8.2"
  </code></pre>
  
  <p>I first tried to do the following:</p>
  
  <pre><code>resolvers += "Sonatype releases" at "http://oss.sonatype.org/content/repositories/releases/"
  
  libraryDependencies += "org.apache.pdfbox" %% "pdfbox" % "1.8.2"
  </code></pre>
  
  <p>But it gives me errors of the type</p>
  
  <pre><code>[warn] ==== public: tried [warn]  
  http://repo1.maven.org/maven2/org/apache/pdfbox/pdfbox_2.10/1.8.2/pdfbox_2.10-1.8.2.pom
  </code></pre>
  
  <p>So I understand that with this syntax I can just manage Scala dependencies. I am sure that there is a way to manage Java dependencies, but how?</p>
  
  <p>I tried to search in Google for "sbt add java dependencies" but did not find (recognize) a relevant result.</p>