mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
105 stars 76 forks source link

Move to Jakarta JAXB dependencies #138

Closed lennartj closed 5 years ago

lennartj commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

thanks

laeubi commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

laeubi commented 2 years ago

See #183