Open mbennett-uoe opened 4 years ago
Adding the following dependency to datavault-common/pom.xml fixes the issue for Java 11+
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
The java.xml.bind module was part of Java EE and was deprecated in Java 9. It was finally removed in Java 11, meaning DataVault will not compile under the latest versions of the JDK.
For info see here: https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html#JDK-8190378
There is a replacement in the form of a Reference Implementation of JAXB, which is available as a Maven artifact: https://mvnrepository.com/artifact/javax.xml.bind
In theory, adding a dependency to the relevant pom.xml should fix the issue by pulling in the above mentioned artifact. I will try this on my local deployment and report back.