How to generate Java from an XSD using MOXy under Maven-3?
Question
What's the easiest/best way to generate Java from an XSD using MOXy under Maven-3? The reference JAXB interface has a nice Maven plugin, but it doesn't appear to support MOXy.
Does anyone have anything concrete to offer? (I know I can write ant-script, or a plugin, or ...)
Solution
EclipseLink MOXy, does not yet offer a Maven plugin to run the XML schema to Java compiler. I have entered the following enhancement request to track this functionality:
MOXy leverages the XJC component from the reference implementation, so you could access that Maven plug-in and add then add the jaxb.properties
file specifying MOXy as the JAXB provider:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow