-
Notifications
You must be signed in to change notification settings - Fork 177
/
pom.xml
355 lines (341 loc) · 14.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2017 Google Inc. All Rights Reserved.
Licensed 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>bigtable-hbase-1.x-parent</artifactId>
<groupId>com.google.cloud.bigtable</groupId>
<version>1.23.2-SNAPSHOT</version> <!-- {x-version-update:bigtable-client-parent:current} -->
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bigtable-hbase-1.x-shaded</artifactId>
<description>
Please use bigtable-hbase-1.x or bigtable-hbase-1.x-hadoop. Bigtable
connector compatible with HBase 1.x. It exposes the minimal set of
dependencies. Its mainly intended to be used by dataflow 1.x to avoid
version conflicts with grpc & protobuf. Prefer to use bigtable-hbase-1.x
in general and bigtable-hbase-1.x-hadoop for hadoop classpath compatible
applications.
</description>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigtable-bom</artifactId>
<version>${bigtable.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigtable-deps-bom</artifactId>
<version>${bigtable.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Internal dependencies that will be shaded along with their transitive dependencies.
When adding new internal dependencies, make sure to exclude them from the reactor in direct dependents.
See the *-hadoop/pom.xml and bigtable-hbase-beam/pom.xml for more details-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bigtable-hbase-1.x</artifactId>
<version>1.23.2-SNAPSHOT</version> <!-- {x-version-update:bigtable-client-parent:current} -->
</dependency>
<!-- Since opencensus-api is a transitive dep, we have to shade its impl as well.
Otherwise the -api will be permanently severed from the impl and exporters -->
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-impl</artifactId>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-contrib-zpages</artifactId>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-exporter-stats-stackdriver</artifactId>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-exporter-trace-stackdriver</artifactId>
</dependency>
<!-- grpc-census needed alongside opencensus-exporter-stats-stackdriver for GRPC stats exports to work -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-census</artifactId>
</dependency>
<!-- Manually promote public dependencies: This is necessary to avoid flattening hbase-shaded-client's dependency tree -->
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-shaded-client</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
<version>${hbase1-metrics.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>true</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<!-- Need to manually promote to dependencies to keep the structure of hbase-shade-client.
Also, this is needed to workaround maven reactor not using dependency-reduced-pom.xml
files. See note in bigtable-1.x-hadoop .-->
<promoteTransitiveDependencies>
false
</promoteTransitiveDependencies>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<artifactSet>
<excludes>
<!-- exclude user visible deps -->
<exclude>io.dropwizard.metrics:metrics-core</exclude>
<exclude>commons-logging:commons-logging</exclude>
<exclude>com.google.code.findbugs:jsr305</exclude>
<!-- exclude hbase-shaded-client & all of its dependencies -->
<exclude>org.apache.hbase:hbase-shaded-client</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
<exclude>org.slf4j:slf4j-log4j12</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
<exclude>log4j:log4j</exclude>
<exclude>org.apache.htrace:htrace-core</exclude>
<exclude>
com.github.stephenc.findbugs:findbugs-annotations
</exclude>
<exclude>log4j:log4j</exclude>
<exclude>junit:junit</exclude>
<exclude>org.hamcrest:hamcrest-core</exclude>
<exclude>javax.inject:javax.inject</exclude>
<exclude>javax.annotation:javax.annotation-api</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>
com.google.bigtable.repackaged.com.google
</shadedPattern>
<excludes>
<!-- don't shade our public hbase implementation. This includes com.google.cloud.bigtable.hbase.*
and references to com.google.cloud.bigtable.hbase1_x in the version specific jars.
-->
<exclude>com.google.cloud.bigtable.hbase*.**</exclude>
<exclude>com.google.cloud.bigtable.metrics.**</exclude>
<!-- in case maven is called with overlapping goals (ie. mvn install verify),
avoid double relocation -->
<exclude>com.google.bigtable.repackaged.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>com.fasterxml</pattern>
<shadedPattern>
com.google.bigtable.repackaged.com.faster.xml
</shadedPattern>
</relocation>
<relocation>
<pattern>com.twitter</pattern>
<shadedPattern>
com.google.bigtable.repackaged.com.twitter
</shadedPattern>
</relocation>
<!-- Take special care of grpc-netty-shaded, it uses the package
io.grpc.netty.shaded.io.grpc.netty, which will cause the
ServicesResourceTransformer to replace both occurrences of io.grpc
-->
<relocation>
<pattern>io.grpc.netty.shaded.io.grpc.netty</pattern>
<shadedPattern>
com.google.bigtable.repackaged.io.grpc.netty
</shadedPattern>
</relocation>
<relocation>
<pattern>io.grpc</pattern>
<shadedPattern>
com.google.bigtable.repackaged.io.grpc
</shadedPattern>
</relocation>
<!-- Opencensus related shading -->
<relocation>
<pattern>io.opencensus</pattern>
<shadedPattern>
com.google.bigtable.repackaged.io.opencensus
</shadedPattern>
</relocation>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.json
</shadedPattern>
</relocation>
<relocation>
<pattern>com.lmax</pattern>
<shadedPattern>
com.google.bigtable.repackaged.com.lmax
</shadedPattern>
</relocation>
<!-- Relocate netty, taking care to keep the prefix consistent for native tcnative
libs. For details see:
https://github.com/netty/netty/pull/6995
https://github.com/grpc/grpc-java/pull/2485
-->
<relocation>
<pattern>
META-INF/native/libio_grpc_netty_shaded_netty
</pattern>
<shadedPattern>
META-INF/native/libcom_google_bigtable_repackaged_io_grpc_netty_shaded_netty
</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/native/io_grpc_netty_shaded_netty</pattern>
<shadedPattern>
META-INF/native/com_google_bigtable_repackaged_io_grpc_netty_shaded_netty
</shadedPattern>
</relocation>
<relocation>
<pattern>org.joda</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.joda
</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.apache.http
</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.codec</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.apache.commons.codec
</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.lang3</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.apache.commons.lang3
</shadedPattern>
</relocation>
<relocation>
<pattern>org.conscrypt</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.conscrypt
</shadedPattern>
</relocation>
<relocation>
<pattern>org.threeten</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.threeten
</shadedPattern>
</relocation>
<relocation>
<pattern>org.codehaus</pattern>
<shadedPattern>
com.google.bigtable.repackaged.org.codehaus
</shadedPattern>
</relocation>
<relocation>
<pattern>org.checkerframework</pattern>
<shadedPattern>com.google.bigtable.repackaged.org.checkerframework</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<!-- Manually promote dependencies: This is necessary to avoid flattening hbase-shaded-client's dependency tree -->
<usedDependencies>
<usedDependency>
com.google.cloud.bigtable:bigtable-hbase-1.x
</usedDependency>
<usedDependency>
org.apache.hbase:hbase-shaded-client
</usedDependency>
<usedDependency>com.google.code.findbugs:jsr305</usedDependency>
<usedDependency>commons-logging:commons-logging</usedDependency>
<usedDependency>io.dropwizard.metrics:metrics-core</usedDependency>
<usedDependency>io.opencensus:opencensus-impl</usedDependency>
<usedDependency>
io.opencensus:opencensus-contrib-zpages
</usedDependency>
<usedDependency>
io.opencensus:opencensus-exporter-trace-stackdriver
</usedDependency>
<usedDependency>
io.opencensus:opencensus-exporter-stats-stackdriver
</usedDependency>
<usedDependency>io.grpc:grpc-census</usedDependency>
</usedDependencies>
</configuration>
</plugin>
<plugin>
<!-- skip for shaded jar-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>