title: Maven: package org.junit does not exist
body: <p>I'm new to Maven, so excuse me if this is so elemental. I have searched about this problem, and everyone seems to solve it removing the  tag from the pom.xml file.</p>
  
  <p>I do not have that tag there:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;GraphApp&lt;/groupId&gt;
    &lt;artifactId&gt;GraphApp&lt;/artifactId&gt;
    &lt;version&gt;1.0.0&lt;/version&gt;
    &lt;name&gt;MyApp&lt;/name&gt;
    &lt;description&gt;MyApp&lt;/description&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;testSourceDirectory&gt;test&lt;/testSourceDirectory&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have converted an existing project with Eclipse, so the problem may come from that.</p>
  
  <p>Also, I have read that the default schema for Maven is storing the code at some default folders, while I'm using <code>src/com/romanrdgz/core/myapp</code> and <code>/test/com/romanrdgz/test/core</code>. That could also be the origin of the problem.</p>
  
  <p>I am seeing this error:</p>
  
  <pre><code>Maven: package org.junit does not exist
  </code></pre>
  
  <p>What do I need to change?</p>
  
  <p>EDIT: Ok, I have included JUnit4 as dependency, and I have also changed my file folders to be like this:
  <img src="https://i.stack.imgur.com/wZKez.png" alt="enter image description here"></p>
  
  <p>Still, when I go to console and execute <code>mvn test</code> or <code>mvn compile</code>, I get the following output:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building GraphApp 1.0.0
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ GraphApp -
  --
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
  i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory C:\Users\rrrp\workspace\GraphApp\src\
  main\resources
  [INFO]
  [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ GraphApp ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.515 s
  [INFO] Finished at: 2015-04-15T08:15:06+02:00
  [INFO] Final Memory: 11M/309M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>I tried erasing bin and target folders, but still the same. Looks like it does not find the classes nor the tests.</p>
  
  <p>Any help?</p>