timeplus-io / proton-java-driver

JDBC driver for Timeplus Proton
https://timeplus.com
Apache License 2.0
5 stars 0 forks source link

Feature/issue 10 fix jdbc example #11

Closed leo-cai-timeplus closed 11 months ago

leo-cai-timeplus commented 11 months ago

now, examples/jdbc can run.

leo-cai-timeplus commented 11 months ago

How to install

After clone the repository, first set up the toolchain in ~/.m2/toolchains.xml:

<?xml version="1.0" encoding="UTF8"?>
<toolchains>
    <toolchain>
        <type>jdk</type>
        <provides>
        <version>11</version>
        </provides>
        <configuration>
        <jdkHome>/path/to/jdk-11</jdkHome>
        </configuration>
    </toolchain>
</toolchains>

then run in the folder proton-java-driver

cd third-party-libraries
mvn -Drelease clean install
cd ..
cd proton-client
mvn -Drelease clean install
cd ..
cd proton-grpc-client
mvn -Drelease clean install
cd ..
cd proton-http-client
mvn -Drelease clean install
cd ..
cd proton-jdbc
mvn -Drelease clean install
cd ..
cd proton-tcp-client
mvn -Drelease clean install
cd ..

Maven Dependency

<dependency>
    <groupId>com.proton</groupId>
    <artifactId>proton-jdbc</artifactId>
    <version>0.3.3-SNAPSHOT</version>
</dependency>