@@ -30,11 +30,6 @@ limitations under the License.
30
30
bigtable-hbase-1.x.
31
31
</description >
32
32
33
- <properties >
34
- <!-- define a property that can be ignored by renovate -->
35
- <hbase1-hadoop-slf4j .version>1.6.1</hbase1-hadoop-slf4j .version>
36
- </properties >
37
-
38
33
<dependencies >
39
34
<dependency >
40
35
<groupId >${project.groupId} </groupId >
@@ -47,8 +42,8 @@ limitations under the License.
47
42
<artifactId >hbase-shaded-client</artifactId >
48
43
</exclusion >
49
44
<exclusion >
50
- <groupId >com.google.code.findbugs </groupId >
51
- <artifactId >jsr305 </artifactId >
45
+ <groupId >ch.qos.reload4j </groupId >
46
+ <artifactId >reload4j </artifactId >
52
47
</exclusion >
53
48
54
49
<!-- Workaround MNG-5899 & MSHADE-206. Maven >= 3.3.0 doesn't use the dependency reduced
@@ -73,33 +68,22 @@ limitations under the License.
73
68
</exclusion >
74
69
</exclusions >
75
70
</dependency >
71
+
76
72
<dependency >
77
73
<groupId >org.apache.hbase</groupId >
78
74
<artifactId >hbase-client</artifactId >
79
75
<version >${hbase1.version} </version >
80
- </dependency >
81
-
82
- <!-- Manually promote dependencies: This is necessary to avoid flattening hbase-shaded-client's dependency tree -->
83
- <dependency >
84
- <groupId >commons-logging</groupId >
85
- <artifactId >commons-logging</artifactId >
86
- <version >${commons-logging.version} </version >
76
+ <exclusions >
77
+ <exclusion >
78
+ <groupId >log4j</groupId >
79
+ <artifactId >log4j</artifactId >
80
+ </exclusion >
81
+ </exclusions >
87
82
</dependency >
88
83
<dependency >
89
84
<groupId >ch.qos.reload4j</groupId >
90
85
<artifactId >reload4j</artifactId >
91
86
<version >${reload4j.version} </version >
92
- <scope >runtime</scope >
93
- </dependency >
94
-
95
- <!-- unlike hbase-shaded-client, hbase-client depends on slf4j 1.6.1.
96
- Which is older than the version requested by metrics-core. However,
97
- metrics-core will work fine with the older version and we want to stay
98
- compatible with hbase-client deps -->
99
- <dependency >
100
- <groupId >org.slf4j</groupId >
101
- <artifactId >slf4j-api</artifactId >
102
- <version >${hbase1-hadoop-slf4j.version} </version >
103
87
</dependency >
104
88
105
89
<!-- Test deps -->
@@ -112,34 +96,31 @@ limitations under the License.
112
96
</dependencies >
113
97
114
98
<build >
115
- <plugins >
116
- <!-- disable google-cloud-shared-config enforcement checks because
117
- hbase-client's dependency subtree doesn't follow the same rules and is
118
- unable to be fixed here -->
119
- <plugin >
120
- <groupId >org.apache.maven.plugins</groupId >
121
- <artifactId >maven-enforcer-plugin</artifactId >
122
- <executions >
123
- <execution >
124
- <id >enforce</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 >
99
+ <pluginManagement >
100
+ <plugins >
101
+ <plugin >
102
+ <groupId >org.apache.maven.plugins</groupId >
103
+ <artifactId >maven-enforcer-plugin</artifactId >
104
+ <executions >
105
+ <execution >
106
+ <id >enforce</id >
107
+ <!-- requireUpperBoundDeps, banDuplicateClasses -->
108
+ <configuration >
109
+ <skip >true</skip >
110
+ </configuration >
111
+ </execution >
112
+ <execution >
113
+ <id >enforce-banned-deps</id >
114
+ <configuration >
115
+ <skip >true</skip >
116
+ </configuration >
117
+ </execution >
118
+ </executions >
119
+ </plugin >
120
+ </plugins >
121
+ </pluginManagement >
142
122
123
+ <plugins >
143
124
<plugin >
144
125
<groupId >org.apache.maven.plugins</groupId >
145
126
<artifactId >maven-shade-plugin</artifactId >
@@ -153,9 +134,12 @@ limitations under the License.
153
134
<shadedArtifactAttached >false</shadedArtifactAttached >
154
135
<createDependencyReducedPom >true</createDependencyReducedPom >
155
136
<!-- Need to manually promote to dependencies to keep the structure of hbase-shade-client -->
156
- <promoteTransitiveDependencies >
157
- false
158
- </promoteTransitiveDependencies >
137
+ <promoteTransitiveDependencies >false</promoteTransitiveDependencies >
138
+ <transformers >
139
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
140
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
141
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
142
+ </transformers >
159
143
<filters >
160
144
<filter >
161
145
<artifact >*:*</artifact >
@@ -166,29 +150,11 @@ limitations under the License.
166
150
</excludes >
167
151
</filter >
168
152
</filters >
169
- <transformers >
170
- <transformer
171
- implementation =" org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
172
- <transformer
173
- implementation =" org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
174
- <transformer implementation =" org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
175
- </transformers >
176
153
<artifactSet >
177
154
<includes >
178
- <include >
179
- com.google.cloud.bigtable:bigtable-hbase-1.x-shaded
180
- </include >
155
+ <include >com.google.cloud.bigtable:bigtable-hbase-1.x-shaded</include >
181
156
</includes >
182
157
</artifactSet >
183
- <relocations >
184
- <!-- Undo the relocation that hbase-shaded-client did to make it compatible with the regular hbase-client -->
185
- <relocation >
186
- <pattern >
187
- org.apache.hadoop.hbase.shaded.com.google.protobuf
188
- </pattern >
189
- <shadedPattern >com.google.protobuf</shadedPattern >
190
- </relocation >
191
- </relocations >
192
158
</configuration >
193
159
</execution >
194
160
</executions >
@@ -225,7 +191,7 @@ limitations under the License.
225
191
</goals >
226
192
</execution >
227
193
<execution >
228
- <id >verify-mirror-deps</id >
194
+ <id >verify-mirror-deps-hbase </id >
229
195
<phase >verify</phase >
230
196
<goals >
231
197
<goal >verify-mirror-deps</goal >
@@ -235,11 +201,7 @@ limitations under the License.
235
201
<targetDependency >org.apache.hbase:hbase-client</targetDependency >
236
202
</targetDependencies >
237
203
<ignoredDependencies >
238
- <!-- Unfortunately we can't use hadoop's version of slf4j
239
- because dropwizard metrics slf4j logger requires a higher version
240
- we can't shade it either -->
241
- <dependency >org.slf4j:slf4j-api</dependency >
242
-
204
+ <dependency >log4j:log4j</dependency >
243
205
<!-- for some reason hbase-client exposes testing deps as a compile dep, just ignore them -->
244
206
<dependency >junit:junit</dependency >
245
207
<dependency >org.hamcrest:hamcrest-core</dependency >
0 commit comments