When switching my grails app from Java 8 to Java >=9 (actually testing with Java 11) I get different ClassNotFound exceptions.
The problem is, that some Java EE API modules are marked @Deprecated(forRemoval=true), so they may be removed in Java 11.
I already upgraded another app, that's having a Maven pom.xml file. Adding these deps, resolves the problem:
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
But now I have to update an app that has no pom file. For now I've imported the project in IntelliJ. I tried to add a Maven/pom.xml but everytime I build the exploded war and run it with Jetty, the deps can't be found.
Resolve java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
What is the proposed way to add these missing deps (with or without using Maven)?