2 <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">
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 <modelVersion>4.0.0</modelVersion>
24 <artifactId>hbase-build-configuration</artifactId>
25 <groupId>org.apache.hbase</groupId>
26 <version>3.0.0-alpha-3-SNAPSHOT</version>
27 <relativePath>../hbase-build-configuration</relativePath>
29 <artifactId>hbase-assembly</artifactId>
30 <name>Apache HBase - Assembly</name>
32 Module that does project assembly and that is all that it does.
34 <packaging>pom</packaging>
36 <license.bundles.dependencies>true</license.bundles.dependencies>
40 <!-- licensing info from our dependencies -->
42 <groupId>org.apache.maven.plugins</groupId>
43 <artifactId>maven-remote-resources-plugin</artifactId>
46 <id>aggregate-licenses</id>
52 <copyright-end-year>${build.year}</copyright-end-year>
53 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
54 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
55 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
56 <bundled-vega>${license.bundles.vega}</bundled-vega>
57 <bundled-logo>${license.bundles.logo}</bundled-logo>
58 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
61 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
63 <supplementalModelArtifacts>
64 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
65 </supplementalModelArtifacts>
67 <supplementalModel>supplemental-models.xml</supplementalModel>
74 <artifactId>maven-assembly-plugin</artifactId>
76 <!--Else will use hbase-assembly as final name.-->
77 <finalName>hbase-${project.version}</finalName>
78 <skipAssembly>false</skipAssembly>
79 <appendAssemblyId>true</appendAssemblyId>
80 <tarLongFileMode>posix</tarLongFileMode>
82 <descriptor>${assembly.file}</descriptor>
83 <descriptor>src/main/assembly/client.xml</descriptor>
88 <artifactId>maven-dependency-plugin</artifactId>
91 <!-- generates the file that will be used by the bin/hbase script in the dev env -->
92 <id>create-hbase-generated-classpath</id>
95 <goal>build-classpath</goal>
98 <outputFile>${project.parent.basedir}/target/cached_classpath.txt</outputFile>
99 <excludeArtifactIds>jline,jruby-complete,hbase-shaded-client,hbase-shaded-client-byo-hadoop,hbase-shaded-mapreduce</excludeArtifactIds>
104 <!-- generates the file that will be used by the bin/hbase zkcli script in the dev env -->
105 <id>create-hbase-generated-classpath-jline</id>
108 <goal>build-classpath</goal>
111 <outputFile>${project.parent.basedir}/target/cached_classpath_jline.txt</outputFile>
112 <includeArtifactIds>jline</includeArtifactIds>
117 <!-- generates the file that will be used by the bin/hbase shell script in the dev env -->
118 <id>create-hbase-generated-classpath-jruby</id>
121 <goal>build-classpath</goal>
124 <outputFile>${project.parent.basedir}/target/cached_classpath_jruby.txt</outputFile>
125 <includeArtifactIds>jruby-complete</includeArtifactIds>
130 Build an aggregation of our templated NOTICE file and the NOTICE files in our dependencies.
131 If MASSEMBLY-382 is fixed we could do this in the assembly
132 Currently relies on env, bash, find, and cat.
135 <!-- put all of the NOTICE files out of our dependencies -->
136 <id>unpack-dependency-notices</id>
137 <phase>prepare-package</phase>
139 <goal>unpack-dependencies</goal>
142 <excludeTypes>pom</excludeTypes>
143 <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
144 <includes>**\/NOTICE,**\/NOTICE.txt</includes>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>exec-maven-plugin</artifactId>
152 <version>${exec.maven.version}</version>
155 <id>concat-NOTICE-files</id>
156 <phase>package</phase>
161 <executable>env</executable>
163 <argument>bash</argument>
164 <argument>-c</argument>
165 <argument>cat maven-shared-archive-resources/META-INF/NOTICE \
166 `find ${project.build.directory}/dependency -iname NOTICE -or -iname NOTICE.txt`
169 <outputFile>${project.build.directory}/NOTICE.aggregate</outputFile>
170 <workingDirectory>${project.build.directory}</workingDirectory>
175 <!-- /end building aggregation of NOTICE files -->
179 <!-- client artifacts for downstream use -->
181 <groupId>org.apache.hbase</groupId>
182 <artifactId>hbase-shaded-client</artifactId>
185 <groupId>org.apache.hbase</groupId>
186 <artifactId>hbase-shaded-client-byo-hadoop</artifactId>
189 <groupId>org.apache.hbase</groupId>
190 <artifactId>hbase-shaded-mapreduce</artifactId>
192 <!-- Intra-project dependencies -->
194 <groupId>org.apache.hbase</groupId>
195 <artifactId>hbase-it</artifactId>
196 <type>test-jar</type>
198 <!-- Hamcrest is required by hbase-it (via junit), but as long as we're grabbing the hbase-it test-jar,
199 maven dependency resolution won't pick it up for us. -->
201 <groupId>org.hamcrest</groupId>
202 <artifactId>hamcrest-core</artifactId>
203 <!-- Overriding the scope in depMgmt -->
204 <scope>compile</scope>
207 <groupId>org.apache.hbase</groupId>
208 <artifactId>hbase-server</artifactId>
211 <groupId>org.apache.hbase</groupId>
212 <artifactId>hbase-mapreduce</artifactId>
215 <groupId>org.apache.hbase</groupId>
216 <artifactId>hbase-mapreduce</artifactId>
217 <type>test-jar</type>
219 <!-- To dump tools in hbase-procedure into cached_classpath.txt. -->
221 <groupId>org.apache.hbase</groupId>
222 <artifactId>hbase-procedure</artifactId>
225 <groupId>org.apache.hbase</groupId>
226 <artifactId>hbase-procedure</artifactId>
227 <type>test-jar</type>
231 <groupId>org.apache.hbase</groupId>
232 <artifactId>hbase-hadoop-compat</artifactId>
235 <groupId>com.google.guava</groupId>
236 <artifactId>guava</artifactId>
241 <groupId>org.apache.hbase</groupId>
242 <artifactId>hbase-shell</artifactId>
245 <groupId>org.apache.hbase</groupId>
246 <artifactId>hbase-thrift</artifactId>
249 <groupId>org.apache.hbase</groupId>
250 <artifactId>hbase-rest</artifactId>
253 <groupId>org.apache.hbase</groupId>
254 <artifactId>hbase-external-blockcache</artifactId>
257 <groupId>org.apache.hbase</groupId>
258 <artifactId>hbase-testing-util</artifactId>
261 <groupId>org.apache.hbase</groupId>
262 <artifactId>hbase-metrics-api</artifactId>
265 <groupId>org.apache.hbase</groupId>
266 <artifactId>hbase-metrics</artifactId>
269 <groupId>org.apache.hbase</groupId>
270 <artifactId>hbase-protocol-shaded</artifactId>
273 <groupId>org.apache.hbase</groupId>
274 <artifactId>hbase-resource-bundle</artifactId>
275 <optional>true</optional>
278 <groupId>org.apache.httpcomponents</groupId>
279 <artifactId>httpclient</artifactId>
282 <groupId>org.apache.httpcomponents</groupId>
283 <artifactId>httpcore</artifactId>
286 <groupId>org.apache.hbase</groupId>
287 <artifactId>hbase-backup</artifactId>
290 <groupId>org.apache.hbase</groupId>
291 <artifactId>hbase-balancer</artifactId>
294 <groupId>org.apache.hbase</groupId>
295 <artifactId>hbase-replication</artifactId>
298 <groupId>org.apache.hbase</groupId>
299 <artifactId>hbase-http</artifactId>
302 <groupId>org.apache.hbase</groupId>
303 <artifactId>hbase-examples</artifactId>
306 <groupId>org.apache.hbase</groupId>
307 <artifactId>hbase-zookeeper</artifactId>
310 <groupId>org.apache.hbase</groupId>
311 <artifactId>hbase-hbtop</artifactId>
314 <groupId>org.apache.hbase</groupId>
315 <artifactId>hbase-compression-aircompressor</artifactId>
318 <groupId>org.apache.hbase</groupId>
319 <artifactId>hbase-compression-lz4</artifactId>
322 <groupId>org.apache.hbase</groupId>
323 <artifactId>hbase-compression-snappy</artifactId>
326 <groupId>org.apache.hbase</groupId>
327 <artifactId>hbase-compression-xz</artifactId>
330 <groupId>org.apache.hbase</groupId>
331 <artifactId>hbase-compression-zstd</artifactId>
334 <groupId>jline</groupId>
335 <artifactId>jline</artifactId>
338 <groupId>com.sun.xml.ws</groupId>
339 <artifactId>jaxws-ri</artifactId>
343 Include the log framework here.
344 For other sub modules, we only declare slf4j-api as a compile dependency,
345 so here we must pull in the real logging framework to actually log to log4j.
348 <groupId>org.slf4j</groupId>
349 <artifactId>jcl-over-slf4j</artifactId>
352 <groupId>org.slf4j</groupId>
353 <artifactId>jul-to-slf4j</artifactId>
356 <groupId>org.apache.logging.log4j</groupId>
357 <artifactId>log4j-api</artifactId>
360 <groupId>org.apache.logging.log4j</groupId>
361 <artifactId>log4j-core</artifactId>
364 <groupId>org.apache.logging.log4j</groupId>
365 <artifactId>log4j-slf4j-impl</artifactId>
368 <groupId>org.apache.logging.log4j</groupId>
369 <artifactId>log4j-1.2-api</artifactId>
371 <!-- Include OpenTelemetry agent -->
373 <groupId>io.opentelemetry.javaagent</groupId>
374 <artifactId>opentelemetry-javaagent</artifactId>
375 <classifier>all</classifier>