phax / ph-jaxb-pom

A simple POM wrapper to consistently include JAXB 2.2 and 2.3
Apache License 2.0
0 stars 0 forks source link

ph-jaxb-pom

A POM only project that contains all dependencies for easily using JAXB from Maven.

Currently it is very tedious to include all artefacts relevant for JAXB into each and every POM manually. Therefore I created this project to provide an easy to use POM for using JAXB from within Maven.

This project can be used for JAXB 4.x and requires at least Java 11.

News and noteworthy

Maven usage

Include it in your regular Maven dependencies but explicitly state the type pom:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-jaxb-pom</artifactId>
  <version>2.0.0</version>
  <type>pom</type>
  <scope>import</scope>
</dependency>

Gradle usage (for issues up to v1.0.3)

As Gradle does not support Maven profile activation by JDK version, this section outlines the includes per JDK version (as of ph-jaxb-pom 1.0.1).

With JDK 8, include the following dependencies:

With JDK 9 or later, include the following dependencies:

The exclusion of this POM might be necessary via exclude group: 'com.helger', module: 'ph-jaxb-pom'


My personal Coding Styleguide | It is appreciated if you star the GitHub project if you like it.