maven cxf-codegen-pluginförwsdl2java,如何处理嵌套的xsd:import

时间:2017-03-07 10:23:27

标签: maven-plugin wsdl2java cxf-codegen-plugin

我有一个主要的wsdl文件xsd:从网上导入很多xdd,例如

<xsd:import schemalocation="https://file/file1.xsd" namespace="file1">
<xsd:import schemalocation="https://file/file1.xsd" namespace="file2">
<xsd:import schemalocation="https://file/file1.xsd" namespace="file3">

但是在xsd文件中也导入xsd,例如在file1.xsd中,它可能导入file2

<xsd:import schemalocation="https://file/file1.xsd" namespace="file2">

这导致'两个声明导致ObjectFactory类中的冲突',那些xdd是包含大量声明的文件,我应该如何从它们生成代码?

使用bindingFiles?如何创建绑定文件,告诉插件忽略重复导入?

0 个答案:

没有答案