Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if jaxb version 2.3.1 can be replaced by jakarta.xml.bind-api #148

Open
averbraeck opened this issue Oct 5, 2024 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@averbraeck
Copy link
Owner

In the mvnrepository, it is indicated that the jaxb-api is succeeded by the Jakarta XML Binding API. We have to see if this works in the ots-parser-xml project and what the side effects are.

The jaxb-api is not updated since 2018, where the Jakarta XML Binding API has regular releases; the latest being from March 2024.

@averbraeck averbraeck added the enhancement New feature or request label Oct 5, 2024
@averbraeck
Copy link
Owner Author

The jaxb-api also still uses javax.annotation-api that has been replaced by jakarta.annotation-api. Therefore, the POM file n ots-parser-xml has a dependency:

    <dependency>
      <groupId>javax.annotation</groupId>
      <artifactId>javax.annotation-api</artifactId>
      <version>1.3.2</version>
    </dependency>

whereas jakarta.annotation-api version 3.0.0 (a much later version) is already included in the entire OTS project.

@averbraeck
Copy link
Owner Author

A first check shows that updating JAXB is not straightforward. We might have to do some smaller tests first to see how to integrate JAXB itself, the maven-jaxb2 plugins, the org.glassfish.jaxb/jaxb-runtime library, and the org.jvnet.jaxb2.maven2/maven-jaxb2-plugin that are now all interacting in a way that defies partial upgrades of one of the tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants