[ https://issues.apache.org/jira/browse/HIVE-25799?focusedWorklogId=694493&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-694493 ]
ASF GitHub Bot logged work on HIVE-25799: ----------------------------------------- Author: ASF GitHub Bot Created on: 11/Dec/21 23:19 Start Date: 11/Dec/21 23:19 Worklog Time Spent: 10m Work Description: jsoref opened a new pull request #2866: URL: https://github.com/apache/hive/pull/2866 HIVE only supports Java 8 ### What changes were proposed in this pull request? Fail build early if using a Java version that's new or older than Java 8. ### Why are the changes needed? Hive apparently doesn't support other versions ### Does this PR introduce _any_ user-facing change? Developers who try to build hive with a newer version of Java get an easy to understand error message instead of some hard to understand error message. ### How was this patch tested? I tried building w/: OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9) OpenJDK Runtime Environment Corretto-17.0.1.12.1 (build 17.0.1+12-LTS) and they both failed quickly Building with: OpenJDK Runtime Environment Corretto-8.312.07.1 (build 1.8.0_312-b07) doesn't fail quickly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 694493) Remaining Estimate: 0h Time Spent: 10m > Maven should stop early for unsupported java versions > ----------------------------------------------------- > > Key: HIVE-25799 > URL: https://issues.apache.org/jira/browse/HIVE-25799 > Project: Hive > Issue Type: Improvement > Components: Build Infrastructure > Reporter: Josh Soref > Assignee: Josh Soref > Priority: Trivial > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > I made the mistake of using my default java compiler (which apparently is 17) > to build hive, and it failed. If hive only supports a certain version (or > ranges of versions) of java, it would be incredibly helpful if maven reported > this eagerly. > This is easily achievable using the maven enforcer system (a number of > enforcers are already deployed in the top level pom): > [https://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html] -- This message was sent by Atlassian Jira (v8.20.1#820001)