Java 9 deprecated six modules that contain Java EE APIs and they are going to be removed soon:
javax.activation
pack
Just a minor variation (improvement) on the above answers --- exemplified here for JAXB only. One can add the dependencies with the runtime
scope and only if this is effectively needed (i.e. when building for running in a JRE with version >= 9 --- here v11 is exemplified):
when-on-jdk-11
11
2.3.1
2.3.2
javax.xml.bind
jaxb-api
${jaxb-api.version}
runtime
org.glassfish.jaxb
jaxb-runtime
${jaxb-impl.version}
runtime