> - For some time, JAXB has been bundled with the JRE.
> As of this writing, this still applies to Java 8.
>    In Java 9, and 10, there's --add-modules=java.xml.bind.
> As of Java 11, it has been removed from the JDK.
>      I'd consider that to be a migration problem.

You can just include jaxb-api and jaxb-impl for any version of Java.
This will work and it won't even break Java 8.

Am Mi., 2. Juni 2021 um 22:46 Uhr schrieb Jochen Wiedmann
<jochen.wiedm...@gmail.com>:
>
> On Wed, Jun 2, 2021 at 2:38 PM Gary Gregory <garydgreg...@gmail.com> wrote:
> >
> > On Wed, Jun 2, 2021 at 8:30 AM Jochen Wiedmann
> > <jochen.wiedm...@gmail.com> wrote:
> > >
> > > On Wed, Jun 2, 2021 at 1:02 PM Elliotte Rusty Harold <elh...@ibiblio.org> 
> > > wrote:
> > >
> > > > What do folks think about slowly moving away from Modello where
> > > > feasible to simplify the build? Does anyone find Modello a net
> > > > positive, especially in longterm maintenance, not just in initial code
> > > > generation?
> > >
> > > To me, it sounds feasible to replace Modello with a Sax parser
> > > (reading), and a Sax
> > > event generator (writing), that take as input a bean class (either
> > > written manually,
> > > or generated by Modello, and do the serialization/deserialization.
> > >
> > > Would, most likely, not be a drop-in-replacement, but definitely a 
> > > medium-term
> > > solution.
> >
> > What about JAXB?
>
> In general, JAXB is an excellent technology. For use in Maven, I'd
> foresee a few gotchas:
>
>   - For some time, JAXB has been bundled with the JRE. As of this
> writing, this still applies to Java 8.
>     In Java 9, and 10, there's --add-modules=java.xml.bind. As of Java
> 11, it has
>     been removed from the JDK. I wouldn't want to deal with that.
>   - To use JAXB, one either needs to have an XSD, or rather specific
> annotations on the Java beans.
>      I'd consider that to be a migration problem.
>
> Jochen
>
>
> --
>
> Look, that's why there's rules, understand? So that you think before
> you break 'em.
>
>     -- (Terry Pratchett, Thief of Time)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to