This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new cd562154cc2 HBASE-29192 Provide installation method that supports
running hbase-it (#6816)
cd562154cc2 is described below
commit cd562154cc2f98d467cc3a24ac3f352c7410daf9
Author: Istvan Toth <[email protected]>
AuthorDate: Fri Mar 21 06:35:21 2025 +0100
HBASE-29192 Provide installation method that supports running hbase-it
(#6816)
Signed-off-by: Duo Zhang <[email protected]>
---
hbase-assembly-byo-hadoop/pom.xml | 83 ++++++++++++++++++++++++++++++++++++++-
hbase-assembly/pom.xml | 83 ++++++++++++++++++++++++++++++++++++++-
2 files changed, 164 insertions(+), 2 deletions(-)
diff --git a/hbase-assembly-byo-hadoop/pom.xml
b/hbase-assembly-byo-hadoop/pom.xml
index 572c6280afb..9b89dd0f7e4 100644
--- a/hbase-assembly-byo-hadoop/pom.xml
+++ b/hbase-assembly-byo-hadoop/pom.xml
@@ -34,6 +34,7 @@
<license.bundles.dependencies>true</license.bundles.dependencies>
<!-- So that we don't have to add redundant exclusions to provided scope
dependencies -->
<enforcer.skip>true</enforcer.skip>
+ <final.name>hbase-byo-hadoop-${project.version}</final.name>
</properties>
<dependencies>
<!-- Set every Hadoop dependency as provided. The byo-hadoop assembly
relies an external Hadoop installation -->
@@ -370,7 +371,7 @@
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!--Else will use hbase-assembly as final name.-->
- <finalName>hbase-byo-hadoop-${project.version}</finalName>
+ <finalName>${final.name}</finalName>
<skipAssembly>false</skipAssembly>
<appendAssemblyId>true</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
@@ -430,4 +431,84 @@
<!-- /end building aggregation of NOTICE files -->
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>assemblyForTesting</id>
+ <activation>
+ <property>
+ <name>assemblyForTesting</name>
+ </property>
+ </activation>
+ <properties>
+
<final.name>hbase-byo-hadoop-for-testing-${project.version}</final.name>
+ </properties>
+ <dependencies>
+ <!-- Dependencies for running hbase-it -->
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-it</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-testing-util</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <!-- Change the scope of test-jar dependencies -->
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-procedure</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-common</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-zookeeper</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-server</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-hadoop-compat</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <!-- End of dependencies for running hbase-it -->
+ </dependencies>
+ </profile>
+ </profiles>
</project>
diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml
index 43e22dbea10..48cae742b32 100644
--- a/hbase-assembly/pom.xml
+++ b/hbase-assembly/pom.xml
@@ -32,6 +32,7 @@
<description>Module that does project assembly and that is all that it
does.</description>
<properties>
<license.bundles.dependencies>true</license.bundles.dependencies>
+ <final.name>hbase-${project.version}</final.name>
</properties>
<dependencies>
<!-- client artifacts for downstream use -->
@@ -270,7 +271,7 @@
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!--Else will use hbase-assembly as final name.-->
- <finalName>hbase-${project.version}</finalName>
+ <finalName>${final.name}</finalName>
<skipAssembly>false</skipAssembly>
<appendAssemblyId>true</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
@@ -331,4 +332,84 @@
<!-- /end building aggregation of NOTICE files -->
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>assemblyForTesting</id>
+ <activation>
+ <property>
+ <name>assemblyForTesting</name>
+ </property>
+ </activation>
+ <properties>
+ <final.name>hbase-for-testing-${project.version}</final.name>
+ </properties>
+ <dependencies>
+ <!-- Dependencies for running hbase-it -->
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-it</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-testing-util</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <!-- Change the scope of test-jar dependencies -->
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-procedure</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-common</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-zookeeper</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-server</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-hadoop-compat</artifactId>
+ <type>test-jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <!-- End of dependencies for running hbase-it -->
+ </dependencies>
+ </profile>
+ </profiles>
</project>