Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7358

cxf-xjc-plugin 3.1.0 for maven not generating enumerations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.1.11
    • Invalid
    • JAXB Databinding
    • 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>

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            jsfranko J. Scott Franko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: