From 87dde1babeedfef8e7d867c37d442000d92fb997 Mon Sep 17 00:00:00 2001 From: Rafael Telles Date: Thu, 2 Sep 2021 15:06:33 -0300 Subject: [PATCH] Flight SQL Ratification Based On Community Feedback #8 (#113) * Change scope of arrow-memory-netty to test for flight-sql * Remove unused dependency arrow-memory-netty * Update common-pool2 and common-dbcp2 dependencies * Remove 'executions' from parent pom.xml for plugin protobuf-maven-plugin * Adjust protobuf-maven-plugin settings on pom.xml files * Move dep.protobuf.version and dep.grpc.version to top pom.xml * Remove from arrow-flight's pom.xml --- java/flight/flight-grpc/pom.xml | 60 ++++++++++++++------------------- java/flight/flight-sql/pom.xml | 15 ++------- java/flight/pom.xml | 18 ---------- java/pom.xml | 31 ++++++----------- 4 files changed, 37 insertions(+), 87 deletions(-) diff --git a/java/flight/flight-grpc/pom.xml b/java/flight/flight-grpc/pom.xml index 0a015c4d88fbf..e2ecac1de485b 100644 --- a/java/flight/flight-grpc/pom.xml +++ b/java/flight/flight-grpc/pom.xml @@ -24,8 +24,6 @@ jar - 1.30.2 - 3.7.1 1 @@ -93,39 +91,31 @@ - - - - kr.motd.maven - os-maven-plugin - 1.5.0.Final - - - - - org.xolstice.maven.plugins - protobuf-maven-plugin - - com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier} - false - grpc-java - io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier} - - - - test - - ${basedir}/src/test/protobuf - ${project.build.directory}/generated-test-sources//protobuf - - - compile - compile-custom - - - - - + + + org.xolstice.maven.plugins + protobuf-maven-plugin + + com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier} + false + grpc-java + io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier} + + + + test + + ${basedir}/src/test/protobuf + ${project.build.directory}/generated-test-sources//protobuf + + + compile + compile-custom + + + + + diff --git a/java/flight/flight-sql/pom.xml b/java/flight/flight-sql/pom.xml index 387598fdf5948..f1ace2ee0eada 100644 --- a/java/flight/flight-sql/pom.xml +++ b/java/flight/flight-sql/pom.xml @@ -57,12 +57,6 @@ arrow-format ${project.version} - - org.apache.arrow - arrow-memory-netty - ${project.version} - runtime - org.apache.arrow arrow-jdbc @@ -111,7 +105,7 @@ org.apache.commons commons-dbcp2 - 2.7.0 + 2.9.0 test @@ -123,7 +117,7 @@ org.apache.commons commons-pool2 - 2.8.1 + 2.11.1 test @@ -137,11 +131,6 @@ 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 diff --git a/java/flight/pom.xml b/java/flight/pom.xml index 2eec2a31e5971..9c3e6990c4215 100644 --- a/java/flight/pom.xml +++ b/java/flight/pom.xml @@ -21,30 +21,12 @@ Arrow Flight arrow-flight - https://arrow.apache.org/blog/2019/10/13/introducing-arrow-flight/ pom - - 1.30.2 - 3.17.3 - - flight-core flight-grpc flight-sql - - - - - - kr.motd.maven - os-maven-plugin - 1.5.0.Final - - - - diff --git a/java/pom.xml b/java/pom.xml index 588177299660c..cbbb15f066f0d 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -38,6 +38,8 @@ 2.7.1 1.12.0 1.10.0 + 1.30.2 + 3.17.3 2 true @@ -84,6 +86,14 @@ + + + + kr.motd.maven + os-maven-plugin + 1.5.0.Final + + @@ -492,27 +502,6 @@ grpc-java io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier} - - - proto-compile - generate-sources - - ${basedir}/../format/ - - - compile - compile-custom - - - - proto-test-compile - generate-test-sources - - test-compile - test-compile-custom - - -