【发布时间】:2016-03-18 03:50:32
【问题描述】:
我在运行“mvn clean install”时收到此错误
由 JAXB 抛出:
[错误] JAXB 抛出:'ArrayOfstring' 已定义
[错误]
[错误] 由 JAXB 引发:(与上述错误相关)此处出现第一个定义
[错误]
[错误] JAXB 抛出:'ArrayOfstring' 已定义
ArrayOfString 多次出现在使用相同命名空间的多个 XSD 文件中。
wsdl0:
<xsd:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<xsd:complexType name="ArrayOfstring">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ArrayOfstring" nillable="true" type="tns:ArrayOfstring"/>
</xsd:schema>
wsdl1:
<xsd:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<xsd:complexType name="ArrayOfstring">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ArrayOfstring" nillable="true" type="tns:ArrayOfstring"/>
</xsd:schema>
</wsdl:types>
我将如何解决这个问题?我假设我必须使用外部绑定文件...谢谢!
山姆
【问题讨论】: