users@jaxb.java.net

Re: Telling JAXB a schema has already been generated

From: Dan Diephouse <dan_at_envoisolutions.com>
Date: Thu, 15 Mar 2007 14:34:53 -0400

Cool, thanks Kohsuke!

One further question: Our users need to be able to use our jaxb files with
jaxb 2.0 as well. Is there a switch to tell jaxb to generate 2.0 compatible
artifacts instead of 2.1 artifacts? (I'm 99% sure there is, but not sure
about how to do it)

- Dan

On 3/15/07, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com> wrote:
>
> Dan Diephouse wrote:
> > Question: We have a multi module in which one module we've generated
> schema
> > A into package foo.a. In the second module we generate schema B into
> foo.b.
> > B depends on A though, so schema A also gets regenerated as well. Is
> there a
> > way to tell JAXB that we've already generated a particular schema and
> that
> > its in a particular package?
>
> Yes. See
> http://weblogs.java.net/blog/kohsuke/archive/2006/09/separate_compil.html
>
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>
>


-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog