You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2021/05/14 05:20:12 UTC

[phoenix] branch 4.x updated: PHOENIX-6442 Phoenix should depend on the appropriate tephra-hbase-compat-x.y module

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x by this push:
     new 9e91e5c  PHOENIX-6442 Phoenix should depend on the appropriate tephra-hbase-compat-x.y module
9e91e5c is described below

commit 9e91e5cb21f843c0534ee95d380640ea21554fde
Author: Istvan Toth <st...@apache.org>
AuthorDate: Mon Apr 26 08:52:04 2021 +0200

    PHOENIX-6442 Phoenix should depend on the appropriate tephra-hbase-compat-x.y module
---
 phoenix-core/pom.xml | 104 ++++++++++++++++++++++++++++++++++-----------------
 pom.xml              |   7 +++-
 2 files changed, 76 insertions(+), 35 deletions(-)

diff --git a/phoenix-core/pom.xml b/phoenix-core/pom.xml
index 227f416..62085c7 100644
--- a/phoenix-core/pom.xml
+++ b/phoenix-core/pom.xml
@@ -303,7 +303,7 @@
     </dependency>
     <dependency>
       <groupId>org.apache.tephra</groupId>
-      <artifactId>tephra-hbase-compat-1.4</artifactId>
+      <artifactId>tephra-hbase-compat-${tephra.hbase.compat.version}</artifactId>
     </dependency>
   
     <!-- Make sure we have all the antlr dependencies -->
@@ -513,46 +513,82 @@
   <profiles>
     <!-- See the parent pom for profile selection -->
     <profile>
-      <id>phoenix-hbase-compat-1.5.0-default</id>
-      <dependencies>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics-api</artifactId>
-        </dependency>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics</artifactId>
-        </dependency>
-      </dependencies>
+      <id>phoenix-hbase-compat-1.6.0-default</id>
+      <activation>
+        <property>
+          <name>!hbase.profile</name>
+        </property>
+      </activation>
+      <properties>
+        <hbase.profile>1.6</hbase.profile>
+        <hadoop-two.version>2.8.5</hadoop-two.version>
+        <!-- We are using the 1.5 compat module for 1.6 -->
+        <hbase.compat.version>1.5.0</hbase.compat.version>
+        <hbase.version>${hbase-1.6.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.6</tephra.hbase.compat.version>
+      </properties>
     </profile>
     <profile>
-      <id>phoenix-hbase-compat-1.5.0</id>
-      <dependencies>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics-api</artifactId>
-        </dependency>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics</artifactId>
-        </dependency>
-      </dependencies>
+      <id>phoenix-hbase-compat-1.3.0</id>
+      <activation>
+        <property>
+          <name>hbase.profile</name>
+          <value>1.3</value>
+        </property>
+      </activation>
+      <properties>
+        <hbase.profile>1.3</hbase.profile>
+        <hbase.compat.version>1.3.0</hbase.compat.version>
+        <hbase.version>${hbase-1.3.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.3</tephra.hbase.compat.version>
+      </properties>
     </profile>
     <profile>
       <id>phoenix-hbase-compat-1.4.0</id>
-      <dependencies>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics-api</artifactId>
-        </dependency>
-        <dependency>
-          <groupId>org.apache.hbase</groupId>
-          <artifactId>hbase-metrics</artifactId>
-        </dependency>
-      </dependencies>
+      <activation>
+        <property>
+          <name>hbase.profile</name>
+          <value>1.4</value>
+        </property>
+      </activation>
+      <properties>
+        <hbase.profile>1.4</hbase.profile>
+        <hbase.compat.version>1.4.0</hbase.compat.version>
+        <hbase.version>${hbase-1.4.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.4</tephra.hbase.compat.version>
+      </properties>
     </profile>
     <profile>
-      <id>phoenix-hbase-compat-1.3.0</id>
+      <id>phoenix-hbase-compat-1.5.0</id>
+      <activation>
+        <property>
+          <name>hbase.profile</name>
+          <value>1.5</value>
+        </property>
+      </activation>
+      <properties>
+        <hbase.profile>1.5</hbase.profile>
+        <hbase.compat.version>1.5.0</hbase.compat.version>
+        <hbase.version>${hbase-1.5.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.5</tephra.hbase.compat.version>
+      </properties>
+    </profile>
+    <profile>
+      <id>phoenix-hbase-compat-1.6.0</id>
+      <activation>
+        <property>
+          <name>hbase.profile</name>
+          <value>1.6</value>
+        </property>
+      </activation>
+      <properties>
+        <hbase.profile>1.6</hbase.profile>
+        <hadoop-two.version>2.8.5</hadoop-two.version>
+        <!-- We are using the 1.5 compat module for 1.6 -->
+        <hbase.compat.version>1.5.0</hbase.compat.version>
+        <hbase.version>${hbase-1.6.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.6</tephra.hbase.compat.version>
+      </properties>
     </profile>
   </profiles>
 </project>
diff --git a/pom.xml b/pom.xml
index d1896c9..9127734 100644
--- a/pom.xml
+++ b/pom.xml
@@ -915,7 +915,7 @@
       </dependency>
       <dependency>
         <groupId>org.apache.tephra</groupId>
-        <artifactId>tephra-hbase-compat-1.4</artifactId>
+        <artifactId>tephra-hbase-compat-${tephra.hbase.compat.version}</artifactId>
         <version>${tephra.version}</version>
       </dependency>
       <dependency>
@@ -1186,6 +1186,7 @@
         <!-- We are using the 1.5 compat module for 1.6 -->
         <hbase.compat.version>1.5.0</hbase.compat.version>
         <hbase.version>${hbase-1.6.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.6</tephra.hbase.compat.version>
       </properties>
     </profile>
     <profile>
@@ -1200,6 +1201,7 @@
         <hbase.profile>1.3</hbase.profile>
         <hbase.compat.version>1.3.0</hbase.compat.version>
         <hbase.version>${hbase-1.3.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.3</tephra.hbase.compat.version>
       </properties>
     </profile>
     <profile>
@@ -1214,6 +1216,7 @@
         <hbase.profile>1.4</hbase.profile>
         <hbase.compat.version>1.4.0</hbase.compat.version>
         <hbase.version>${hbase-1.4.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.4</tephra.hbase.compat.version>
       </properties>
     </profile>
     <profile>
@@ -1228,6 +1231,7 @@
         <hbase.profile>1.5</hbase.profile>
         <hbase.compat.version>1.5.0</hbase.compat.version>
         <hbase.version>${hbase-1.5.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.5</tephra.hbase.compat.version>
       </properties>
     </profile>
     <profile>
@@ -1244,6 +1248,7 @@
         <!-- We are using the 1.5 compat module for 1.6 -->
         <hbase.compat.version>1.5.0</hbase.compat.version>
         <hbase.version>${hbase-1.6.runtime.version}</hbase.version>
+        <tephra.hbase.compat.version>1.6</tephra.hbase.compat.version>
       </properties>
     </profile>
     <profile>