I know that this question is very old, but I wanted to share the answer for those that are looking. I know it took me a while to find the answer.
As of JAXB 2.1 RI, there's a feature called "episodes" that you can use to facilitate this.
Let's say you have a schema called myschema.xsd. Then you would want to call the following:
xjc -episode myschema.episode myschema.xsd
This also works if you are compiling multiple xsd files using a single call. The call will produce the bindings as well as the myschema.episode file.
The episode file is a special bindings file. You can then use this file with wsimport, like so:
wsimport mywsdl.wsdl -b myschema.episode
wsimport will now use the previously generated JAXB files, and will generate anything that is missing.
See this page for more information.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…