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.0</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.ws.rs:jakarta.ws.rs-api</exclude>
143 <exclude>jakarta.annotation:jakarta.annotation-api</exclude>
144 <exclude>jakarta.validation:jakarta.validation-api</exclude>
145 <exclude>org.glassfish.hk2.external:jakarta.inject</exclude>
146 <!-- default to excluding Hadoop, have module that want
147 to include it redefine the exclude list -->
148 <exclude>org.apache.hadoop:*</exclude>
149 <!-- the rest of this needs to be kept in sync with any
150 hadoop-including module -->
151 <exclude>org.apache.hbase:hbase-resource-bundle</exclude>
152 <exclude>org.slf4j:*</exclude>
153 <exclude>com.google.code.findbugs:*</exclude>
154 <exclude>com.github.stephenc.findbugs:*</exclude>
155 <exclude>com.github.spotbugs:*</exclude>
156 <exclude>org.apache.htrace:*</exclude>
157 <exclude>org.apache.yetus:*</exclude>
158 <exclude>log4j:*</exclude>
159 <exclude>commons-logging:*</exclude>
160 <exclude>org.javassist:*</exclude>
164 <!-- top level com not including sun-->
166 <pattern>com.cedarsoftware</pattern>
167 <shadedPattern>${shaded.prefix}.com.cedarsoftware</shadedPattern>
170 <pattern>com.codahale</pattern>
171 <shadedPattern>${shaded.prefix}.com.codahale</shadedPattern>
174 <pattern>com.ctc</pattern>
175 <shadedPattern>${shaded.prefix}.com.ctc</shadedPattern>
178 <pattern>com.dropwizard</pattern>
179 <shadedPattern>${shaded.prefix}.com.dropwizard</shadedPattern>
182 <pattern>com.fasterxml</pattern>
183 <shadedPattern>${shaded.prefix}.com.fasterxml</shadedPattern>
186 <pattern>com.github.benmanes.caffeine</pattern>
187 <shadedPattern>${shaded.prefix}.com.github.benmanes.caffeine</shadedPattern>
190 <pattern>com.google</pattern>
191 <shadedPattern>${shaded.prefix}.com.google</shadedPattern>
194 <pattern>com.jamesmurty</pattern>
195 <shadedPattern>${shaded.prefix}.com.jamesmurty</shadedPattern>
198 <pattern>com.jcraft</pattern>
199 <shadedPattern>${shaded.prefix}.com.jcraft</shadedPattern>
202 <pattern>com.lmax</pattern>
203 <shadedPattern>${shaded.prefix}.com.lmax</shadedPattern>
206 <pattern>com.microsoft</pattern>
207 <shadedPattern>${shaded.prefix}.com.microsoft</shadedPattern>
210 <pattern>com.nimbusds</pattern>
211 <shadedPattern>${shaded.prefix}.com.nimbusds</shadedPattern>
214 <pattern>com.squareup</pattern>
215 <shadedPattern>${shaded.prefix}.com.squareup</shadedPattern>
218 <pattern>com.thoughtworks</pattern>
219 <shadedPattern>${shaded.prefix}.com.thoughtworks</shadedPattern>
222 <pattern>com.zaxxer</pattern>
223 <shadedPattern>${shaded.prefix}.com.zaxxer</shadedPattern>
228 <pattern>org.xbill</pattern>
229 <shadedPattern>${shaded.prefix}.org.xbill</shadedPattern>
232 <!-- netty family -->
234 <pattern>org.jboss.netty</pattern>
235 <shadedPattern>${shaded.prefix}.org.jboss.netty</shadedPattern>
238 <pattern>io.netty</pattern>
239 <shadedPattern>${shaded.prefix}.io.netty</shadedPattern>
242 <!-- top level okio -->
244 <pattern>okio</pattern>
245 <shadedPattern>${shaded.prefix}.okio</shadedPattern>
248 <!-- top level org -->
250 <pattern>org.checkerframework</pattern>
251 <shadedPattern>${shaded.prefix}.org.checkerframework</shadedPattern>
254 <pattern>org.codehaus</pattern>
255 <shadedPattern>${shaded.prefix}.org.codehaus</shadedPattern>
258 <pattern>org.eclipse</pattern>
259 <shadedPattern>${shaded.prefix}.org.eclipse</shadedPattern>
262 <pattern>org.ehcache</pattern>
263 <shadedPattern>${shaded.prefix}.org.ehcache</shadedPattern>
266 <pattern>org.jcodings</pattern>
267 <shadedPattern>${shaded.prefix}.org.jcodings</shadedPattern>
270 <pattern>org.joni</pattern>
271 <shadedPattern>${shaded.prefix}.org.joni</shadedPattern>
274 <pattern>org.mortbay</pattern>
275 <shadedPattern>${shaded.prefix}.org.mortbay</shadedPattern>
278 <pattern>org.nustaq</pattern>
279 <shadedPattern>${shaded.prefix}.org.nustaq</shadedPattern>
282 <pattern>org.terracotta</pattern>
283 <shadedPattern>${shaded.prefix}.org.terracotta</shadedPattern>
286 <pattern>org.tukaani</pattern>
287 <shadedPattern>${shaded.prefix}.org.tukaani</shadedPattern>
290 <pattern>org.xerial</pattern>
291 <shadedPattern>${shaded.prefix}.org.xerial</shadedPattern>
294 <pattern>org.znerd</pattern>
295 <shadedPattern>${shaded.prefix}.org.znerd</shadedPattern>
298 <pattern>org.aopalliance</pattern>
299 <shadedPattern>${shaded.prefix}.org.aopalliance</shadedPattern>
302 <pattern>org.fusesource</pattern>
303 <shadedPattern>${shaded.prefix}.org.fusesource</shadedPattern>
306 <pattern>org.iq80</pattern>
307 <shadedPattern>${shaded.prefix}.org.iq80</shadedPattern>
310 <pattern>org.jamon</pattern>
311 <shadedPattern>${shaded.prefix}.org.jamon</shadedPattern>
314 <pattern>org.jets3t</pattern>
315 <shadedPattern>${shaded.prefix}.org.jets3t</shadedPattern>
317 <!-- poorly named add-on package from jets3t dependency. TODO can we just exclude these? -->
319 <pattern>contribs.mx</pattern>
320 <shadedPattern>${shaded.prefix}.contribs.mx</shadedPattern>
323 <pattern>org.objectweb</pattern>
324 <shadedPattern>${shaded.prefix}.org.objectweb</shadedPattern>
328 <!-- org.apache relocations not in org.apache.hadoop or org.apache.commons -->
330 <pattern>org.apache.avro</pattern>
331 <shadedPattern>${shaded.prefix}.org.apache.avro</shadedPattern>
334 <pattern>org.apache.curator</pattern>
335 <shadedPattern>${shaded.prefix}.org.apache.curator</shadedPattern>
338 <pattern>org.apache.directory</pattern>
339 <shadedPattern>${shaded.prefix}.org.apache.directory</shadedPattern>
342 <pattern>org.apache.http</pattern>
343 <shadedPattern>${shaded.prefix}.org.apache.http</shadedPattern>
346 <pattern>org.apache.jasper</pattern>
347 <shadedPattern>${shaded.prefix}.org.apache.jasper</shadedPattern>
350 <pattern>org.apache.jute</pattern>
351 <shadedPattern>${shaded.prefix}.org.apache.jute</shadedPattern>
354 <pattern>org.apache.kerby</pattern>
355 <shadedPattern>${shaded.prefix}.org.apache.kerby</shadedPattern>
358 <pattern>org.apache.taglibs</pattern>
359 <shadedPattern>${shaded.prefix}.org.apache.taglibs</shadedPattern>
362 <pattern>org.apache.zookeeper</pattern>
363 <shadedPattern>${shaded.prefix}.org.apache.zookeeper</shadedPattern>
366 <!-- org.apache.commons not including logging -->
368 <pattern>org.apache.commons.beanutils</pattern>
369 <shadedPattern>${shaded.prefix}.org.apache.commons.beanutils</shadedPattern>
372 <pattern>org.apache.commons.cli</pattern>
373 <shadedPattern>${shaded.prefix}.org.apache.commons.cli</shadedPattern>
376 <pattern>org.apache.commons.collections</pattern>
377 <shadedPattern>${shaded.prefix}.org.apache.commons.collections</shadedPattern>
380 <pattern>org.apache.commons.configuration</pattern>
381 <shadedPattern>${shaded.prefix}.org.apache.commons.configuration</shadedPattern>
384 <pattern>org.apache.commons.crypto</pattern>
385 <shadedPattern>${shaded.prefix}.org.apache.commons.crypto</shadedPattern>
388 <pattern>org.apache.commons.csv</pattern>
389 <shadedPattern>${shaded.prefix}.org.apache.commons.csv</shadedPattern>
392 <pattern>org.apache.commons.daemon</pattern>
393 <shadedPattern>${shaded.prefix}.org.apache.commons.daemon</shadedPattern>
396 <pattern>org.apache.commons.io</pattern>
397 <shadedPattern>${shaded.prefix}.org.apache.commons.io</shadedPattern>
400 <pattern>org.apache.commons.math</pattern>
401 <shadedPattern>${shaded.prefix}.org.apache.commons.math</shadedPattern>
404 <pattern>org.apache.commons.math3</pattern>
405 <shadedPattern>${shaded.prefix}.org.apache.commons.math3</shadedPattern>
408 <pattern>org.apache.commons.net</pattern>
409 <shadedPattern>${shaded.prefix}.org.apache.commons.net</shadedPattern>
412 <pattern>org.apache.commons.lang</pattern>
413 <shadedPattern>${shaded.prefix}.org.apache.commons.lang</shadedPattern>
416 <pattern>org.apache.commons.lang3</pattern>
417 <shadedPattern>${shaded.prefix}.org.apache.commons.lang3</shadedPattern>
420 <pattern>org.apache.commons.el</pattern>
421 <shadedPattern>${shaded.prefix}.org.apache.commons.el</shadedPattern>
424 <pattern>org.apache.commons.httpclient</pattern>
425 <shadedPattern>${shaded.prefix}.org.apache.commons.httpclient</shadedPattern>
428 <pattern>org.apache.commons.compress</pattern>
429 <shadedPattern>${shaded.prefix}.org.apache.commons.compress</shadedPattern>
432 <pattern>org.apache.commons.digester</pattern>
433 <shadedPattern>${shaded.prefix}.org.apache.commons.digester</shadedPattern>
436 <pattern>org.apache.commons.codec</pattern>
437 <shadedPattern>${shaded.prefix}.org.apache.commons.codec</shadedPattern>
440 <pattern>org.apache.commons.text</pattern>
441 <shadedPattern>${shaded.prefix}.org.apache.commons.text</shadedPattern>
444 <!-- top level net-->
446 <pattern>net/</pattern>
447 <shadedPattern>${shaded.prefix}.net.</shadedPattern>
452 <!-- Need to filter out some extraneous license files.
453 Don't use the ApacheLicenseRT because it just removes all
454 META-INF/LICENSE(.txt)? files, including ours. -->
455 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
457 <resource>LICENSE.txt</resource>
458 <resource>ASL2.0</resource>
459 <!-- also this unneeded doc -->
460 <resource>overview.html</resource>
463 <!-- Where notices exist, just concat them -->
464 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
465 <addHeader>false</addHeader>
466 <projectName>${project.name}</projectName>
468 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
472 <!-- remove utility classes which are not required from dnsjava -->
474 <artifact>dnsjava:dnsjava</artifact>
476 <exclude>dig*</exclude>
477 <exclude>jnamed*</exclude>
478 <exclude>lookup*</exclude>
479 <exclude>update*</exclude>
483 <!-- this is a signed osgi bundle -->
484 <artifact>org.eclipse.jetty.orbit:javax.servlet.jsp.jstl</artifact>
486 <exclude>META-INF/ECLIPSEF.SF</exclude>
487 <exclude>META-INF/ECLIPSEF.RSA</exclude>
491 <!-- Duplication of classes that ship in commons-collections 2.x and 3.x
492 If we stop bundling a relevant commons-collections artifact we'll
493 need to revisit. See: https://s.apache.org/e09o
495 <artifact>commons-beanutils:commons-beanutils-core</artifact>
497 <exclude>org/apache/commons/collections/*.class</exclude>
501 <!-- server side webapps that we don't need -->
502 <artifact>org.apache.hadoop:hadoop-yarn-common</artifact>
504 <exclude>webapps/*</exclude>
505 <exclude>webapps/**/*</exclude>
509 <artifact>*:*</artifact>
511 <!-- proto source files aren't needed -->
512 <exclude>*.proto</exclude>
513 <exclude>**/*.proto</exclude>
514 <!-- We already concat NOTICE, safe to drop individual ones -->
515 <exclude>LICENSE</exclude>
516 <exclude>NOTICE</exclude>
520 <!-- skip french localization -->
521 <artifact>org.apache.commons:commons-math3</artifact>
523 <exclude>assets/org/apache/commons/math3/**/*</exclude>
527 <!-- appears to be the result of a conflict in hadoop artifacts -->
528 <artifact>org.apache.hadoop:*</artifact>
530 <exclude>mapred-default.xml.orig</exclude>
533 <!-- unnecessary files that mess up our invariants check -->
535 <artifact>org.eclipse.jetty:*</artifact>
537 <exclude>about.html</exclude>
538 <exclude>jetty-dir.css</exclude>
542 <artifact>org.apache.kerby:*</artifact>
544 <exclude>krb5-template.conf</exclude>
545 <exclude>krb5_udp-template.conf</exclude>
546 <exclude>ccache.txt</exclude>
547 <exclude>keytab.txt</exclude>