How to add a folder under target directory to Java Build path Source In eclipse
<p>I want to add a generated folder under target directory to build path .</p>

<p>Can I do it in the same <em>pom.xml</em> after I generate the sources.
I tried like below. That didn't help.</p>

<pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.10&lt;/version&gt;

    &lt;configuration&gt;
        &lt;sourceExcludes&gt;
        &lt;!-- &lt;sourceExclude&gt;**/.svn/**&lt;/sourceExclude&gt; --&gt;
        &lt;/sourceExcludes&gt;
        &lt;sourceIncludes&gt;
            &lt;sourceInclude&gt;target/generated-sources/xjc&lt;/sourceInclude&gt;
        &lt;/sourceIncludes&gt;
    &lt;/configuration&gt;
&lt;/plugin&gt;             
</code></pre>

<p>Please help</p>