When I try to use maven-jaxb-schemagen-plugin
with java 7
<groupId>com.sun.tools.jxc.maven2</groupId> <artifactId>maven-jaxb-schemagen-plugin</artifactId> <version>1.2</version>
I get an error message:
[ERROR] Failed to execute goal com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin:1.2:generate (default) on project TopologyProvisionerDom: Execution default of goal com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin:1.2:generate failed: A required class was missing while executing com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin:1.2:generate: com/sun/mirror/apt/AnnotationProcessorFactory
It seems that AnnotationProcessorFactory
is being deleted / deprecated in Java 7? Can jaxb schemagen be used to work with this plugin? Is there an alternative approach for getting schema generation from JAXB source code using JDK 7?
lexicalscope
source share