title: Unable to use Intellij with a generated sources folder
body: <p>Related question
  <a href="https://stackoverflow.com/questions/2644609/how-to-configure-intellij-idea-and-or-maven-to-automatically-add-directories-with">How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin?</a></p>
  
  <p>I have a custom plugin that generates sources under <code>target/generated-sources</code> (Note no toolname here). So I get sources like <code>target/generated-sources/com/mycompany</code>...etc.</p>
  
  <p>This format cannot be changed at all, so will I be able to configure Intellij into adding it as a source folder. As of now, I can see that Intellij has added <code>target/generated-sources/com</code> as the source folder.</p>
  
  <p>Please note that I do not have the option of configuring the plugin !</p>
  
  <p><strong>UPDATE 1</strong>: I do not agree with the fact that I MUST put my generated sources under a tool name folder. It may be a good convention, but if I have only one generator there is no need for me to put it there? Again, in my pom.xml I have a <code>resources</code> section which clearly indicates that <code>target/generated-sources</code> should be treated as a source folder. This works perfectly fine in Eclipse so I have no idea why Intellij would not respect my settings. </p>
  
  <p>TL;DR -> When I put <code>target/generated-sources</code> in the resource section of <code>pom.xml</code> why is Intellij overzealous to add <code>target/generated-sources/com</code> to the classpath?</p>