question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorporate jakarta.* maven artifacts instead of javax.* artifacts

See original GitHub issue

Currently, we have listed dependencies against the javax.* artifacts in Maven for our Java EE 8 dependencies. Now that the jakarta.* artifacts are in Maven in support of Jakarta EE 8, should we change our dependencies? If so, when?

To be clear, this is for the following dependencies: (We would only do this for MicroProfile 2.x since only Java EE 8 contents were transferred to Eclipse.)

  • CDI 2.0 -> 2.0.1
  • JAX-RS 2.1 -> 2.1.4
  • JSON-P 1.1 -> 1.1.5
  • JSON-B 1.0 -> 1.0.1
  • Common Annotations 1.3 -> 1.3.4

The content and functionality of these jakarta.* dependencies have to be the same as their corresponding javax.* parts (this is required to allow for Java EE 8 compliance in Eclipse). The java package names are not changing. This is just for the maven coordinates in the pom.xml files.

Example for CDI 2.0.1…

Current:

        <dependency>
            <groupId>javax.enterprise</groupId>
            <artifactId>cdi-api</artifactId>
            <version>2.0</version>
        </dependency>

Proposed:

        <dependency>
            <groupId>jakarta.enterprise</groupId>
            <artifactId>javax.enterprise.cdi-api</artifactId>
            <version>2.0.1</version>
        </dependency>

When we make this change, it should get applied to the Platform pom.xml as well as the individual Component pom.xml files.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kenfinnigancommented, Jan 24, 2019

I think maybe either wait for Jakarta EE 8 spec to have a release, or Jakarta EE 9

0reactions
kwsuttercommented, Jan 24, 2019

Agree, @kenfinnigan. The more I thought about this, the less that I think we have work to do… Our MicroProfile implementations could still eventually claim Jakarta EE compliance, even if our dependencies are still referencing the original Java EE artifacts. So, maybe until we want to claim support for Jakarta EE 9, maybe there’s nothing to do???

FYI, eventually there will be a “Jakarta EE 8”. The Jakarta EE Steering and Spec Committees are currently working through that definition. We need to define the TCK process, the branding process, the Spec process, etc. But, once we get all of that in place, Jakarta EE 8 will be “a thing”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven artifact for Java EE and hibernate - Stack Overflow
I'm looking for a Maven artifact which can generate code for a Java EE web application + Hibernate + Spring. It should use...
Read more >
Transition from Java EE to Jakarta EE - Oracle Blogs
The API JAR files had their Maven group ID changed from javax.* to jakarta.* , indicating that they are the build artifacts produced...
Read more >
The Javax → Jakarta mess, and a Gradle solution
We could have had javax.* artifacts (I'm talking about Maven coordinates here) using the javax.* package names, and jakarta.
Read more >
Jakarta EE Maven Coordinates - Eclipsepedia
Eclipse Project for Old Maven Coordinates New Maven Coordinates JSON Processing javax.json. javax.json‑api jakarta.json. jakarta.json‑api JACC javax.security.jacc. javax.security.jacc‑api jakarta.security.jacc. jakarta.se... JAF javax.activation. javax.activation‑api jakarta.activation. jakarta.activ...
Read more >
POM Reference - Maven
For example, all core Maven artifacts do (well, should) live under the groupId ... for the project, but instead checks to ensure that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found