title: How to add maven modules to IntelliJ?
body: <p>IntelliJ cannot find the classes in a Maven module, even if I add the jar dependency into pom.xml.</p>
  
  <p>I created a Maven module: test-intellij . And then I created a class <code>TestApp</code> and made it implements <code>ApplicationContextAware</code> as below:</p>
  
  <pre><code>public class TestApp implements  ApplicationContextAware{
  }
  </code></pre>
  
  <p>IntelliJ told me: "can not find class ApplicationContextAware". 
  So I pressed "alt + enter", then from the popup tips I chose "Add maven dependency".</p>
  
  <p>After this operation, the dependency below was added into pom.xml successfully:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;3.1.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>But when I try to import the ApplicationContextAware class , IntelliJ still cannot find the ApplicationContextAware class to import.</p>
  
  <p>Could anybody help me to solve this issue?</p>