@@ -30,25 +30,17 @@ limitations under the License.
30
30
bigtable-hbase-2.x.
31
31
</description >
32
32
33
- <properties >
34
- <!-- define a property that can be ignored by renovate -->
35
- <hbase2-hadoop-slf4j .version>1.7.30</hbase2-hadoop-slf4j .version>
36
- </properties >
37
-
38
33
<dependencies >
39
34
<dependency >
40
35
<groupId >${project.groupId} </groupId >
41
36
<artifactId >bigtable-hbase-2.x-shaded</artifactId >
42
37
<version >2.12.1-SNAPSHOT</version > <!-- {x-version-update:bigtable-client-parent:current} -->
43
38
<exclusions >
39
+ <!-- hbase-shaded-client will be replaced with hbase-client -->
44
40
<exclusion >
45
41
<groupId >org.apache.hbase</groupId >
46
42
<artifactId >hbase-shaded-client</artifactId >
47
43
</exclusion >
48
- <exclusion >
49
- <groupId >com.google.code.findbugs</groupId >
50
- <artifactId >jsr305</artifactId >
51
- </exclusion >
52
44
53
45
<!-- Workaround MNG-5899 & MSHADE-206. Maven >= 3.3.0 doesn't use the dependency reduced
54
46
pom.xml files when invoking the build from a parent project. So we have to manually exclude
@@ -58,6 +50,7 @@ limitations under the License.
58
50
<groupId >${project.groupId} </groupId >
59
51
<artifactId >bigtable-hbase-2.x</artifactId >
60
52
</exclusion >
53
+ <!-- TODO: remove this exclusion -->
61
54
<exclusion >
62
55
<groupId >com.google.cloud.bigtable</groupId >
63
56
<artifactId >bigtable-metrics-api</artifactId >
@@ -72,29 +65,13 @@ limitations under the License.
72
65
</exclusion >
73
66
</exclusions >
74
67
</dependency >
68
+
75
69
<dependency >
76
70
<groupId >org.apache.hbase</groupId >
77
71
<artifactId >hbase-client</artifactId >
78
72
<version >${hbase2.version} </version >
79
73
</dependency >
80
74
81
- <!-- Manually promote dependencies: This is necessary to avoid flattening hbase-shaded-client's dependency tree -->
82
- <dependency >
83
- <groupId >commons-logging</groupId >
84
- <artifactId >commons-logging</artifactId >
85
- <version >${commons-logging.version} </version >
86
- </dependency >
87
-
88
- <!-- unlike hbase-shaded-client, hbase-client depends on slf4j 1.6.1.
89
- Which is older than the version requested by metrics-core. However,
90
- metrics-core will work fine with the older version and we want to stay
91
- compatible with hbase-client deps -->
92
- <dependency >
93
- <groupId >org.slf4j</groupId >
94
- <artifactId >slf4j-api</artifactId >
95
- <version >${hbase2-hadoop-slf4j.version} </version >
96
- </dependency >
97
-
98
75
<!-- Test deps -->
99
76
<dependency >
100
77
<groupId >junit</groupId >
@@ -105,40 +82,37 @@ limitations under the License.
105
82
</dependencies >
106
83
107
84
<build >
85
+ <pluginManagement >
86
+ <plugins >
87
+ <plugin >
88
+ <groupId >org.apache.maven.plugins</groupId >
89
+ <artifactId >maven-enforcer-plugin</artifactId >
90
+ <executions >
91
+ <execution >
92
+ <id >enforce</id >
93
+ <!-- requireUpperBoundDeps, banDuplicateClasses -->
94
+ <configuration >
95
+ <skip >true</skip >
96
+ </configuration >
97
+ </execution >
98
+ <execution >
99
+ <id >enforce-banned-deps</id >
100
+ <configuration >
101
+ <skip >true</skip >
102
+ </configuration >
103
+ </execution >
104
+ <execution >
105
+ <id >enforce-version-consistency-slf4j</id >
106
+ <configuration >
107
+ <skip >true</skip >
108
+ </configuration >
109
+ </execution >
110
+ </executions >
111
+ </plugin >
112
+ </plugins >
113
+ </pluginManagement >
114
+
108
115
<plugins >
109
- <plugin >
110
- <!-- disable google-cloud-shared-config enforcement checks because
111
- hbase-client's dependency subtree doesn't follow the same rules and is
112
- unable to be fixed here -->
113
- <groupId >org.apache.maven.plugins</groupId >
114
- <artifactId >maven-enforcer-plugin</artifactId >
115
- <executions >
116
- <execution >
117
- <id >enforce</id >
118
- <configuration >
119
- <skip >true</skip >
120
- </configuration >
121
- </execution >
122
- <!-- hbase-client doesnt align slf4j-api & slf4j-log4j -->
123
- <execution >
124
- <id >enforce-version-consistency-slf4j</id >
125
- <configuration >
126
- <skip >true</skip >
127
- </configuration >
128
- </execution >
129
- <!-- This must be a drop in replacement for hbase-client, so can't
130
- manage hbase's deps -->
131
- <execution >
132
- <id >enforce-banned-deps</id >
133
- <goals >
134
- <goal >enforce</goal >
135
- </goals >
136
- <configuration >
137
- <skip >true</skip >
138
- </configuration >
139
- </execution >
140
- </executions >
141
- </plugin >
142
116
<plugin >
143
117
<groupId >org.apache.maven.plugins</groupId >
144
118
<artifactId >maven-shade-plugin</artifactId >
@@ -152,14 +126,10 @@ limitations under the License.
152
126
<shadedArtifactAttached >false</shadedArtifactAttached >
153
127
<createDependencyReducedPom >true</createDependencyReducedPom >
154
128
<!-- Need to manually promote to dependencies to keep the structure of hbase-shade-client -->
155
- <promoteTransitiveDependencies >
156
- false
157
- </promoteTransitiveDependencies >
129
+ <promoteTransitiveDependencies >false</promoteTransitiveDependencies >
158
130
<transformers >
159
- <transformer
160
- implementation =" org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
161
- <transformer
162
- implementation =" org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
131
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
132
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
163
133
<transformer implementation =" org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
164
134
</transformers >
165
135
<filters >
@@ -174,20 +144,9 @@ limitations under the License.
174
144
</filters >
175
145
<artifactSet >
176
146
<includes >
177
- <include >
178
- com.google.cloud.bigtable:bigtable-hbase-2.x-shaded
179
- </include >
147
+ <include >com.google.cloud.bigtable:bigtable-hbase-2.x-shaded</include >
180
148
</includes >
181
149
</artifactSet >
182
- <relocations >
183
- <!-- Undo the relocation that hbase-shaded-client did to make it compatible with the regular hbase-client -->
184
- <relocation >
185
- <pattern >
186
- org.apache.hadoop.hbase.shaded.com.google.protobuf
187
- </pattern >
188
- <shadedPattern >com.google.protobuf</shadedPattern >
189
- </relocation >
190
- </relocations >
191
150
</configuration >
192
151
</execution >
193
152
</executions >
@@ -226,20 +185,17 @@ limitations under the License.
226
185
</goals >
227
186
</execution >
228
187
<execution >
229
- <id >verify-mirror-deps</id >
188
+ <id >verify-mirror-deps-hbase </id >
230
189
<phase >verify</phase >
231
190
<goals >
232
191
<goal >verify-mirror-deps</goal >
233
192
</goals >
234
193
<configuration >
235
194
<targetDependencies >
236
- <targetDependency >org.apache.hbase:hbase-client: ${hbase2.version} </targetDependency >
195
+ <targetDependency >org.apache.hbase:hbase-client</targetDependency >
237
196
</targetDependencies >
238
197
<ignoredDependencies >
239
- <!-- There are 3 users of this dep: us, httpclient & hbase2.
240
- httpclient requires a higher version than hbase, so for now,
241
- we are using that version -->
242
- <ignoredDependency >commons-logging:commons-logging</ignoredDependency >
198
+ <dependency >log4j:log4j</dependency >
243
199
</ignoredDependencies >
244
200
</configuration >
245
201
</execution >
0 commit comments