title: How to exclude a source from those under source root?
body: <p>In my project's <a href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html" rel="nofollow">pom.xml</a> I have section responsible for generating sources:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.0&lt;/version&gt;
              &lt;executions&gt;
                               ...
                  &lt;execution&gt;
                      &lt;id&gt;generate-sources-myownp&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;sourceRoot&gt;${basedir}/target/generated-sources/cxf&lt;/sourceRoot&gt;
                          &lt;wsdlOptions&gt;
                              &lt;wsdlOption&gt;
                                  &lt;wsdl&gt;${basedir}/src/main/wsdl/MyOwnProj.wsdl&lt;/wsdl&gt;
                              &lt;/wsdlOption&gt;
                          &lt;/wsdlOptions&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;wsdl2java&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                   ...
  </code></pre>
  
  <p>It works well, except for one "<em>sourceRoot</em>" which happens to be duplicate as it is included in two difference packages.</p>
  
  <p>Is there a way to specify an explicit "exclude" for that source package in <a href="http://maven.apache.org/pom.html" rel="nofollow">pom.xml</a>?</p>