cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse" <>
Subject XSD Mojo Issue
Date Thu, 05 Jul 2007 14:09:31 GMT
Was wondering if one of the authors of the XSD mojo could fill me in on
something. Right now the plugin runs XJC multiple times if you supply
multiple schemas. However, this causes an issue for me. For some of the CXF
2.1 features we need to generate episode files. Episode files contain a list
of classes that were generated in a JAR, so if you have a future module
which references a schema which was already generated, you don't have to
regenerate those same classes [1].  The problem is this: if I run XJC
multiple times (i.e. once for policy2004.xsd and once for policy200607.xsd),
this file (/META-INF/sun-jaxb.episode) will get overwritten by the second

Why are we running XJC multiple times? Why not just combine all the schemas
into just one run?

Also, is there any particular reason we don't use the actual Maven2 XJC
plugin from the JAXB project instead of maintaining our own?  I may just
switch the policy/security modules to use the other plugin as it solves my
episode file problem.

- Dan


Dan Diephouse
Envoi Solutions |

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message