title: mvn package org.apache.pdfbox not found
body: <p>I have these imports (among others):</p>
  
  <pre><code>import org.apache.pdfbox.*;
  import org.apache.pdfbox.pdmodel.PDDocument;
  import org.apache.pdfbox.pdmodel.PDPage;
  </code></pre>
  
  <p>I have this dependency in my pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.pdfbox&lt;/groupId&gt;
    &lt;artifactId&gt;pdfbox&lt;/artifactId&gt;
    &lt;version&gt;2.0.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I see this line in my eclipse maven dependencies:</p>
  
  <pre><code>pdfbox-2.0.4.jar - C:\Users\Paul\.m2\repository\org\apache\pdfbox\pdfbox\2.0.4\pdfbox-2.0.4.jar
  </code></pre>
  
  <p>I check the build path in eclipse, and see pdfbox-2.0.4.jar in the Maven Dependencies part.</p>
  
  <p>I run mvn clean compile in a command prompt (Windows).</p>
  
  <p>I get the error "package org.apache.pdfbox does not exist"</p>
  
  <p>I run mvn dependency:build-classpath -Dmdep.outputFile=cp.txt</p>
  
  <p>The following lines are listed in the class path (at the front of the class path):</p>
  
  <pre><code>C:\Users\Paul\.m2\repository\org\apache\pdfbox\pdfbox\2.0.4\pdfbox-2.0.4.jar;
  C:\Users\Paul\.m2\repository\org\apache\pdfbox\fontbox\2.0.4\fontbox-2.0.4.jar;
  </code></pre>
  
  <p>I look in C:\Users\Paul.m2\repository\org\apache\pdfbox\pdfbox\2.0.4\
  and I see pdfbox-2.0.4.jar</p>
  
  <p>So what am I missing? Why is the pdfbox jar not being found?</p>