title: Add generated-sources as source folder to Eclipse
body: <p>I'm using the maven-jaxb-plugin to generate class file sources based on xsd files : </p>
  
  <pre><code>&lt;plugin&gt;
                  &lt;groupId&gt;com.sun.tools.xjc.maven2&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jaxb-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.1.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;jaxb-xsd-constants&lt;/id&gt;
                          &lt;phase&gt;generate-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;generatePackage&gt;com.mypackage&lt;/generatePackage&gt;
                              &lt;schemaDirectory&gt;${basedir}/src/main/resources/xsd/mylist&lt;/schemaDirectory&gt;
                              &lt;includeSchemas&gt;
                                  &lt;includeSchema&gt;mylist.xsd&lt;/includeSchema&gt;
                              &lt;/includeSchemas&gt;
                              &lt;strict&gt;true&lt;/strict&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;                    
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/pyKCM.png" alt="enter image description here"></p>
  
  <p>But I then need to add these folders as a source folder in order for Eclipse to load compile them : </p>
  
  <p>How can the folder be added as a source folder using the plugin or some other method ? Instead of having to manually add these folders.</p>