How to generate Java from XSD using MOXy under Maven-3?

What is the easiest / best way to generate Java from XSD using MOXy under Maven-3? The JAXB reference interface has a nice Maven plugin, but it does not support MOXy.

Does anyone have a specific suggestion? (I know that I can write ant - script, or a plugin, or ...)

+4
source share
1 answer

EclipseLink MOXy has not yet proposed a Maven plugin to run an XML schema into a Java compiler. To track this feature, I entered the following extension request:

MOXy uses the XJC component from the reference implementation, so you can access this Maven plug-in and add then add the jaxb.properties file specifying MOXy as the JAXB provider:

+3
source

All Articles