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

Move to Jakarta JAXB dependencies #138

Closed
lennartj opened this issue Jul 7, 2019 · 7 comments
Closed

Move to Jakarta JAXB dependencies #138

lennartj opened this issue Jul 7, 2019 · 7 comments
Assignees
Milestone

Comments

@lennartj
Copy link
Member

lennartj commented Jul 7, 2019

Jakarta is the new home for JavaEE

Hence, the Jaxb2 plugin should use Jakarta, rather than old-style JAXB dependencies.
This is documented at The Jakarta EE Wiki.

This also implies that we will require projects compiling JAXB artifacts to add an extra dependency, since the JAXB-api classes should not be fetched from the JDK anymore. This dependency is shown below - with the only currently released version being 2.3.2:

<dependency>
   <groupId>jakarta.xml.bind</groupId>
   <artifactId>jakarta.xml.bind-api</artifactId>
   <version>${jakarta-xml-api.version}</version>
</dependency>
@rafaelrenanpacheco
Copy link

rafaelrenanpacheco commented Jul 11, 2019

Hi there!

When will 2.5.0 be released on maven central?

We are running 2.4.0 with some weird workaround to get it working on Java 11.

@lennartj
Copy link
Member Author

Following the 72 hour voting process, the plugin was released to maven central today.
If you are reading this, give the push process a few hours to actually move the components and update the caches.

... but you should be able to use it today.

@rafaelrenanpacheco
Copy link

thanks

@laeubi
Copy link

laeubi commented Oct 11, 2021

Is there any example how to use jaxb2-maven-plugin to generate classes using the jakarta.xml.bind API? From this ticket I assumed is is enough to use the 2.5.0 version of the plugin but I still get javax.xml.bind.annotation clases generated.

@LorenzSLA
Copy link

LorenzSLA commented Oct 19, 2021

Is there any example how to use jaxb2-maven-plugin to generate classes using the jakarta.xml.bind API? From this ticket I assumed is is enough to use the 2.5.0 version of the plugin but I still get javax.xml.bind.annotation clases generated.

I could only solve it by switching to a fork that supports the jakarta.xml.bind API:

I hope the original will support it soon.

@jiangtao69039
Copy link

how to generate classes using jakarta.* ? now generated source alse using javax.*

@laeubi
Copy link

laeubi commented Feb 14, 2022

See #183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants