Jean-Marie Condom wrote:
> thanks ; i had tried this instruction also but the problem is
> the duplication of common classes under
> meteorage/jobs/params/configuration when compiling
> configuration_test.xsd (whose namespace is
> meteorage/jobs/params/configuration)
> and that imports common.xsd
>
> those classes are already under meteorage/jobs/params/commons
> after having compiled common.xsd (whose namespace is
> meteorage/jobs/params/common)
I'm bit confused. You are saying that the same schema produces two sets
of classes?
I suspect what you might really want is to use <xsd:include> as opposed
to <xsd:import>.
Otherwise, if you intentionally defined identical schema definitions in
two namespaces, then the JAXB has to generate two sets of classes, too.
After all, they might look similar, but they are different --- they
belong to different namespaces.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com