This plugin uses JAXB2 to generate Java classes from XML Schemas (and binding files) and to create XML Schemas for existing Java classes.
The Java Architecture for XML Binding (JAXB) enables translation between Java classes and XML documents. JAXB2 is specified by JSR-222.
The JAXB-2 Maven Plugin requires Maven 2+ and JDK 1.5+ and makes use of the JAXB Binding Compiler (xjc)
The plugin defines two main goals (see official documentation for more goals)
jaxb2:xjc
- runs the xjc compiler to generate Java classes from XML Schema(s) and binding file(s)jaxb2:schemagen
- generates XML Schemas from JAXB annotated Java classes