Compiling multiple schemas into different packages using JAXB 2.1

前端 未结 5 1046
猫巷女王i
猫巷女王i 2021-01-02 03:40

I have a CommonTypes.xsd which I\'m including in my all other XSDs using xs:include. I get

Multiple  are defined for the target namesp         


        
5条回答
  •  -上瘾入骨i
    2021-01-02 04:24

    I've meet the same problem and haven't solve it yet, but I'm afraid that it can't be possible to generate XSD into differents packages :

    It is not legal to have more than one per namespace, so it is impossible to have two schemas in the same target namespace compiled into different Java packages

    from Compiler Restrictions at the end of this page

    but if some one find some work around, just inform us please

提交回复
热议问题