如何使用类自定义来解决从xsd生成jaxb对象时的冲突

当我在xsd上运行xjc -d src/ -p com.test IFC2X3.xsd命令时会产生冲突。

 ....                               .... 

错误:

 parsing a schema... compiling a schema... [ERROR] A class/interface with the same name "com.test.IfcCondenserTypeEnum" is already in use. Use a class customization to resolve this conflict. line 14912 of file:/media/isuru/Projects/mitrai/bim_exchange/ifc_classes_v2x3/IFC2X3.xsd [ERROR] (Relevant to above error) another "IfcCondenserTypeEnum" is generated from here. line 14902 of file:/media/isuru/Projects/mitrai/bim_exchange/ifc_classes_v2x3/IFC2X3.xsd 

我发现了一些关于此的问题,但它没有回答这个问题。 如何按建议解决此问题Use a class customization

使用下面的绑定

        
Interesting Posts