JAXB Compiling Issue - [ERROR] Property “Any” is already defined

前端 未结 3 1740
旧时难觅i
旧时难觅i 2020-12-06 19:48

I am trying to create JAXB binding for xccdf-1.1.4.xsd which is a standard schema that can be obtain from XCCDF Schema Location

I am currently using EclipseLink MOXy

3条回答
  •  有刺的猬
    2020-12-06 20:38

    Using Blaise's suggestion to create a JAXB external binding XML would work when using the JAVA JAXB implementation to generate the JAXB binding.

    However it doesn't work when using EclipseLink MOXy jaxb-compiler.sh. Blaise said that it could be a possible bug in the compiler script. bug ticket 395328

    The workaround to this problem for now is to use the JAVA XJC command from the JDK and manually add the jaxb.properties file in the generated directory. Specifying-eclipselink-moxy-as-yours

提交回复
热议问题