You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/09/10 03:50:32 UTC
[hbase-operator-tools] branch HBASE-23002 created (now 3a8a5d3)
This is an automated email from the ASF dual-hosted git repository.
stack pushed a change to branch HBASE-23002
in repository https://gitbox.apache.org/repos/asf/hbase-operator-tools.git.
at 3a8a5d3 HBASE-23002 [HBCK2/hbase-operator-tools] Create an assembly that builds an hbase-operator-tools tgz
This branch includes the following new commits:
new 3a8a5d3 HBASE-23002 [HBCK2/hbase-operator-tools] Create an assembly that builds an hbase-operator-tools tgz
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[hbase-operator-tools] 01/01: HBASE-23002
[HBCK2/hbase-operator-tools] Create an assembly that builds an
hbase-operator-tools tgz
Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch HBASE-23002
in repository https://gitbox.apache.org/repos/asf/hbase-operator-tools.git
commit 3a8a5d35f905ba99604f6e7a5c25f7248d3cd47d
Author: stack <st...@apache.org>
AuthorDate: Mon Sep 9 20:49:11 2019 -0700
HBASE-23002 [HBCK2/hbase-operator-tools] Create an assembly that builds an hbase-operator-tools tgz
Add an hbase-assembly that is just for creating assemblies.
---
hbase-assembly/pom.xml | 64 ++++++++++++++++++++++++++++++++
hbase-assembly/src/main/assembly/bin.xml | 40 ++++++++++++++++++++
hbase-hbck2/pom.xml | 1 +
pom.xml | 22 +++++++++--
4 files changed, 123 insertions(+), 4 deletions(-)
diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml
new file mode 100644
index 0000000..73ae099
--- /dev/null
+++ b/hbase-assembly/pom.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <!--
+ /**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-operator-tools</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>hbase-assembly</artifactId>
+ <name>Apache HBase Operator Tools - Assembly</name>
+ <description>
+ Module that does hbase-operator-tools assembly and that is all that it does.
+ We have a dedicated module just for assembly because of
+ http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#module-binaries
+ </description>
+ <packaging>pom</packaging>
+ <properties>
+ <license.bundles.dependencies>true</license.bundles.dependencies>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <!--Else will use hbase-assembly as final name.-->
+ <finalName>${project.parent.artifactId}-${project.version}</finalName>
+ <skipAssembly>false</skipAssembly>
+ <appendAssemblyId>true</appendAssemblyId>
+ <tarLongFileMode>posix</tarLongFileMode>
+ <descriptors>
+ <descriptor>src/main/assembly/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-hbck2</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/hbase-assembly/src/main/assembly/bin.xml b/hbase-assembly/src/main/assembly/bin.xml
new file mode 100644
index 0000000..430c98f
--- /dev/null
+++ b/hbase-assembly/src/main/assembly/bin.xml
@@ -0,0 +1,40 @@
+<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
+ <id>bin</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <moduleSets>
+ <moduleSet>
+
+ <!-- Enable access to all projects in the current multimodule build! -->
+ <useAllReactorProjects>true</useAllReactorProjects>
+ <!-- Now, select which projects to include in this module-set. -->
+ <includes>
+ <include>org.apache.hbase:hbase-hbck2</include>
+ </includes>
+ <binaries>
+ <outputDirectory>hbase-hbck2/lib</outputDirectory>
+ <unpack>false</unpack>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+ <!-- Include the generated LICENSE and NOTICE files -->
+ <files>
+ <file>
+ <source>${project.parent.basedir}/LICENSE.txt</source>
+ <outputDirectory>.</outputDirectory>
+ <destName>LICENSE.txt</destName>
+ <lineEnding>unix</lineEnding>
+ </file>
+ <file>
+ <source>${project.parent.basedir}/NOTICE.txt</source>
+ <outputDirectory>.</outputDirectory>
+ <destName>NOTICE.txt</destName>
+ <lineEnding>unix</lineEnding>
+ </file>
+ </files>
+</assembly>
+
diff --git a/hbase-hbck2/pom.xml b/hbase-hbck2/pom.xml
index e1496cd..45fe9ff 100644
--- a/hbase-hbck2/pom.xml
+++ b/hbase-hbck2/pom.xml
@@ -28,6 +28,7 @@
<relativePath>..</relativePath>
</parent>
+ <groupId>org.apache.hbase</groupId>
<artifactId>hbase-hbck2</artifactId>
<name>Apache HBase - HBCK2</name>
<description>HBCK for HBase 2+</description>
diff --git a/pom.xml b/pom.xml
index f25eff8..4a95d32 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,6 +55,9 @@
</licenses>
<modules>
<module>hbase-hbck2</module>
+ <!--Add an assembly module because of http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#module-binaries
+ -->
+ <module>hbase-assembly</module>
</modules>
<scm>
<connection>scm:git:git://gitbox.apache.org/repos/asf/hbase-operator-tools.git</connection>
@@ -145,6 +148,11 @@
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-hbck2</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
<build>
@@ -294,10 +302,6 @@
</configuration>
</plugin>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
- <plugin>
<!-- Approach followed here is roughly the same as mentioned here:
https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
-->
@@ -391,6 +395,16 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <!--Defer to the hbase-assembly sub-module. It does all assembly.
+ We have dedicated assembly module because of
+ http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#module-binaries
+ -->
+ <skipAssembly>true</skipAssembly>
+ </configuration>
+ </plugin>
</plugins>
</build>
<profiles>