JAXB Maven Plugin
Welcome to the org.jvnet.jaxb:jaxb-maven-plugin
, the most advanced and feature-full Maven plugin for XML Schema compilation.
Quick start
- Put your schemas (
*.xsd
) and bindings (*.xjb
) into thesrc/main/resources
folder. - Add the plugin to your
pom.xml
:
<project ...>
...
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
JAXB Versions
The current version 2.X of this plugin supports only JAXB 2.3.
If you need an older JAXB version, you can use one of the following variants, which are no more supported :
org.jvnet.jaxb2.maven2:maven-jaxb20-plugin:0.15.2
- JAXB 2.0.org.jvnet.jaxb2.maven2:maven-jaxb21-plugin:0.15.2
- JAXB 2.1.org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.15.1
- JAXB 2.2.
Java versions
Supported Java versions are 8
, and higher.
Documentation
Please refer to the wiki for the full documentation.
- User Guide
- Maven Documentation (Work in progress)
- Configuration Cheat Sheet
- Common Pitfalls and Problems (Work in progress)
- Best Practices (Work in progress)
- FAQ
- Sample Projects
- Support
- License
- JAXB Eclipse Project
Disclaimer
This project is not developed, supported or in any other way affiliated with Apache. The org.jvnet.jaxb:jaxb-maven-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 JAXB Maven plugin by Sun or Oracle.
This is a completely indepentent development. I am not an Oracle employee.
Related
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.