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.
<dependencies>
to enforce using it as a BOMInclude 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>
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.