Stevo Slavic edited a comment on Improvement MJAXB-37

This issue has been fixed in jaxb (see http://java.net/jira/browse/JAXB-131 ticket).
It's enough just to upgrade jaxb2-maven-plugin:1.3.1 dependency on com.sun.xml.bind:jaxb-xjc from 2.1.12 to 2.1.13 and then configure jaxb2-maven-plugin arguments parameter by appending -enableIntrospection option (see more details on xjc options at http://jaxb.java.net/nonav/2.1.13/docs/xjc.html )

Until plugin dependency gets upgraded, as a workaround one can override jaxb2-maven-plugin:1.3.1 dependency on com.sun.xml.bind:jaxb-xjc:2.1.12:jar with following snippet in pom file:

<build>
  ...
  <pluginManagement>
    <plugins>
    ...
      <plugin>
        <groupId>org.codehaus.mojo<groupId>
        <artifactId>jaxb2-maven-plugin<artifactId>
        <version>1.3.1</version>
        <dependencies>
          <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-xjc</artifactId>
            <version>2.1.13</version>
          </dependency>
        </dependencies>
      </plugin>
    ...
    </plugins>
  </pluginManagement>
  ...
</build>

and then later in build script where plugin is used:

<build>
  ...
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo<groupId>
        <artifactId>jaxb2-maven-plugin<artifactId>
        <configuration>
          ...
          <arguments>-enableIntrospection</arguments>
          ...
        </configuration>
      </plugin>
      ...
    </plugins>
  ...
</build>
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to