title: org.codehaus.mojo : jaxb2-maven-plugin : 1.6 --> API incompatibility was encountered
body: <p>when using<br>
  jaxb2-maven-plugin from codehaus i get the following problem marker in eclipse
  the content of this marker contains the following:</p>
  
  <pre><code>Description Resource    Path    Location    Type
  Execution configuration of goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc failed: An API incompatibility was encountered while executing org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc: java.lang.NoSuchMethodError: org.codehaus.plexus.util.DirectoryScanner.setupMatchPatterns()V
  -----------------------------------------------------
  realm =    plugin&gt;org.codehaus.mojo:jaxb2-maven-plugin:1.6
  strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
  urls[0] = file:/C:/develop/maven/repository/org/codehaus/mojo/jaxb2-maven-plugin/1.6/jaxb2-maven-plugin-1.6.jar
  urls[1] = file:/C:/develop/maven/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
  urls[2] = file:/C:/develop/maven/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
  urls[3] = file:/C:/develop/maven/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
  urls[4] = file:/C:/develop/maven/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
  urls[5] = file:/C:/develop/maven/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
  urls[6] = file:/C:/develop/maven/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
  urls[7] = file:/C:/develop/maven/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
  urls[8] = file:/C:/develop/maven/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
  urls[9] = file:/C:/develop/maven/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
  urls[10] = file:/C:/develop/maven/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
  urls[11] = file:/C:/develop/maven/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
  urls[12] = file:/C:/develop/maven/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
  urls[13] = file:/C:/develop/maven/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/jaxb-xjc-2.2.7.jar
  urls[14] = file:/C:/develop/maven/repository/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.jar
  urls[15] = file:/C:/develop/maven/repository/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.jar
  urls[16] = file:/C:/develop/maven/repository/com/sun/istack/istack-commons-runtime/2.16/istack-commons-runtime-2.16.jar
  urls[17] = file:/C:/develop/maven/repository/com/sun/xml/bind/jaxb-jxc/2.2.7/jaxb-jxc-2.2.7.jar
  urls[18] = file:/C:/develop/maven/repository/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar
  urls[19] = file:/C:/develop/maven/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.2.12.jar
  urls[20] = file:/C:/develop/maven/repository/org/codehaus/plexus/plexus-compiler-api/1.9.1/plexus-compiler-api-1.9.1.jar
  urls[21] = file:/C:/develop/maven/repository/org/codehaus/plexus/plexus-utils/3.0.16/plexus-utils-3.0.16.jar
  Number of foreign imports: 4
  import: Entry[import org.sonatype.plexus.build.incremental from realm ClassRealm[plexus.core, parent: null]]
  import: Entry[import org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core, parent: null]]
  import: Entry[import org.codehaus.plexus.util.AbstractScanner from realm ClassRealm[plexus.core, parent: null]]
  import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
  
  -----------------------------------------------------
   (org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc:configuration:generate-sources)  pom.xml 
  </code></pre>
  
  <p>the configuration of the plugin looks like this:</p>
  
  <pre><code>  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.6&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;data&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;xjc&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;schemaDirectory&gt;${project.basedir}/src/main/resources&lt;/schemaDirectory&gt;
                                  &lt;schemaFiles&gt;WebServiceDataSchema.xsd&lt;/schemaFiles&gt;
                                  &lt;packageName&gt;my.cool.package.jaxb.data&lt;/packageName&gt; &lt;!-- The name of your generated source package --&gt;
                                  &lt;outputDirectory&gt;${project.basedir}/src/gen/java&lt;/outputDirectory&gt;
                                  &lt;target&gt;2.1&lt;/target&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
  
                          &lt;execution&gt;
                              &lt;id&gt;configuration&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;xjc&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;schemaDirectory&gt;${project.basedir}/src/main/resources&lt;/schemaDirectory&gt;
                                  &lt;schemaFiles&gt;WebServiceConfigurationSchema.xsd&lt;/schemaFiles&gt;
                                  &lt;packageName&gt;my.cool.package.jaxb.config&lt;/packageName&gt; &lt;!-- The name of your generated source package --&gt;
                                  &lt;outputDirectory&gt;${project.basedir}/src/gen/java&lt;/outputDirectory&gt;
                                  &lt;target&gt;2.1&lt;/target&gt;
                                  &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
  
                      &lt;/executions&gt;
  
                  &lt;/plugin&gt;
  </code></pre>
  
  <p>does anyone have similar problems?</p>