0 Replies Latest reply: Mar 20, 2014 10:35 AM by 2fdf21c8-1136-4b9e-8b53-0cea41951c1d RSS

    How to use com.sun.tools.jxc.SchemaGenTask with JDK8

    2fdf21c8-1136-4b9e-8b53-0cea41951c1d

      The problem discussed in

      https://community.oracle.com/thread/2458897

      still exists, even with the final release of JDK8.

       

      In the JDK8 documentation page

      http://download.java.net/jdk8/docs/technotes/guides/xml/jaxb/index.html

      there are instructions:

      "

      Running the schema generator (schemagen): [command-line instructions, using the SchemaGen Ant task]

      "
      that are not working any more, because some classes have been removed:

      for example: the "AnnotationProcessorFactory".

       

      Removing this class was planned in JEP 117:

      http://openjdk.java.net/jeps/117

       

      There is still no working alternative offered.

      In my case I am trying to automate XSD schema file generation from annotated Java sources as part of a (Apache Maven based) build process .