Maven JAXB 2.2.x Plugin

Maven2 plugin for JAXB 2.x XJC compiler to generate Java sources from XML Schemas.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.helger.maven
ArtifactId

ArtifactId

maven-jaxb22-plugin
Last Version

Last Version

0.14.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven JAXB 2.2.x Plugin
Maven2 plugin for JAXB 2.x XJC compiler to generate Java sources from XML Schemas.
Project Organization

Project Organization

Philip Helger

Download maven-jaxb22-plugin

How to add to project

<plugin>
    <groupId>com.helger.maven</groupId>
    <artifactId>maven-jaxb22-plugin</artifactId>
    <version>0.14.3</version>
</plugin>

Dependencies

compile (17)

Group / Artifact Type Version
com.helger.maven : maven-jaxb2-plugin-core jar 0.14.3
org.codehaus.plexus : plexus-utils jar 1.5.15
org.glassfish.jaxb : jaxb-runtime jar 2.2.11
org.glassfish.jaxb : jaxb-core jar 2.2.11
javax.xml.bind : jaxb-api jar 2.2.11
org.glassfish.jaxb : txw2 jar 2.2.11
com.sun.istack : istack-commons-runtime jar 3.0.5
org.jvnet.staxex : stax-ex jar 1.8.2
com.sun.xml.fastinfoset : FastInfoset jar 1.2.13
com.sun.activation : javax.activation jar 1.2.0
org.glassfish.jaxb : jaxb-xjc jar 2.2.11
com.sun.xsom : xsom jar 20140925
org.glassfish.jaxb : codemodel jar 2.3.2
com.sun.xml.bind.external : rngom jar 2.3.2
com.sun.xml.dtd-parser : dtd-parser jar 1.2
com.sun.istack : istack-commons-tools jar 3.0.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (2)

Group / Artifact Type Version
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 2.1
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

JAXB2 Maven Plugin

Build Status Maven Central License

This is a fork of https://github.com/highsource/maven-jaxb2-plugin

Forked from 0.14.1-SNAPSHOT

I created it because of https://github.com/highsource/maven-jaxb2-plugin/issues/173

I kicked JAXB 2.0 and 2.1 because I don't need it

Introduction

Welcome to the com.helger.maven: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

  • Put your schemas (*.xsd) and bindings (*.xjb) into the src/main/resources folder.
  • Add the plugin to your pom.xml:
<project ...>
  ...
  <build>
    <plugins>
      ...
      <plugin>
        <groupId>com.helger.maven</groupId>
        <artifactId>maven-jaxb2-plugin</artifactId>
        <version>0.14.3</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

JAXB Versions

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

  • com.helger.maven:maven-jaxb22-plugin - JAXB 2.2.
  • com.helger.maven:maven-jaxb23-plugin - JAXB 2.3.
  • com.helger.maven:maven-jaxb2-plugin - "most actual version", at the moment same as com.helger.maven:maven-jaxb23-plugin.

Java versions

Supported Java versions are 1.8 and onwards.

Documentation

Please refer to the Wiki for the full documentation.

Disclaimer

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 independent development. I am not an Oracle employee.

Versions

Version
0.14.3
0.14.2
0.14.1