Skip to content

Commit

Permalink
PHOENIX-6166 Make Tephra support optional for phoenix 5 connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Feb 12, 2024
1 parent 6d57726 commit 48472b4
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 0 deletions.
51 changes: 51 additions & 0 deletions phoenix5-hive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
51 changes: 51 additions & 0 deletions phoenix5-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
51 changes: 51 additions & 0 deletions phoenix5-spark3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 48472b4

Please sign in to comment.