You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by el...@apache.org on 2016/10/31 23:12:47 UTC

[2/3] phoenix git commit: PHOENIX-3426 Fix the broken QueryServerBasicsIT

PHOENIX-3426 Fix the broken QueryServerBasicsIT

For integration tests with MiniHBaseCluster, we have to
deal with multiple versions of protobuf on the classpath.
As such, it's easier to use the shaded artifact from Avatica
instead of re-shading that in Phoenix and trying to keep
the Phoenix classes off the test classpath.


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/f668b010
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f668b010
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f668b010

Branch: refs/heads/4.x-HBase-1.1
Commit: f668b010b40ff8a8f5f1d53c16bd64bd0d5a8a08
Parents: 0b91734
Author: Josh Elser <el...@apache.org>
Authored: Mon Oct 31 18:38:45 2016 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Mon Oct 31 18:45:58 2016 -0400

----------------------------------------------------------------------
 phoenix-queryserver/pom.xml | 33 ++++++++++-----------------------
 pom.xml                     |  5 +++++
 2 files changed, 15 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f668b010/phoenix-queryserver/pom.xml
----------------------------------------------------------------------
diff --git a/phoenix-queryserver/pom.xml b/phoenix-queryserver/pom.xml
index 12c5372..65308f8 100644
--- a/phoenix-queryserver/pom.xml
+++ b/phoenix-queryserver/pom.xml
@@ -36,7 +36,6 @@
   <properties>
     <top.dir>${project.basedir}/..</top.dir>
     <shaded.package>org.apache.phoenix.shaded</shaded.package>
-    <protobuf-java.version>3.1.0</protobuf-java.version>
   </properties>
 
   <build>
@@ -87,11 +86,6 @@
                   <include>org.apache.calcite.avatica:*</include>
                   <include>org.eclipse.jetty:*</include>
                   <include>javax.servlet:*</include>
-                  <include>org.apache.httpcomponents:*</include>
-                  <include>commons-codec:*</include>
-                  <include>commons-logging:*</include>
-                  <include>com.google.protobuf:*</include>
-                  <include>com.fasterxml.jackson.core:*</include>
                 </includes>
               </artifactSet>
               <filters>
@@ -112,22 +106,6 @@
                   <pattern>org.eclipse.jetty</pattern>
                   <shadedPattern>${shaded.package}.org.eclipse.jetty</shadedPattern>
                 </relocation>
-                <relocation>
-                  <pattern>com.google.protobuf</pattern>
-                  <shadedPattern>${shaded.package}.com.google.protobuf</shadedPattern>
-                </relocation>
-                <relocation>
-                  <pattern>com.fasterxml.jackson</pattern>
-                  <shadedPattern>${shaded.package}.com.fasterxml.jackson</shadedPattern>
-                </relocation>
-                <relocation>
-                  <pattern>org.apache.commons</pattern>
-                  <shadedPattern>${shaded.package}.org.apache.commons</shadedPattern>
-                </relocation>
-                <relocation>
-                  <pattern>org.apache.http</pattern>
-                  <shadedPattern>${shaded.package}.org.apache.http</shadedPattern>
-                </relocation>
                 <!-- Calcite/Avatica is not relocated because the wire API (as of <=1.8.0) expects
                      consistent class names on client and server. Relocating these would break
                      backwards compatibility. -->
@@ -143,10 +121,19 @@
     <dependency>
       <groupId>org.apache.phoenix</groupId>
       <artifactId>phoenix-queryserver-client</artifactId>
+      <exclusions>
+        <!-- Being pulled in via avatica to avoid pb2/pb3 issues.
+             When we use the "pre-shaded" avatica artifact, we don't
+             have to deal with the mess of multiple versions for protobuf.-->
+        <exclusion>
+          <groupId>org.apache.calcite.avatica</groupId>
+          <artifactId>avatica-core</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.apache.calcite.avatica</groupId>
-      <artifactId>avatica-core</artifactId>
+      <artifactId>avatica</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.calcite.avatica</groupId>

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f668b010/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index f3c84ab..12f90fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -749,6 +749,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.calcite.avatica</groupId>
+        <artifactId>avatica</artifactId>
+        <version>${avatica.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.calcite.avatica</groupId>
         <artifactId>avatica-core</artifactId>
         <version>${avatica.version}</version>
       </dependency>