Helix Issue 1319: Fix Maven builds failing on on Java 11 and above#1424
Merged
narendly merged 1 commit intoapache:masterfrom Oct 2, 2020
brentwritescode:master
Merged
Helix Issue 1319: Fix Maven builds failing on on Java 11 and above#1424narendly merged 1 commit intoapache:masterfrom brentwritescode:master
narendly merged 1 commit intoapache:masterfrom
brentwritescode:master
Conversation
The helix-zookeeper and helix-core subprojects fail to build on later versions of Java due to changes in the structure of the JDK starting in Java 11. These dependencies on older J2EE packages are no longer in the JDK and must now be pulled from Maven directly.
Contributor
Author
|
Is it possible that this might be a transient test failure? If I run the |
narendly
approved these changes
Oct 2, 2020
Contributor
There was a problem hiding this comment.
Thanks @brentwritescode .
I've also went over the testing page, and it reads good to me. One tip: you don't need to embed the issue number in your commit title- that's why we require contributors to include the issue number in the PR description. PR number automatically gets embedded (#1424). Looking forward to your continued contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
(Fixes #1319 )
Description
A small addition of Maven dependencies to make Apache Helix build successfully on Java 11 and above out-of-the-box. The core issue is that, as of Java 11, some legacy J2EE-related packages such as javax.annotation.* and javax.xml.bind.* have been removed from the JDK, but the helix/zookeeper-api and helix-core sub-builds of the project still require these libraries. For Java 11 and beyond, these packages need to be fetched from Maven Central.
See the following for more details: http://openjdk.java.net/jeps/320
Tests
n/a
I ran "mvn test" on OpenJDK v1.8.0_265 and OpenJDK v11.0.8 on Ubuntu 18.04. Per the discussion on #1319, I ran tests individually (i.e. "mvn clean install package") for the following modules: /helix-core, /zookeeper-api, /helix-rest, /helix-common
This is a summary of the results:
In both Java versions there were failures in /helix-core, but when I ran the failing tests by themselves, they passed (again, per discussion in the linked issue).
Documentation (Optional)
New pages:
Updated pages:
Commits
Helix Issue 1319: Fix Maven builds failing on on Java 11 and above
The helix-zookeeper and helix-core subprojects fail to build on later
versions of Java due to changes in the structure of the JDK starting
in Java 11. These dependencies on older J2EE packages are no longer
in the JDK and must now be pulled from Maven directly.
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)
I verified that pom.xml formatting matches existings pom.xml formatting (including tabs vs. spaces).