java – Replacements for deprecated JPMS modules with Java EE API

Instead of using the outdated Java EE modules, use the following resources.

JAF (Java.activation)

JavaBeans Activiation Framework is a standalone technology (available on Maven Central):

<dependency>
    <groupId>com.Sun.activation</groupId>
    <artifactId>javax.activation</artifactId>
    <version>1.2.0</version>
</dependency>

( Source )

CORBA (Java.corba)

From JEP 320 :

There will be no standalone version of CORBA unless third parties take over the maintenance of the CORBA API, ORB implementation, CosNaming provider, etc. Third party maintenance is possible because the Java SE platform approves independent implementations of CORBA. In contrast, the API for RMI-IIOP is defined and implemented exclusively within Java SE. There will not be a standalone version of RMI-IIOP unless a dedicated JSR is started to maintain it, or API management is taken over by the Eclipse Foundation (the transition of Java EE administration from JCP to Eclipse Foundation includes GlassFish and its implementation of CORBA and RMI-IIOP).

JTA (Java.transaction)

Stand alone version:

<dependency>
    <groupId>javax.transaction</groupId>
    <artifactId>javax.transaction-api</artifactId>
    <version>1.2</version>
</dependency>

( Source ; take a look at how to use 1.2 and imminent 1.3 on the class and module path.)

JAXB (Java.xml.bind)

Reference implementation:

<!-- Java 6 = JAXB version 2.0   -->
<!-- Java 7 = JAXB version 2.2.3 -->
<!-- Java 8 = JAXB version 2.2.8 -->
<!-- Java 9 = JAXB version 2.3.0 -->
<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.2.8</version>
</dependency>
<dependency>
    <groupId>com.Sun.xml.bind</groupId>
    <artifactId>jaxb-core</artifactId>
    <version>2.2.8</version>
</dependency>
<dependency>
    <groupId>com.Sun.xml.bind</groupId>
    <artifactId>jaxb-impl</artifactId>
    <version>2.2.8</version>
</dependency>

( Source ; JEP 320 explains where to get schemagen And xjc from.)

JAX-WS (Java.xml.ws)

Reference implementation:

<dependency>
    <groupId>com.Sun.xml.ws</groupId>
    <artifactId>jaxws-ri</artifactId>
    <version>2.3.0</version>
    <type>pom</type>
</dependency>

( Source ; also explains where to get wsgen And wsimport from.)

Common annotations (Java.xml.ws.annotation)

Java Commons annotations (available on Maven Central):

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>javax.annotation-api</artifactId>
    <version>1.3.1</version>
</dependency>

( Source )

Leave a comment