JAXB2 Maven Plugin

Welcome to the org.jvnet.jaxb2.maven2:maven-jaxb2-plugin, the most advanced and feature-full Maven plugin for XML Schema compilation.

This Maven plugin wraps and enhances the JAXB Schema Compiler (XJC) and allows compiling XML Schemas (as well as WSDL, DTDs, RELAX NG) into Java classes in Maven builds.

If you are interested in the Mojohaus JAXB2 Maven Plugin (org.codehaus.mojo:jaxb2-maven-plugin), please follow this link to the corresponding website.

Quick start

<project ...>

JAXB Versions

If you need a specific JAXB version, you can explicitly use one of the following variants:

Java versions

Supported Java versions are 1.7, 1.8, 9 (only maven-jaxb2-plugin and maven-jaxb23-plugin).

Java version 1.6 is no longer supported (since version 0.14.0).


Please refer to the wiki for the full documentation.


This project is not developed, supported or in any other way affiliated with Apache. The org.jvnet.jaxb2.maven2:maven-jaxb2-plugin is not an Apache product (and does not pretend to be one), it is a completely independent development.

This project is also not developed by or affiliated with Oracle or Sun. Even if it is featured on https://jaxb.java.net/ pages,

This plugin is in no way official JAXB2 Maven plugin by Sun or Oracle.

This is a completely indepentent development. I am not an Oracle employee.