title: IntelliJ and Maven Source folder issue
body: <p>I'm trying to create a simple Java webapp using IntelliJ (v11.1.3) and integrate it with a simple maven pom file to download the Vaadin jar.</p>
  
  <p>Here is my pom file:</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;com.a.maven.project&lt;/groupId&gt;
  &lt;artifactId&gt;MavenProject&lt;/artifactId&gt;
  &lt;version&gt;0.1&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  
  &lt;dependencies&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;com.vaadin&lt;/groupId&gt;
      &lt;artifactId&gt;vaadin&lt;/artifactId&gt;
    &lt;version&gt;6.8.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>I am checking this project out from version control in order to set it up in IntelliJ.  However, IntelliJ does not seem to be able to recognize that the "src" folder is the sources folder.  I can manually set this to the sources folder in the project settings, which is a minor annoyance, but not a big deal.  However, EVERY time i make a change to the pom file, IntelliJ "forgets" that this is the sources folder, and then all my Java files get red circles around them.  Does anyone have any idea as to what could be causing this?  I've tried just about everything to fix this, including specifying the source folder in my pom file, but nothing seems to work.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Eric</p>