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-SNAPSHOT</version>
27 <relativePath>../hbase-build-configuration</relativePath>
29 <artifactId>hbase-shaded</artifactId>
30 <name>Apache HBase - Shaded</name>
31 <description>Module of HBase with most deps shaded.</description>
32 <packaging>pom</packaging>
34 <!-- Don't make a test-jar -->
35 <maven.test.skip>true</maven.test.skip>
36 <!-- Don't make a source-jar -->
37 <source.skip>true</source.skip>
38 <license.bundles.dependencies>true</license.bundles.dependencies>
39 <shaded.prefix>org.apache.hadoop.hbase.shaded</shaded.prefix>
42 <module>hbase-shaded-client-byo-hadoop</module>
43 <module>hbase-shaded-client</module>
44 <module>hbase-shaded-mapreduce</module>
45 <module>hbase-shaded-testing-util</module>
46 <module>hbase-shaded-testing-util-tester</module>
47 <module>hbase-shaded-check-invariants</module>
48 <module>hbase-shaded-with-hadoop-check-invariants</module>
52 <groupId>org.apache.hbase</groupId>
53 <artifactId>hbase-resource-bundle</artifactId>
54 <version>${project.version}</version>
55 <optional>true</optional>
57 <!-- log4j has to be non-optional for Hadoop 2 atleast -->
59 <groupId>log4j</groupId>
60 <artifactId>log4j</artifactId>
62 <!-- put the log implementations to optional -->
64 <groupId>org.slf4j</groupId>
65 <artifactId>slf4j-log4j12</artifactId>
66 <optional>true</optional>
72 <!--Make it so assembly:single does nothing in here-->
73 <artifactId>maven-assembly-plugin</artifactId>
75 <skipAssembly>true</skipAssembly>
78 <!-- licensing info from our dependencies -->
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-remote-resources-plugin</artifactId>
84 <id>aggregate-licenses</id>
90 <copyright-end-year>${build.year}</copyright-end-year>
91 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
92 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
93 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
94 <bundled-logo>${license.bundles.logo}</bundled-logo>
95 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
98 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
100 <supplementalModelArtifacts>
101 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
102 </supplementalModelArtifacts>
104 <supplementalModel>supplemental-models.xml</supplementalModel>
105 </supplementalModels>
114 <!--Make it so assembly:single does nothing in here-->
115 <artifactId>maven-assembly-plugin</artifactId>
117 <skipAssembly>true</skipAssembly>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-shade-plugin</artifactId>
125 <id>aggregate-into-a-jar-with-relocated-third-parties</id>
126 <phase>package</phase>
131 <createSourcesJar>false</createSourcesJar>
132 <shadedArtifactAttached>false</shadedArtifactAttached>
133 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
134 <shadeTestJar>false</shadeTestJar>
137 <!-- exclude J2EE modules that come in for JDK11+ (since
138 hadoop-3.2.0) or modules that come in for JDK8+ but
139 need not be included -->
140 <exclude>javax.annotation:javax.annotation-api</exclude>
141 <exclude>javax.activation:javax.activation-api</exclude>
142 <!-- default to excluding Hadoop, have module that want
143 to include it redefine the exclude list -->
144 <exclude>org.apache.hadoop:*</exclude>
145 <!-- the rest of this needs to be kept in sync with any
146 hadoop-including module -->
147 <exclude>org.apache.hbase:hbase-resource-bundle</exclude>
148 <exclude>org.slf4j:*</exclude>
149 <exclude>com.google.code.findbugs:*</exclude>
150 <exclude>com.github.stephenc.findbugs:*</exclude>
151 <exclude>org.apache.htrace:*</exclude>
152 <exclude>org.apache.yetus:*</exclude>
153 <exclude>log4j:*</exclude>
154 <exclude>commons-logging:*</exclude>
158 <!-- top level com not including sun-->
160 <pattern>com.cedarsoftware</pattern>
161 <shadedPattern>${shaded.prefix}.com.cedarsoftware</shadedPattern>
164 <pattern>com.codahale</pattern>
165 <shadedPattern>${shaded.prefix}.com.codahale</shadedPattern>
168 <pattern>com.ctc</pattern>
169 <shadedPattern>${shaded.prefix}.com.ctc</shadedPattern>
172 <pattern>com.dropwizard</pattern>
173 <shadedPattern>${shaded.prefix}.com.dropwizard</shadedPattern>
176 <pattern>com.fasterxml</pattern>
177 <shadedPattern>${shaded.prefix}.com.fasterxml</shadedPattern>
180 <pattern>com.github.benmanes.caffeine</pattern>
181 <shadedPattern>${shaded.prefix}.com.github.benmanes.caffeine</shadedPattern>
184 <pattern>com.google</pattern>
185 <shadedPattern>${shaded.prefix}.com.google</shadedPattern>
188 <pattern>com.jamesmurty</pattern>
189 <shadedPattern>${shaded.prefix}.com.jamesmurty</shadedPattern>
192 <pattern>com.jcraft</pattern>
193 <shadedPattern>${shaded.prefix}.com.jcraft</shadedPattern>
196 <pattern>com.lmax</pattern>
197 <shadedPattern>${shaded.prefix}.com.lmax</shadedPattern>
200 <pattern>com.microsoft</pattern>
201 <shadedPattern>${shaded.prefix}.com.microsoft</shadedPattern>
204 <pattern>com.nimbusds</pattern>
205 <shadedPattern>${shaded.prefix}.com.nimbusds</shadedPattern>
208 <pattern>com.squareup</pattern>
209 <shadedPattern>${shaded.prefix}.com.squareup</shadedPattern>
212 <pattern>com.thoughtworks</pattern>
213 <shadedPattern>${shaded.prefix}.com.thoughtworks</shadedPattern>
216 <pattern>com.zaxxer</pattern>
217 <shadedPattern>${shaded.prefix}.com.zaxxer</shadedPattern>
222 <pattern>org.xbill</pattern>
223 <shadedPattern>${shaded.prefix}.org.xbill</shadedPattern>
226 <!-- netty family -->
228 <pattern>org.jboss.netty</pattern>
229 <shadedPattern>${shaded.prefix}.org.jboss.netty</shadedPattern>
232 <pattern>io.netty</pattern>
233 <shadedPattern>${shaded.prefix}.io.netty</shadedPattern>
236 <!-- top level okio -->
238 <pattern>okio</pattern>
239 <shadedPattern>${shaded.prefix}.okio</shadedPattern>
242 <!-- top level org -->
244 <pattern>org.checkerframework</pattern>
245 <shadedPattern>${shaded.prefix}.org.checkerframework</shadedPattern>
248 <pattern>org.codehaus</pattern>
249 <shadedPattern>${shaded.prefix}.org.codehaus</shadedPattern>
252 <pattern>org.eclipse</pattern>
253 <shadedPattern>${shaded.prefix}.org.eclipse</shadedPattern>
256 <pattern>org.ehcache</pattern>
257 <shadedPattern>${shaded.prefix}.org.ehcache</shadedPattern>
260 <pattern>org.jcodings</pattern>
261 <shadedPattern>${shaded.prefix}.org.jcodings</shadedPattern>
264 <pattern>org.joni</pattern>
265 <shadedPattern>${shaded.prefix}.org.joni</shadedPattern>
268 <pattern>org.mortbay</pattern>
269 <shadedPattern>${shaded.prefix}.org.mortbay</shadedPattern>
272 <pattern>org.nustaq</pattern>
273 <shadedPattern>${shaded.prefix}.org.nustaq</shadedPattern>
276 <pattern>org.terracotta</pattern>
277 <shadedPattern>${shaded.prefix}.org.terracotta</shadedPattern>
280 <pattern>org.tukaani</pattern>
281 <shadedPattern>${shaded.prefix}.org.tukaani</shadedPattern>
284 <pattern>org.xerial</pattern>
285 <shadedPattern>${shaded.prefix}.org.xerial</shadedPattern>
288 <pattern>org.znerd</pattern>
289 <shadedPattern>${shaded.prefix}.org.znerd</shadedPattern>
292 <pattern>org.aopalliance</pattern>
293 <shadedPattern>${shaded.prefix}.org.aopalliance</shadedPattern>
296 <pattern>org.fusesource</pattern>
297 <shadedPattern>${shaded.prefix}.org.fusesource</shadedPattern>
300 <pattern>org.iq80</pattern>
301 <shadedPattern>${shaded.prefix}.org.iq80</shadedPattern>
304 <pattern>org.jamon</pattern>
305 <shadedPattern>${shaded.prefix}.org.jamon</shadedPattern>
308 <pattern>org.jets3t</pattern>
309 <shadedPattern>${shaded.prefix}.org.jets3t</shadedPattern>
311 <!-- poorly named add-on package from jets3t dependency. TODO can we just exclude these? -->
313 <pattern>contribs.mx</pattern>
314 <shadedPattern>${shaded.prefix}.contribs.mx</shadedPattern>
317 <pattern>org.objectweb</pattern>
318 <shadedPattern>${shaded.prefix}.org.objectweb</shadedPattern>
322 <!-- org.apache relocations not in org.apache.hadoop or org.apache.commons -->
324 <pattern>org.apache.avro</pattern>
325 <shadedPattern>${shaded.prefix}.org.apache.avro</shadedPattern>
328 <pattern>org.apache.curator</pattern>
329 <shadedPattern>${shaded.prefix}.org.apache.curator</shadedPattern>
332 <pattern>org.apache.directory</pattern>
333 <shadedPattern>${shaded.prefix}.org.apache.directory</shadedPattern>
336 <pattern>org.apache.http</pattern>
337 <shadedPattern>${shaded.prefix}.org.apache.http</shadedPattern>
340 <pattern>org.apache.jasper</pattern>
341 <shadedPattern>${shaded.prefix}.org.apache.jasper</shadedPattern>
344 <pattern>org.apache.jute</pattern>
345 <shadedPattern>${shaded.prefix}.org.apache.jute</shadedPattern>
348 <pattern>org.apache.kerby</pattern>
349 <shadedPattern>${shaded.prefix}.org.apache.kerby</shadedPattern>
352 <pattern>org.apache.taglibs</pattern>
353 <shadedPattern>${shaded.prefix}.org.apache.taglibs</shadedPattern>
356 <pattern>org.apache.zookeeper</pattern>
357 <shadedPattern>${shaded.prefix}.org.apache.zookeeper</shadedPattern>
360 <!-- org.apache.commons not including logging -->
362 <pattern>org.apache.commons.validator</pattern>
363 <shadedPattern>${shaded.prefix}.org.apache.commons.validator</shadedPattern>
366 <pattern>org.apache.commons.beanutils</pattern>
367 <shadedPattern>${shaded.prefix}.org.apache.commons.beanutils</shadedPattern>
370 <pattern>org.apache.commons.cli</pattern>
371 <shadedPattern>${shaded.prefix}.org.apache.commons.cli</shadedPattern>
374 <pattern>org.apache.commons.collections</pattern>
375 <shadedPattern>${shaded.prefix}.org.apache.commons.collections</shadedPattern>
378 <pattern>org.apache.commons.configuration</pattern>
379 <shadedPattern>${shaded.prefix}.org.apache.commons.configuration</shadedPattern>
382 <pattern>org.apache.commons.crypto</pattern>
383 <shadedPattern>${shaded.prefix}.org.apache.commons.crypto</shadedPattern>
386 <pattern>org.apache.commons.csv</pattern>
387 <shadedPattern>${shaded.prefix}.org.apache.commons.csv</shadedPattern>
390 <pattern>org.apache.commons.daemon</pattern>
391 <shadedPattern>${shaded.prefix}.org.apache.commons.daemon</shadedPattern>
394 <pattern>org.apache.commons.io</pattern>
395 <shadedPattern>${shaded.prefix}.org.apache.commons.io</shadedPattern>
398 <pattern>org.apache.commons.math</pattern>
399 <shadedPattern>${shaded.prefix}.org.apache.commons.math</shadedPattern>
402 <pattern>org.apache.commons.math3</pattern>
403 <shadedPattern>${shaded.prefix}.org.apache.commons.math3</shadedPattern>
406 <pattern>org.apache.commons.net</pattern>
407 <shadedPattern>${shaded.prefix}.org.apache.commons.net</shadedPattern>
410 <pattern>org.apache.commons.lang</pattern>
411 <shadedPattern>${shaded.prefix}.org.apache.commons.lang</shadedPattern>
414 <pattern>org.apache.commons.lang3</pattern>
415 <shadedPattern>${shaded.prefix}.org.apache.commons.lang3</shadedPattern>
418 <pattern>org.apache.commons.el</pattern>
419 <shadedPattern>${shaded.prefix}.org.apache.commons.el</shadedPattern>
422 <pattern>org.apache.commons.httpclient</pattern>
423 <shadedPattern>${shaded.prefix}.org.apache.commons.httpclient</shadedPattern>
426 <pattern>org.apache.commons.compress</pattern>
427 <shadedPattern>${shaded.prefix}.org.apache.commons.compress</shadedPattern>
430 <pattern>org.apache.commons.digester</pattern>
431 <shadedPattern>${shaded.prefix}.org.apache.commons.digester</shadedPattern>
434 <pattern>org.apache.commons.codec</pattern>
435 <shadedPattern>${shaded.prefix}.org.apache.commons.codec</shadedPattern>
438 <pattern>org.apache.commons.text</pattern>
439 <shadedPattern>${shaded.prefix}.org.apache.commons.text</shadedPattern>
442 <!-- top level net-->
444 <pattern>net/</pattern>
445 <shadedPattern>${shaded.prefix}.net.</shadedPattern>
450 <!-- Need to filter out some extraneous license files.
451 Don't use the ApacheLicenseRT because it just removes all
452 META-INF/LICENSE(.txt)? files, including ours. -->
453 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
455 <resource>LICENSE.txt</resource>
456 <resource>ASL2.0</resource>
457 <!-- also this unneeded doc -->
458 <resource>overview.html</resource>
461 <!-- Where notices exist, just concat them -->
462 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
463 <addHeader>false</addHeader>
464 <projectName>${project.name}</projectName>
466 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
470 <!-- remove utility classes which are not required from dnsjava -->
472 <artifact>dnsjava:dnsjava</artifact>
474 <exclude>dig*</exclude>
475 <exclude>jnamed*</exclude>
476 <exclude>lookup*</exclude>
477 <exclude>update*</exclude>
481 <!-- this is a signed osgi bundle -->
482 <artifact>org.eclipse.jetty.orbit:javax.servlet.jsp.jstl</artifact>
484 <exclude>META-INF/ECLIPSEF.SF</exclude>
485 <exclude>META-INF/ECLIPSEF.RSA</exclude>
489 <!-- Duplication of classes that ship in commons-collections 2.x and 3.x
490 If we stop bundling a relevant commons-collections artifact we'll
491 need to revisit. See: https://s.apache.org/e09o
493 <artifact>commons-beanutils:commons-beanutils-core</artifact>
495 <exclude>org/apache/commons/collections/*.class</exclude>
499 <!-- server side webapps that we don't need -->
500 <artifact>org.apache.hadoop:hadoop-yarn-common</artifact>
502 <exclude>webapps/*</exclude>
503 <exclude>webapps/**/*</exclude>
507 <artifact>*:*</artifact>
509 <!-- proto source files aren't needed -->
510 <exclude>*.proto</exclude>
511 <exclude>**/*.proto</exclude>
512 <!-- We already concat NOTICE, safe to drop individual ones -->
513 <exclude>LICENSE</exclude>
514 <exclude>NOTICE</exclude>
518 <!-- skip french localization -->
519 <artifact>org.apache.commons:commons-math3</artifact>
521 <exclude>assets/org/apache/commons/math3/**/*</exclude>
525 <!-- appears to be the result of a conflict in hadoop artifacts -->
526 <artifact>org.apache.hadoop:*</artifact>
528 <exclude>mapred-default.xml.orig</exclude>
531 <!-- unnecessary files that mess up our invariants check -->
533 <artifact>org.eclipse.jetty:*</artifact>
535 <exclude>about.html</exclude>
536 <exclude>jetty-dir.css</exclude>
540 <artifact>org.apache.kerby:*</artifact>
542 <exclude>krb5-template.conf</exclude>
543 <exclude>krb5_udp-template.conf</exclude>
544 <exclude>ccache.txt</exclude>
545 <exclude>keytab.txt</exclude>