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>2.4.8</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 <optional>true</optional>
56 <!-- put the log implementations to optional -->
58 <groupId>log4j</groupId>
59 <artifactId>log4j</artifactId>
60 <optional>true</optional>
63 <groupId>org.slf4j</groupId>
64 <artifactId>slf4j-log4j12</artifactId>
65 <optional>true</optional>
71 <!--Make it so assembly:single does nothing in here-->
72 <artifactId>maven-assembly-plugin</artifactId>
74 <skipAssembly>true</skipAssembly>
77 <!-- licensing info from our dependencies -->
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-remote-resources-plugin</artifactId>
83 <id>aggregate-licenses</id>
89 <copyright-end-year>${build.year}</copyright-end-year>
90 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
91 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
92 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
93 <bundled-logo>${license.bundles.logo}</bundled-logo>
94 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
97 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
99 <supplementalModelArtifacts>
100 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
101 </supplementalModelArtifacts>
103 <supplementalModel>supplemental-models.xml</supplementalModel>
104 </supplementalModels>
113 <!--Make it so assembly:single does nothing in here-->
114 <artifactId>maven-assembly-plugin</artifactId>
116 <skipAssembly>true</skipAssembly>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-shade-plugin</artifactId>
122 <version>3.2.4</version>
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 <exclude>jakarta.activation:jakarta.activation-api</exclude> <!-- Hadoop 3.3.1 -->
143 <exclude>jakarta.ws.rs:jakarta.ws.rs-api</exclude>
144 <exclude>jakarta.annotation:jakarta.annotation-api</exclude>
145 <exclude>jakarta.validation:jakarta.validation-api</exclude>
146 <exclude>org.glassfish.hk2.external:jakarta.inject</exclude>
147 <!-- default to excluding Hadoop, have module that want
148 to include it redefine the exclude list -->
149 <exclude>org.apache.hadoop:*</exclude>
150 <!-- the rest of this needs to be kept in sync with any
151 hadoop-including module -->
152 <exclude>org.apache.hbase:hbase-resource-bundle</exclude>
153 <exclude>org.slf4j:*</exclude>
154 <exclude>com.google.code.findbugs:*</exclude>
155 <exclude>com.github.stephenc.findbugs:*</exclude>
156 <exclude>com.github.spotbugs:*</exclude>
157 <exclude>org.apache.htrace:*</exclude>
158 <exclude>org.apache.yetus:*</exclude>
159 <exclude>log4j:*</exclude>
160 <exclude>commons-logging:*</exclude>
161 <exclude>org.javassist:*</exclude>
165 <!-- top level com not including sun-->
167 <pattern>com.cedarsoftware</pattern>
168 <shadedPattern>${shaded.prefix}.com.cedarsoftware</shadedPattern>
171 <pattern>com.codahale</pattern>
172 <shadedPattern>${shaded.prefix}.com.codahale</shadedPattern>
175 <pattern>com.ctc</pattern>
176 <shadedPattern>${shaded.prefix}.com.ctc</shadedPattern>
179 <pattern>com.dropwizard</pattern>
180 <shadedPattern>${shaded.prefix}.com.dropwizard</shadedPattern>
183 <pattern>com.fasterxml</pattern>
184 <shadedPattern>${shaded.prefix}.com.fasterxml</shadedPattern>
187 <pattern>com.github.benmanes.caffeine</pattern>
188 <shadedPattern>${shaded.prefix}.com.github.benmanes.caffeine</shadedPattern>
191 <pattern>com.google</pattern>
192 <shadedPattern>${shaded.prefix}.com.google</shadedPattern>
195 <pattern>com.jamesmurty</pattern>
196 <shadedPattern>${shaded.prefix}.com.jamesmurty</shadedPattern>
199 <pattern>com.jcraft</pattern>
200 <shadedPattern>${shaded.prefix}.com.jcraft</shadedPattern>
203 <pattern>com.lmax</pattern>
204 <shadedPattern>${shaded.prefix}.com.lmax</shadedPattern>
207 <pattern>com.microsoft</pattern>
208 <shadedPattern>${shaded.prefix}.com.microsoft</shadedPattern>
211 <pattern>com.nimbusds</pattern>
212 <shadedPattern>${shaded.prefix}.com.nimbusds</shadedPattern>
215 <pattern>com.squareup</pattern>
216 <shadedPattern>${shaded.prefix}.com.squareup</shadedPattern>
219 <pattern>com.thoughtworks</pattern>
220 <shadedPattern>${shaded.prefix}.com.thoughtworks</shadedPattern>
223 <pattern>com.zaxxer</pattern>
224 <shadedPattern>${shaded.prefix}.com.zaxxer</shadedPattern>
229 <pattern>org.xbill</pattern>
230 <shadedPattern>${shaded.prefix}.org.xbill</shadedPattern>
233 <!-- netty family -->
235 <pattern>org.jboss.netty</pattern>
236 <shadedPattern>${shaded.prefix}.org.jboss.netty</shadedPattern>
239 <pattern>io.netty</pattern>
240 <shadedPattern>${shaded.prefix}.io.netty</shadedPattern>
243 <!-- top level okio -->
245 <pattern>okio</pattern>
246 <shadedPattern>${shaded.prefix}.okio</shadedPattern>
249 <!-- top level org -->
251 <pattern>org.checkerframework</pattern>
252 <shadedPattern>${shaded.prefix}.org.checkerframework</shadedPattern>
255 <pattern>org.codehaus</pattern>
256 <shadedPattern>${shaded.prefix}.org.codehaus</shadedPattern>
259 <pattern>org.eclipse</pattern>
260 <shadedPattern>${shaded.prefix}.org.eclipse</shadedPattern>
263 <pattern>org.ehcache</pattern>
264 <shadedPattern>${shaded.prefix}.org.ehcache</shadedPattern>
267 <pattern>org.jcodings</pattern>
268 <shadedPattern>${shaded.prefix}.org.jcodings</shadedPattern>
271 <pattern>org.joni</pattern>
272 <shadedPattern>${shaded.prefix}.org.joni</shadedPattern>
275 <pattern>org.mortbay</pattern>
276 <shadedPattern>${shaded.prefix}.org.mortbay</shadedPattern>
279 <pattern>org.nustaq</pattern>
280 <shadedPattern>${shaded.prefix}.org.nustaq</shadedPattern>
283 <pattern>org.terracotta</pattern>
284 <shadedPattern>${shaded.prefix}.org.terracotta</shadedPattern>
287 <pattern>org.tukaani</pattern>
288 <shadedPattern>${shaded.prefix}.org.tukaani</shadedPattern>
291 <pattern>org.xerial</pattern>
292 <shadedPattern>${shaded.prefix}.org.xerial</shadedPattern>
295 <pattern>org.znerd</pattern>
296 <shadedPattern>${shaded.prefix}.org.znerd</shadedPattern>
299 <pattern>org.aopalliance</pattern>
300 <shadedPattern>${shaded.prefix}.org.aopalliance</shadedPattern>
303 <pattern>org.fusesource</pattern>
304 <shadedPattern>${shaded.prefix}.org.fusesource</shadedPattern>
307 <pattern>org.iq80</pattern>
308 <shadedPattern>${shaded.prefix}.org.iq80</shadedPattern>
311 <pattern>org.jamon</pattern>
312 <shadedPattern>${shaded.prefix}.org.jamon</shadedPattern>
315 <pattern>org.jets3t</pattern>
316 <shadedPattern>${shaded.prefix}.org.jets3t</shadedPattern>
318 <!-- poorly named add-on package from jets3t dependency. TODO can we just exclude these? -->
320 <pattern>contribs.mx</pattern>
321 <shadedPattern>${shaded.prefix}.contribs.mx</shadedPattern>
324 <pattern>org.objectweb</pattern>
325 <shadedPattern>${shaded.prefix}.org.objectweb</shadedPattern>
329 <!-- org.apache relocations not in org.apache.hadoop or org.apache.commons -->
331 <pattern>org.apache.avro</pattern>
332 <shadedPattern>${shaded.prefix}.org.apache.avro</shadedPattern>
335 <pattern>org.apache.curator</pattern>
336 <shadedPattern>${shaded.prefix}.org.apache.curator</shadedPattern>
339 <pattern>org.apache.directory</pattern>
340 <shadedPattern>${shaded.prefix}.org.apache.directory</shadedPattern>
343 <pattern>org.apache.http</pattern>
344 <shadedPattern>${shaded.prefix}.org.apache.http</shadedPattern>
347 <pattern>org.apache.jasper</pattern>
348 <shadedPattern>${shaded.prefix}.org.apache.jasper</shadedPattern>
351 <pattern>org.apache.jute</pattern>
352 <shadedPattern>${shaded.prefix}.org.apache.jute</shadedPattern>
355 <pattern>org.apache.kerby</pattern>
356 <shadedPattern>${shaded.prefix}.org.apache.kerby</shadedPattern>
359 <pattern>org.apache.taglibs</pattern>
360 <shadedPattern>${shaded.prefix}.org.apache.taglibs</shadedPattern>
363 <pattern>org.apache.zookeeper</pattern>
364 <shadedPattern>${shaded.prefix}.org.apache.zookeeper</shadedPattern>
367 <!-- org.apache.commons not including logging -->
369 <pattern>org.apache.commons.beanutils</pattern>
370 <shadedPattern>${shaded.prefix}.org.apache.commons.beanutils</shadedPattern>
373 <pattern>org.apache.commons.cli</pattern>
374 <shadedPattern>${shaded.prefix}.org.apache.commons.cli</shadedPattern>
377 <pattern>org.apache.commons.collections</pattern>
378 <shadedPattern>${shaded.prefix}.org.apache.commons.collections</shadedPattern>
381 <pattern>org.apache.commons.configuration</pattern>
382 <shadedPattern>${shaded.prefix}.org.apache.commons.configuration</shadedPattern>
385 <pattern>org.apache.commons.crypto</pattern>
386 <shadedPattern>${shaded.prefix}.org.apache.commons.crypto</shadedPattern>
389 <pattern>org.apache.commons.csv</pattern>
390 <shadedPattern>${shaded.prefix}.org.apache.commons.csv</shadedPattern>
393 <pattern>org.apache.commons.daemon</pattern>
394 <shadedPattern>${shaded.prefix}.org.apache.commons.daemon</shadedPattern>
397 <pattern>org.apache.commons.io</pattern>
398 <shadedPattern>${shaded.prefix}.org.apache.commons.io</shadedPattern>
401 <pattern>org.apache.commons.math</pattern>
402 <shadedPattern>${shaded.prefix}.org.apache.commons.math</shadedPattern>
405 <pattern>org.apache.commons.math3</pattern>
406 <shadedPattern>${shaded.prefix}.org.apache.commons.math3</shadedPattern>
409 <pattern>org.apache.commons.net</pattern>
410 <shadedPattern>${shaded.prefix}.org.apache.commons.net</shadedPattern>
413 <pattern>org.apache.commons.lang</pattern>
414 <shadedPattern>${shaded.prefix}.org.apache.commons.lang</shadedPattern>
417 <pattern>org.apache.commons.lang3</pattern>
418 <shadedPattern>${shaded.prefix}.org.apache.commons.lang3</shadedPattern>
421 <pattern>org.apache.commons.el</pattern>
422 <shadedPattern>${shaded.prefix}.org.apache.commons.el</shadedPattern>
425 <pattern>org.apache.commons.httpclient</pattern>
426 <shadedPattern>${shaded.prefix}.org.apache.commons.httpclient</shadedPattern>
429 <pattern>org.apache.commons.compress</pattern>
430 <shadedPattern>${shaded.prefix}.org.apache.commons.compress</shadedPattern>
433 <pattern>org.apache.commons.digester</pattern>
434 <shadedPattern>${shaded.prefix}.org.apache.commons.digester</shadedPattern>
437 <pattern>org.apache.commons.codec</pattern>
438 <shadedPattern>${shaded.prefix}.org.apache.commons.codec</shadedPattern>
441 <pattern>org.apache.commons.text</pattern>
442 <shadedPattern>${shaded.prefix}.org.apache.commons.text</shadedPattern>
445 <!-- top level net-->
447 <pattern>net/</pattern>
448 <shadedPattern>${shaded.prefix}.net.</shadedPattern>
453 <!-- Need to filter out some extraneous license files.
454 Don't use the ApacheLicenseRT because it just removes all
455 META-INF/LICENSE(.txt)? files, including ours. -->
456 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
458 <resource>LICENSE.txt</resource>
459 <resource>ASL2.0</resource>
460 <!-- also this unneeded doc -->
461 <resource>overview.html</resource>
464 <!-- Where notices exist, just concat them -->
465 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
466 <addHeader>false</addHeader>
467 <projectName>${project.name}</projectName>
469 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
473 <!-- remove utility classes which are not required from dnsjava -->
475 <artifact>dnsjava:dnsjava</artifact>
477 <exclude>dig*</exclude>
478 <exclude>jnamed*</exclude>
479 <exclude>lookup*</exclude>
480 <exclude>update*</exclude>
484 <!-- this is a signed osgi bundle -->
485 <artifact>org.eclipse.jetty.orbit:javax.servlet.jsp.jstl</artifact>
487 <exclude>META-INF/ECLIPSEF.SF</exclude>
488 <exclude>META-INF/ECLIPSEF.RSA</exclude>
492 <!-- Duplication of classes that ship in commons-collections 2.x and 3.x
493 If we stop bundling a relevant commons-collections artifact we'll
494 need to revisit. See: https://s.apache.org/e09o
496 <artifact>commons-beanutils:commons-beanutils-core</artifact>
498 <exclude>org/apache/commons/collections/*.class</exclude>
502 <!-- server side webapps that we don't need -->
503 <artifact>org.apache.hadoop:hadoop-yarn-common</artifact>
505 <exclude>webapps/*</exclude>
506 <exclude>webapps/**/*</exclude>
510 <artifact>*:*</artifact>
512 <!-- proto source files aren't needed -->
513 <exclude>*.proto</exclude>
514 <exclude>**/*.proto</exclude>
515 <!-- We already concat NOTICE, safe to drop individual ones -->
516 <exclude>LICENSE</exclude>
517 <exclude>NOTICE</exclude>
518 <!-- Remove the shaded guava added in hadoop-3.3.1+-->
519 <exclude>org/apache/hadoop/thirdparty/**/*</exclude>
523 <!-- skip french localization -->
524 <artifact>org.apache.commons:commons-math3</artifact>
526 <exclude>assets/org/apache/commons/math3/**/*</exclude>
530 <!-- appears to be the result of a conflict in hadoop artifacts -->
531 <artifact>org.apache.hadoop:*</artifact>
533 <exclude>mapred-default.xml.orig</exclude>
536 <!-- unnecessary files that mess up our invariants check -->
538 <artifact>org.eclipse.jetty:*</artifact>
540 <exclude>about.html</exclude>
541 <exclude>jetty-dir.css</exclude>
545 <artifact>org.apache.kerby:*</artifact>
547 <exclude>krb5-template.conf</exclude>
548 <exclude>krb5_udp-template.conf</exclude>
549 <exclude>ccache.txt</exclude>
550 <exclude>keytab.txt</exclude>