-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
348 lines (338 loc) · 12.7 KB
/
pom.xml
File metadata and controls
348 lines (338 loc) · 12.7 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>tech.stackable</groupId>
<artifactId>hdfs-utils</artifactId>
<version>0.6.0</version>
<name>Apache Hadoop HDFS utils</name>
<url>https://github.com/stackabletech/hdfs-utils/</url>
<organization>
<name>Stackable GmbH</name>
<url>https://stackable.tech</url>
</organization>
<licenses>
<license>
<name>Apache-2.0</name>
</license>
</licenses>
<scm>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
<tag>HEAD</tag>
<url>git@github.com:stackabletech/hdfs-utils.git</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/stackabletech/hdfs-utils/issues</url>
</issueManagement>
<properties>
<!-- Hadoop >= 3.5.x is compiled against Java 17, 3.4.x against Java 11 -->
<!-- Once we drop HDFS 3.4.x support, we can bump to 17 here -->
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Tip:
Use "mvn versions:display-dependency-updates" and
"mvn versions:display-plugin-updates"
to check for updates -->
<cleanthat.version>2.22</cleanthat.version>
<error-prone.version>2.35.1</error-prone.version>
<google-java-format.version>1.24.0</google-java-format.version>
<cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version>
<maven-clean-plugin.version>3.5.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
<maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
<maven-install-plugin.version>3.1.4</maven-install-plugin.version>
<maven-jar-plugin.version>3.5.0</maven-jar-plugin.version>
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
<maven-shade-plugin.version>3.6.2</maven-shade-plugin.version>
<maven-site-plugin.version>3.12.1</maven-site-plugin.version>
<maven-surefire-plugin.version>3.5.5</maven-surefire-plugin.version>
<spotless-maven-plugin.version>3.5.1</spotless-maven-plugin.version>
<kubernetes-client.version>7.7.0</kubernetes-client.version>
<!--
Jackson is bundled and relocated (see maven-shade-plugin), so it is decoupled from the
Jackson that Hadoop ships. Keep this aligned with the version the kubernetes-client pulls in
(jackson-datatype-jsr310 / jackson-dataformat-yaml) so the bundled Jackson set is consistent. -->
<jackson.version>2.21.3</jackson.version>
</properties>
<dependencyManagement>
<dependencies>
<!--
Force every Jackson module (databind, core, annotations, jsr310, yaml) to a single
version. Otherwise Maven mediation pins some modules (e.g. jackson-core) to the old
version pulled in through Hadoop's (provided) dependency tree, leaving the bundled and
relocated Jackson set internally inconsistent. -->
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<!--
Bundled (not provided) and relocated via the shade plugin, see the relocations there.
Pinned to the version used by the fabric8 kubernetes-client so the whole Jackson set
(databind, core, annotations, jsr310, yaml) stays internally consistent, independent of
whatever Jackson the target Hadoop ships. -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- Needed by topology-provider -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.2.4</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>${kubernetes-client.version}</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client-api</artifactId>
<version>${kubernetes-client.version}</version>
</dependency>
<!-- End of needed by topology-provider -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>${error-prone.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<configuration>
<rules>
<banDuplicatePomDependencyVersions/>
<banDynamicVersions/>
<banDuplicatePomDependencyVersions/>
<banDynamicVersions/>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.6.3</version>
</requireMavenVersion>
<requirePluginVersions/>
</rules>
</configuration>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<relocations>
<!--
Relocate Jackson so the bundled (fabric8 kubernetes-client) Jackson is fully
self-contained and does not clash with the Jackson that Hadoop ships on its
classpath. Without this, the NameNode loads Hadoop's old jackson-databind
(e.g. 2.12.7 on HDFS 3.4.x) while our bundled jackson-datatype-jsr310 expects a
newer one, causing NoClassDefFoundError (e.g. ToEmptyObjectSerializer). -->
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>tech.stackable.shaded.com.fasterxml.jackson</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version>
<configuration>
<java>
<cleanthat>
<version>${cleanthat.version}</version>
</cleanthat>
<removeUnusedImports/>
<formatAnnotations/>
<googleJavaFormat>
<version>${google-java-format.version}</version>
</googleJavaFormat>
</java>
<markdown>
<includes>
<include>**/*.md</include>
</includes>
<flexmark/>
</markdown>
<json>
<includes>
<include>src/**/*.json</include>
</includes>
<jackson/>
</json>
<!--
POM rewriting conflicts with the maven-release-plugin.
The release plugin rewrites the POM file in a way that is incompatible with spotless, and they change
the contents back and forth to match their respective styles. -->
<!--pom>
<sortPom>
<expandEmptyElements>false</expandEmptyElements>
</sortPom>
</pom-->
</configuration>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${cyclonedx-maven-plugin.version}</version>
<configuration>
<projectType>application</projectType>
<schemaVersion>1.5</schemaVersion>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>hadoop-3.4.2</id>
<!--
Users need to explicitly set the version of Hadoop they want to build against
<activation>
<activeByDefault>true</activeByDefault>
</activation>
-->
<properties>
<hadoop.version>3.4.2</hadoop.version>
<!-- Taken from https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common/3.4.2 -->
<slf4j.version>1.7.36</slf4j.version>
</properties>
</profile>
<profile>
<id>hadoop-3.4.3</id>
<properties>
<hadoop.version>3.4.3</hadoop.version>
<!-- Taken from https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common/3.4.3 -->
<slf4j.version>1.7.36</slf4j.version>
</properties>
</profile>
<profile>
<id>hadoop-3.5.0</id>
<properties>
<hadoop.version>3.5.0</hadoop.version>
<!-- Taken from https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common/3.5.0 -->
<slf4j.version>1.7.36</slf4j.version>
</properties>
</profile>
</profiles>
</project>