title: maven error: package org.junit does not exist
body: <p>I'm trying to create the javadoc with maven and it fails. It also fails when doing the verify.</p>
  
  <pre><code>mvn verify
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>(...)
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /home/miquel/creaveu/createOmegaMatrix/src/main/java/edu/url/salle/gtm/hnm/dataStructures/HFrame.java:[6,23]
  package org.junit does not exist
      [ERROR] /home/miquel/creaveu/createOmegaMatrix/src/main/java/edu/url/salle/gtm/hnm/dataStructures/HFrame.java:[6,0]
  static import only from classes and interfaces
      (···)
  </code></pre>
  
  <p>In my pom.xml file I have the following lines:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.8.2&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and my local repository contains the junit jar file:</p>
  
  <pre><code>miquel@ubuntu:~/creaveu/createOmegaMatrix$ ls -l /home/miquel/.m2/repository/org/junit/junit/4.8.2/
  total 248
  **-rw-r--r-- 1 miquel miquel 237344 2012-09-13 11:01 junit-4.8.2.jar**
  -rw-r--r-- 1 miquel miquel    236 2012-09-13 11:13 junit-4.8.2-javadoc.jar.lastUpdated
  -rw-r--r-- 1 miquel miquel      0 2012-09-13 11:13 junit-4.8.2-javadoc.jar-not-available
  -rw-r--r-- 1 miquel miquel    458 2012-09-12 18:35 junit-4.8.2.pom
  -rw-r--r-- 1 miquel miquel    236 2012-09-13 11:13 junit-4.8.2-sources.jar.lastUpdated
  -rw-r--r-- 1 miquel miquel      0 2012-09-13 11:13 junit-4.8.2-sources.jar-not-available
  -rw-r--r-- 1 miquel miquel    163 2012-09-13 11:22 _maven.repositories
  miquel@ubuntu:~/creaveu/createOmegaMatrix$
  </code></pre>
  
  <p>The code is fine because in my laptop, which I have no access now, I van run:</p>
  
  <pre><code>mvn javadoc:javadoc
  mvn verify
  </code></pre>
  
  <p>with no problems, and also the tests work in eclipse IDE.</p>