-
Notifications
You must be signed in to change notification settings - Fork 99
JAXB Maven Plugin
Welcome to the org.jvnet.jaxb:jaxb-maven-plugin
(former 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 Codehaus JAXB2 Maven Plugin (
org.codehaus.mojo:jaxb2-maven-plugin
), please follow this link to the corresponding website.
- Quick Start
- User Guide
- Maven Documentation (TODO)
- Configuration Cheat Sheet (TODO)
- Common Pitfalls and Problems (TODO)
- Best Practices (TODO)
- FAQ (TODO)
- Sample Projects (TODO)
- Support
- License
- 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>4.0.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
</project>
-
Configure
your
maven-compiler-plugin
to use at least Java 8source
andtarget
versions.
- See the sample of a basic project for a simple project to start with
- See the User Guide for full usage information
- See the Configuration Cheat Sheet for a short reference of the configuration options
- See the Sample Projects for pre-configured ready-to-build project examples to try out and experiment with
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 JAXB2 Maven plugin by Oracle.
This is a completely indepentent development. I am not an Oracle employee.
- Home
- Migration guide
-
JAXB Maven Plugin
- Quick Start
-
User Guide
- Basic Usage
- Specifying What To Compile
- Referencing Resources in Maven Artifacts
- Using Catalogs
- Using Episodes
- Modular Schema Compilation
- Controlling the Output
- Using JAXB Plugins
- Using a Specific JAXB Version
- Configuring Extension, Validation and XML Security
- IDE Integration
- Miscellaneous
- Configuring Proxies
- Maven Documentation
- Configuration Cheat Sheet
- Common Pitfalls and Problems
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
-
JAXB2 Basics Plugins List
- SimpleEquals Plugin
- SimpleHashCode Plugin
- Equals Plugin
- HashCode Plugin
- ToString Plugin
- Copyable Plugin
- Mergeable Plugin
- Inheritance Plugin
- AutoInheritance Plugin
- Wildcard Plugin
- Setters Plugin
- Simplify Plugin
- EnumValue Plugin
- JAXBIndex Plugin
- FixJAXB1058 Plugin
- Commons Lang Plugin
- Default Value Plugin
- Fluent API Plugin
- Namespace Prefix Plugin
- Value Constructor Plugin
- Boolean Getter Plugin
- CamelCase Plugin
- XML ElementWrapper Plugin
- Parent Pointer Plugin
- Property Listener Injector Plugin
- Annox
- JAXB Annotate Plugin
-
HyperJAXB3
- Build System Support
- Customization Guide
- Databases
- Development guide
- Extension guide
- FAQ
- IDE Support
- Java Persistence
- JAXB
- JDK Support
- Project Templates
-
Reference
- Adding vendor-specific annotations
- Features
- Integrating Hyperjaxb3 in builds
- Introduction
- Making schema-derived classes ready for JPA
- Adding required properties
- Applying workarounds for JAXB vs. JPA conflicts
- Enforcing top-level classes
- Generating equals and hashCode methods
- Generating ORM metadata
- Generating persistence unit descriptor
- JPA 2 Support
- Making classes serializable
- Testing generated mappings
- Reference - single page
- Related Projects
- Sample projects
- Solutions
- Target Scenarios
- Test Projects
- Tutorials
- Best Practices
- FAQ
- Sample Projects
- Support
- License
- Distribution