PHOENIX-6166 Make Tephra support optional for phoenix 5 connectors
diff --git a/phoenix5-hive/pom.xml b/phoenix5-hive/pom.xml
index 69ce48a..19a20cf 100644
--- a/phoenix5-hive/pom.xml
+++ b/phoenix5-hive/pom.xml
@@ -498,4 +498,55 @@
</dependencies>
</dependencyManagement>
+ <profiles>
+ <profile>
+ <!-- This only applies when building with 5.1 -->
+ <id>exclude-tephra</id>
+ <activation>
+ <property>
+ <name>without.tephra</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.phoenix</groupId>
+ <artifactId>phoenix-core</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-core-shaded</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.0</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.1</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.2</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.3</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.4</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.hbase.thirdparty</groupId>
+ <artifactId>hbase-shaded-jersey</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>
diff --git a/phoenix5-spark/pom.xml b/phoenix5-spark/pom.xml
index e6be35c..17e02bb 100644
--- a/phoenix5-spark/pom.xml
+++ b/phoenix5-spark/pom.xml
@@ -609,4 +609,55 @@
this should be kept in sync with Phoenix as much as possible -->
</plugins>
</build>
+ <profiles>
+ <profile>
+ <!-- This only applies when building with 5.1 -->
+ <id>exclude-tephra</id>
+ <activation>
+ <property>
+ <name>without.tephra</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.phoenix</groupId>
+ <artifactId>phoenix-core</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-core-shaded</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.0</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.1</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.2</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.3</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.4</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.hbase.thirdparty</groupId>
+ <artifactId>hbase-shaded-jersey</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>
diff --git a/phoenix5-spark3/pom.xml b/phoenix5-spark3/pom.xml
index ffd04f4..aecb6b6 100644
--- a/phoenix5-spark3/pom.xml
+++ b/phoenix5-spark3/pom.xml
@@ -183,4 +183,55 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <!-- This only applies when building with 5.1 -->
+ <id>exclude-tephra</id>
+ <activation>
+ <property>
+ <name>without.tephra</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.phoenix</groupId>
+ <artifactId>phoenix-core</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-core-shaded</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.0</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.1</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.2</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.3</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.tephra</groupId>
+ <artifactId>tephra-hbase-compat-2.4</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.hbase.thirdparty</groupId>
+ <artifactId>hbase-shaded-jersey</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>