Maven JAXB Plugin Project

Maven plugin for JAXB 2.x and 3.x XJC compiler to generate Java sources from XML Schemas.

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

com.evolvedbinary.maven.jvnet
ArtifactId

ArtifactId

jaxb-maven-plugin-project
Last Version

Last Version

0.15.0
Release Date

Release Date

Type

Type

pom
Description

Description

Maven JAXB Plugin Project
Maven plugin for JAXB 2.x and 3.x XJC compiler to generate Java sources from XML Schemas.
Project URL

Project URL

https://github.com/evolvedbinary/jvnet-jaxb-maven-plugin
Source Code Management

Source Code Management

http://github.com/evolvedbinary/jvnet-jaxb-maven-plugin

Download jaxb-maven-plugin-project

How to add to project

<!-- https://jarcasting.com/artifacts/com.evolvedbinary.maven.jvnet/jaxb-maven-plugin-project/ -->
<dependency>
    <groupId>com.evolvedbinary.maven.jvnet</groupId>
    <artifactId>jaxb-maven-plugin-project</artifactId>
    <version>0.15.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.evolvedbinary.maven.jvnet/jaxb-maven-plugin-project/
implementation 'com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-project:0.15.0'
// https://jarcasting.com/artifacts/com.evolvedbinary.maven.jvnet/jaxb-maven-plugin-project/
implementation ("com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-project:0.15.0")
'com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-project:pom:0.15.0'
<dependency org="com.evolvedbinary.maven.jvnet" name="jaxb-maven-plugin-project" rev="0.15.0">
  <artifact name="jaxb-maven-plugin-project" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.evolvedbinary.maven.jvnet', module='jaxb-maven-plugin-project', version='0.15.0')
)
libraryDependencies += "com.evolvedbinary.maven.jvnet" % "jaxb-maven-plugin-project" % "0.15.0"
[com.evolvedbinary.maven.jvnet/jaxb-maven-plugin-project "0.15.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • plugin-core
  • plugin-2.2
  • plugin-2.3
  • plugin-3.0
  • plugin
  • testing

JAXB Maven Plugin

CI Maven Central License

  • Supports JAXB 2 and JAXB 3.

Provenance

This is a fork of the JAXB2 Maven Plugin from phax/maven-jaxb2-plugin, which is itself a fork on highsource/maven-jaxb2-plugin, and we suspect that was itself a fork of the javaee/metro-maven-jaxb2-plugin which originated from java.net.

The plugin from which this was forked has been commonly known as the: "jvmnet JAXB2 Plugin".

The purpose of our fork is to add support for JAXB 3.

Notes on Licensing

The forks from which this project came claim that it is licensed under a BSD-2 Clause license. However, there is also evidence of Apache 2.0 licensed code within the project. The code in the original java.net project appears instead to have been dual-licensed as CDDL 1.1 and GPL 2 + Classpath Exception license.

Whilst we believe it is likely that this code is Open Source and resides under a mix of the above discussed licenses, the exact licensing of the code remains murky at best.

Introduction

Welcome to the JAXB Maven 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:

For JAXB 3:

<project ...>
  ...
  <build>
    <plugins>
      ...
      <plugin>
        <groupId>com.evolvedbinary.maven.jvnet</groupId>
        <artifactId>jaxb30-maven-plugin</artifactId>
        <version>0.15.0</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For JAXB 2:

Use: <artifactId>jaxb2-maven-plugin</artifactId> instead.

JAXB Versions

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

  • com.evolvedbinary.maven.jvnet:jaxb30-maven-plugin - JAXB 3.0.
  • com.evolvedbinary.maven.jvnet:jaxb23-maven-plugin - JAXB 2.3.
  • com.evolvedbinary.maven.jvnet:jaxb22-maven-plugin - JAXB 2.2.
  • com.evolvedbinary.maven.jvnet:jaxb2-maven-plugin - "latest 2.x version"; at the moment this is same as com.evolvedbinary.maven.jvnet:jaxb23-maven-plugin.

Java versions

Supported Java versions are 1.8 and onwards.

Documentation

Please refer to the Wiki for the full documentation.

Support

Whilst this fork is an Open Source project, developing this plugin is not our key occupation. We are happy for users to open issues, however we make no claims that we will investigate or resolve them.

We will gladly accept and merge Pull-Requests that address issues, but they must be accompanied by tests and be compatible with Java 8+.

The original author of the plugin may also be able to offer you some support, see Support.

com.evolvedbinary.maven.jvnet

Evolved Binary

Versions

Version
0.15.0