| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>doris.arrowflight.demo</groupId> |
| <artifactId>java</artifactId> |
| <version>0.1</version> |
| |
| <properties> |
| <maven.compiler.source>17</maven.compiler.source> |
| <maven.compiler.target>17</maven.compiler.target> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <!-- |
| Notice !!! Arrow and ADBC versions cannot be combined arbitrarily. |
| |
| 1. For ADBC 0.15.0, please use Arrow 18.0.0 and after, not compatible with previous versions of Arrow. |
| 2. Try not to use Arrow 17.0.0, may get the following error: |
| ``` |
| Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2 |
| at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable.ensureFieldAccessorsInitialized(GeneratedMessageV3.java:2094) |
| at org.apache.arrow.flight.sql.impl.FlightSql$ActionCreatePreparedStatementRequest.internalGetFieldAccessorTable(FlightSql.java:16332) |
| at com.google.protobuf.GeneratedMessageV3.getDescriptorForType(GeneratedMessageV3.java:139) |
| at com.google.protobuf.Any.pack(Any.java:61) |
| at org.apache.arrow.flight.sql.FlightSqlClient.prepare(FlightSqlClient.java:767) |
| at org.apache.arrow.flight.sql.FlightSqlClient.prepare(FlightSqlClient.java:746) |
| at org.apache.arrow.driver.jdbc.client.ArrowFlightSqlClientHandler.prepare(ArrowFlightSqlClientHandler.java:310) |
| ``` |
| similar issue: https://github.com/protocolbuffers/protobuf/issues/15762 |
| 3. A more stable version is Arrow 15.0.2 and ADBC 0.12.0, but we always hope to embrace the future with new versions! |
| --> |
| <arrow.version>18.2.0</arrow.version> |
| <adbc.version>0.18.0</adbc.version> |
| <log4j.version>2.17.1</log4j.version> |
| </properties> |
| <dependencies> |
| <!-- If Maven cannot find the Arrow or Adbc version of the dependency, update the Maven central repository. |
| Arrow and Adbc are updated frequently, and we always try to use the latest version as much as possible. --> |
| <dependency> |
| <groupId>org.apache.arrow.adbc</groupId> |
| <artifactId>adbc-driver-jdbc</artifactId> |
| <version>${adbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow.adbc</groupId> |
| <artifactId>adbc-driver-flight-sql</artifactId> |
| <version>${adbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>8.0.33</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-memory-core</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-memory-netty</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-vector</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-vector</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>flight-core</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>flight-sql</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.arrow.adbc</groupId> |
| <artifactId>adbc-core</artifactId> |
| <version>${adbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow.adbc</groupId> |
| <artifactId>adbc-driver-manager</artifactId> |
| <version>${adbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow.adbc</groupId> |
| <artifactId>adbc-sql</artifactId> |
| <version>${adbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>flight-sql-jdbc-core</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.13.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <version>RELEASE</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- Java Compiler --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.10.1</version> |
| <configuration> |
| <source>${maven.compiler.source}</source> |
| <target>${maven.compiler.target}</target> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.4.1</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <transformers> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| </transformer> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |