jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
JAXB-2 Maven Plugin
  • JAXB-2 Maven Plugin
  • MJAXB-61

Upgrade to JAXB 2.2

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    n/a
  • Number of attachments :
    0

Description

Should we upgrade the used JAXB implementation (com.sun.xml.bind:jaxb-xjc) to the latest 2.2 version?
Any impact, or is it fully backwards compatible?
One benefit would be that in 2.2.5+ there is build-in support for configuring the output char encoding.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Olofsson added a comment - 05/Jul/12 4:21 AM

I configured the plugin as shown bellow. And it works fine with JAXB 2.2. Now the APT Deprecation warnings are gone, too

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>jaxb2-maven-plugin</artifactId>
  <version>1.4</version>
  <!-- ... -->
  <dependencies>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-xjc</artifactId>
      <version>2.2.5-2</version>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.2.5-2</version>
    </dependency>
  </dependencies>
</plugin>
Show
Simon Olofsson added a comment - 05/Jul/12 4:21 AM I configured the plugin as shown bellow. And it works fine with JAXB 2.2. Now the APT Deprecation warnings are gone, too <plugin> <groupId> org.codehaus.mojo </groupId> <artifactId> jaxb2-maven-plugin </artifactId> <version> 1.4 </version> <!-- ... --> <dependencies> <dependency> <groupId> com.sun.xml.bind </groupId> <artifactId> jaxb-xjc </artifactId> <version> 2.2.5-2 </version> </dependency> <dependency> <groupId> com.sun.xml.bind </groupId> <artifactId> jaxb-impl </artifactId> <version> 2.2.5-2 </version> </dependency> </dependencies> </plugin>
Hide
Permalink
Lennart Jorelid added a comment - 15/Aug/12 3:57 AM

This sounds like a useful - and decently simple - improvement to the JAXB2 plugin.
Moreover, we should be able to set the output char encoding to use the project encoding's value by default.

Show
Lennart Jorelid added a comment - 15/Aug/12 3:57 AM This sounds like a useful - and decently simple - improvement to the JAXB2 plugin. Moreover, we should be able to set the output char encoding to use the project encoding's value by default.

People

  • Assignee:
    Unassigned
    Reporter:
    Anders Hammar
Vote (0)
Watch (3)

Dates

  • Created:
    19/Jun/12 2:17 AM
    Updated:
    20/Aug/12 2:47 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.