From e0d1ffb65b209d2b1481f9f6ddae95e3ddd4c00a Mon Sep 17 00:00:00 2001 From: Rafael Telles Date: Thu, 26 Aug 2021 16:43:25 -0300 Subject: [PATCH] Fix missing generated sources on built flight-sql jar (#101) --- java/flight/flight-core/pom.xml | 2 -- java/flight/flight-sql/pom.xml | 50 +++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/java/flight/flight-core/pom.xml b/java/flight/flight-core/pom.xml index 8b252f6563d61..48381d9967189 100644 --- a/java/flight/flight-core/pom.xml +++ b/java/flight/flight-core/pom.xml @@ -24,8 +24,6 @@ jar - 1.41.0 - 3.7.1 1 diff --git a/java/flight/flight-sql/pom.xml b/java/flight/flight-sql/pom.xml index 7dfdcc90acb46..387598fdf5948 100644 --- a/java/flight/flight-sql/pom.xml +++ b/java/flight/flight-sql/pom.xml @@ -23,6 +23,10 @@ (Experimental)Contains utility classes to expose Flight SQL semantics for clients and servers over Arrow Flight jar + + 1 + + org.apache.arrow @@ -57,22 +61,37 @@ org.apache.arrow arrow-memory-netty ${project.version} - test + runtime org.apache.arrow arrow-jdbc ${project.version} + + io.grpc + grpc-protobuf + ${dep.grpc.version} + com.google.guava guava + + io.grpc + grpc-stub + ${dep.grpc.version} + com.google.protobuf protobuf-java ${dep.protobuf.version} + + io.grpc + grpc-api + ${dep.grpc.version} + org.apache.arrow arrow-vector @@ -110,7 +129,34 @@ org.hamcrest hamcrest - test + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + + com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier} + grpc-java + io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier} + + + + proto-compile + generate-sources + + ${basedir}/../../../format/ + + + compile + compile-custom + + + + + + +