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


      The problem discussed in


      still exists, even with the final release of JDK8.


      In the JDK8 documentation page


      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:



      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 .