title: maven-jaxb2-plugin class generation from xsd (Version Error)
body: <p>My pom.xml,</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.rajkishan&lt;/groupId&gt;
  &lt;artifactId&gt;RESTful-Swagger&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;1.0.0&lt;/version&gt;
  
  &lt;name&gt;RESTful-Swagger&lt;/name&gt;
  
  &lt;parent&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
    &lt;version&gt;1.2.4.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;start-class&gt;com.rajkishan.Application&lt;/start-class&gt;
  &lt;/properties&gt;
  
   &lt;dependencies&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-log4j&lt;/artifactId&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.mangofactory&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-springmvc&lt;/artifactId&gt;
      &lt;version&gt;1.0.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
   &lt;build&gt;
  &lt;plugins&gt;
  
      &lt;plugin&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;/plugin&gt;
  
      &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.12.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;Greeting.xsd&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
                  &lt;generatePackage&gt;com.rajkishan.xmlgen&lt;/generatePackage&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
  &lt;/plugins&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>When i build using maven in "Netbeans", this works fine.</p>
  
  <p>But if i use in Eclipse Luna, it gives error like; </p>
  
  <blockquote>
    <p>Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate: com/sun/xml/bind/api/ErrorListener</p>
  </blockquote>
  
  <p>But it works if i change the version to <code>0.12.1</code>, like below;</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.12.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;Greeting.xsd&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
                  &lt;generatePackage&gt;com.rajkishan.xmlgen&lt;/generatePackage&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Can anyone please tell me whats wrong here? Am i missing something?</p>
  
  <p>NOTE: I use jdk1.8 in eclipse.</p>