问题描述
我有很多复杂类型的架构,具有以下扩展名:
<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>
我已经阅读了所有可用的答案,但没有任何帮助我知道如何解决此错误?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)