Im thinking about how its presented. Suppose Im an alien landed on earth -
where do I get the JAXB documentation? Google it, right? Well the problem
is the web remembers too much. So you get a post like
https://artofcode.wordpress.com/2019/02/28/generating-classes-from-xsd-under-java-11-the-right-way/
And its completely misleading. All CXF Apache needs to do is update the
plugin page so people don't waste time barking up the wrong tree.


On Fri, 1 Oct 2021 at 16:01, Mantas Gridinas <[email protected]> wrote:

> To be fair it's much more reliable than openapi nonsense since it does not
> lock you into particular client/server and deserializer combo.
>
> On Thu, Sep 30, 2021, 16:12 Delany <[email protected]> wrote:
>
> > They also delegate to the JDK's xjc, and it seems they can't even publish
> > their latest release to Maven Central.
> > This JAXB stuff is such a drag (╯°□°)╯︵ ┻━┻
> >
> >
> > On Thu, 30 Sept 2021 at 13:54, Mantas Gridinas <[email protected]>
> > wrote:
> >
> > > I suspect the development somewhat moved to
> > > https://github.com/mojohaus/jaxb2-maven-plugin.
> > >
> > > On Thu, Sep 30, 2021 at 1:57 PM Delany <[email protected]>
> > wrote:
> > >
> > > > Doesn't it provide the xjc that was removed from JDK11?
> > > > It looks like development has stopped here:
> > > > https://github.com/highsource/maven-jaxb2-plugin
> > > >
> > > > I see the issue though
> https://issues.apache.org/jira/browse/CXFXJC-11
> > > > The input for xjc is a file OR a directory, so there shouldn't be a
> > > > separate tag for this.
> > > > The cxf-xjc-plugin is processing my entire xsd directory 128x, which
> is
> > > the
> > > > number of schema in the directory.
> > > >
> > > > Thanks,
> > > > Delany
> > > >
> > > >
> > > > On Thu, 30 Sept 2021 at 12:45, Mantas Gridinas <[email protected]>
> > > > wrote:
> > > >
> > > > > Does cxf-xjc do anything more than the regular plugin? I've been
> > > > migrating
> > > > > projects into the opposite direction instead lately.
> > > > >
> > > > > On Thu, Sep 30, 2021, 11:44 Delany <[email protected]>
> > wrote:
> > > > >
> > > > > > Hi,
> > > > > > I'm attempting to replace maven-jaxb2-plugin with cxf-xjc-plugin
> > > > > (v3.3.1).
> > > > > >
> > > > > > The documentation on this plugin is a single page
> > > > > > https://cxf.apache.org/cxf-xjc-plugin.html
> > > > > > There seems to be undocumented option <xsdDir>
> > > > > > I've got a directory with 128 schemas so obviously don't want to
> > use
> > > > > <xsd>
> > > > > >
> > > > > >             <execution>
> > > > > >               <id>xjc</id>
> > > > > >               <goals>
> > > > > >                 <goal>xsdtojava</goal>
> > > > > >               </goals>
> > > > > >               <phase>none</phase>
> > > > > >               <configuration>
> > > > > >
> > > > > >
> > <sourceRoot>${project.build.directory}/generated-sources</sourceRoot>
> > > > > >                 <xsdOptions>
> > > > > >                   <xsdOption>
> > > > > >                     <extensionArgs>-Xinheritance</extensionArgs>
> > > > > >                     <extension>true</extension>
> > > > > >
> > > > > > <xsdDir>${project.basedir}/src/main/resources/xsd</xsdDir>
> > > > > >                   </xsdOption>
> > > > > >                 </xsdOptions>
> > > > > >                 <extensions>
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> <extension>org.jvnet.jaxb2_commons:jaxb2-basics:${dep.org.jvnet.jaxb2_commons.jaxb2-basics}</extension>
> > > > > >                 </extensions>
> > > > > >               </configuration>
> > > > > >             </execution>
> > > > > >
> > > > > > Using the maven-jaxb2-plugin the project takes 10s to build. With
> > > > > > cxf-xjc-plugin is takes 96s. What's going on?
> > > > > >
> > > > > > Thanks,
> > > > > > Delany
> > > > > >
> > > > >
> > > >
> > >
> > >
> > > --
> > > // Mantas
> > >
> >
>

Reply via email to