Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.1.11
-
None
-
maven java project, eclipse external build, windows 7,
-
Unknown
Description
plugin
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-xjc-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<extensions>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.1.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-bug986:3.1.0</extension>
</extensions>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>xsdtojava</goal>
</goals>
<configuration>
<xsdOptions>
<xsdOption>
<xsd>src/main/resources/RdsXmlSchema.xsd</xsd>
<packagename>com.fedex.vision.rds.schema</packagename>
</xsdOption>
</xsdOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
xsd
<xsd:element name="message">
...
<xsd:attribute name="messageType" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="raw"/>
<xsd:enumeration value="processed"/>
<xsd:enumeration value="ids"/>
<xsd:enumeration value="rfi"/>
<xsd:enumeration value="rfiResponse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>