module-info.java in the various projects which comprise a working JAXB include:
requires transitive jakarta.activation;
For example, https://github.com/eclipse-ee4j/jaxb-ri/blob/master/jaxb-ri/runtime/impl/src/main/java/module-info.java#L23
But under Java 10, when installing my project which uses JAXB, maven complains:
[ERROR] module org.jvnet.staxex reads package javax.activation from both java.activation and jakarta.activation
[ERROR] module com.sun.xml.bind reads package javax.activation from both java.activation and jakarta.activation
[ERROR] the unnamed module reads package javax.activation from both jakarta.activation and java.activation
Since I can't see how to hide java.activation, I started re-compiling the various JAXB projects so they require java.activation instead of jakarta.activation
This works, but it can't be the correct solution! How do I hide/exclude java.activation in Java 10? thanks.