[
https://issues.apache.org/jira/browse/PHOENIX-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16703995#comment-16703995
]
Andrew Purtell commented on PHOENIX-5022:
-----------------------------------------
[~elserj] [~tdsilva] Please consider raising a discussion on dev@hbase about
Java 7 and HBase 1.x. I'm going to cut branch-1.5 and make a release candidate
for 1.5.0 as soon as HBASE-21464 is in and 1.4.9 is out containing it. So,
before the end of this year. I think the occasion of a new minor release is a
good time to reevaluate our JRE/JDK support, and whether we need to bend to
current realities.
Although I think [~jamestaylor]'s suggestion is workable. I think you can set
the compiler configuration per module POM, try putting this in the POM for
phoenix-queryserver:
{code:java}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>{code}
> For 1.x branches, phoenix-queryserver encounters build failure
> --------------------------------------------------------------
>
> Key: PHOENIX-5022
> URL: https://issues.apache.org/jira/browse/PHOENIX-5022
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: Josh Elser
> Priority: Blocker
> Fix For: 4.15.0
>
>
> It's likely been masked by frequent failures/flappers in phoenix-core, but
> we're (maybe) finally able to run all the tests successfully. Maybe a Java 8
> dependency snuck in again?
>
> From this build: [https://builds.apache.org/job/Phoenix-omid2/150/console]
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on
> project phoenix-queryserver: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.20:test failed:
> java.lang.UnsupportedClassVersionError:
> org/apache/calcite/avatica/server/HttpServer$Builder : Unsupported
> major.minor version 52.0 -> [Help 1]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)