Name: presto-jdbc-java6
Owner: Presto
Description: Presto JDBC driver compatible with Java 6
Created: 2015-06-04 18:49:54.0
Updated: 2018-01-23 23:24:20.0
Pushed: 2016-09-08 19:42:08.0
Homepage: null
Size: 111
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Presto JDBC driver compatible with Java 6
Many companies are still using Java 6 VM's for for old systems. The purpose of this project to allow such companies to connect to Presto database through JDBC. This cannot be done using official Presto JDBC driver as it requires Java 8 VM.
Build script is mvn
based and depends on toolchains
feature of Maven.
We need that as new version of maven require JRE 7 to run itself. And we want to compile project with JDK 6.
To configure Java 6 toolchain in ~/.m2/toolchains.xml
put
l version="1.0" encoding="UTF8"?>
lchains>
<!-- JDK toolchains -->
<toolchain>
<type>jdk</type>
<provides>
<version>1.6</version>
<vendor>sun</vendor>
</provides>
<configuration>
<jdkHome>/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/</jdkHome>
</configuration>
</toolchain>
olchains>
Replace contents of jdkHome
with path matching your machine.
To build without tests execute:
install -DskipTests=true
To run integration tests you need to explicitly specify path to JDK 8, which will be used to spawn mock Presto instance.
Run tests with command:
test -Djava8.home=/usr/lib/jvm/java-8-oracle
Replace value of java8.home
property with path valid on your system.
Build produces single library artifact presto-jdbc-java6-<version>.jar
.
Artifact does not depend on any external libraries.
After build, library will be available in ~/.m2/repository/com/facebook/presto/presto-jdbc-java6
.
Currently we do not publish artifacts from this project to central maven repository.