如何解决jaxb2:xjc两个声明在ObjectFactory类中引起冲突在XSD中使用类型扩展名时
我有很多复杂类型的架构,具有以下扩展名:
<xs:complexType name="GenericFieldValue">
<xs:choice>
<xs:element name="String" nillable="true">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:element name="Value">
<xs:complexType>
<xs:complexContent>
<xs:extension base="aip:GenericFieldValue">
<xs:attribute name="Type" type="aip:GenericDataFieldType" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Maven插件如下:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.basedir}/src/main/java/schema</outputDirectory>
<sources>
<source>${project.basedir}/src/main/resources/schema/SITA_AIP_Message.xsd</source>
</sources>
<externalEntityProcessing>true</externalEntityProcessing>
<clearOutputDir>false</clearOutputDir>
</configuration>
</plugin>
我收到此编译错误 Error
我已经阅读了所有可用的答案,但没有任何帮助我知道如何解决此错误?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。