我正在尝试将一些XSD解析为JAXB类。我最近添加了一个XSD,然后在执行mvn clean install时一直出现此错误
com.sun.istack.SAXParseException2: Base complex type "InterfaceBaseData" is derived by restriction, while this complex type "InterfaceData" is derived by extension. This is not currently handled by XJC, but we are seeking input on this issue. Please report this to the JAXB team.
我正在使用插件
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.4</version>
我在Google上搜索了一下,发现应该在2.1.1版本中解决此问题。
https://github.com/highsource/ogc-schemas/issues/73
或者至少看起来与我的非常相似。
但是我是2.4。我在这里想念东西吗?