[ 
https://jira.codehaus.org/browse/MJAXB-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291602#comment-291602
 ] 

Stevo Slavic commented on 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:

{code}
<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>
{code}

and then later in build script where plugin is used:
{code}
<build>
  ...
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo<groupId>
        <artifactId>jaxb2-maven-plugin<artifactId>
        <configuration>
          ...
          <arguments>-enableIntrospection</arguments>
          ...
        </configuration>
      </plugin>
      ...
    </plugins>
  ...
</build>
{code}
                
> Getters not being generated for Boolean fields
> ----------------------------------------------
>
>                 Key: MJAXB-37
>                 URL: https://jira.codehaus.org/browse/MJAXB-37
>             Project: Maven 2.x JAXB 2.1 Plugin
>          Issue Type: Improvement
>            Reporter: Alok Sharma
>
> The jaxb2-maven-plugin plugin generates isXXX for Boolean fields. This is 
> causing problem as the BeanInfo expects the wrapper Boolean fields to have 
> getXXX and not isXXX and is unable to find read method for the Boolean 
> property as the getXXX is unavailable in the generated sources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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