-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
419 lines (387 loc) · 19.4 KB
/
pom.xml
File metadata and controls
419 lines (387 loc) · 19.4 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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<?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>
<!-- region project data -->
<groupId>mx.whiteweb.sdev</groupId>
<artifactId>white-utils</artifactId>
<version>1.0.9</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>A lightweight library containing shared and generic utility classes for Java-based projects.</description>
<url>https://github.com/WhiteOrganization/white-utils</url>
<!-- This section (packaging) is defined because the project is meant to be a library and a JAR will be generated. -->
<packaging>jar</packaging>
<!--endregion-->
<properties>
<!-- region Configure Java version & Main full package and class name -->
<!-- WARNING: add release scope if 1.9 and older versions are used at build/plugins/plugin/[maven-compiler-plugin]/configuration-->
<java.version>8</java.version>
<!--endregion-->
<!-- region General configurations of the project -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<junit.platform.version>1.3.2</junit.platform.version>
<surefire.failsafe.plugin.version>3.0.0-M8</surefire.failsafe.plugin.version>
<surefire.version>2.22.2</surefire.version>
<skipTests>false</skipTests>
<skipITs>${skipTests}</skipITs>
<skipUTs>${skipTests}</skipUTs>
<logs.path>${project.build.directory}/test-reports/logs</logs.path>
<slf4j.version>2.0.9</slf4j.version>
<!-- region Maven Central deployments -->
<organization>WhiteOrganization</organization>
<repository.name>${project.artifactId}</repository.name>
<!-- endregion Maven Central deployments -->
</properties>
<dependencies>
<!-- region Testing (No-Spring) -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite-engine</artifactId>
<version>1.9.2</version>
</dependency>
<!-- endregion Testing -->
<!-- region SLF4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- endregion SLF4J -->
</dependencies>
<!-- region Maven releases support -->
<!-- Sonatype configuration required to deploy to maven central -->
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Obed Vazquez</name>
<email>obed.vazquez@gmail.com</email>
<organization>${organization}</organization>
<organizationUrl>https://github.com/${organization}/</organizationUrl>
</developer>
</developers>
<!-- You also require Maven settings.xml configuration to authenticate when performing a `mvn release:prepare` -->
<scm>
<connection>scm:git:https://github.com/${organization}/${repository.name}.git</connection>
<developerConnection>scm:git:https://github.com/${organization}/${repository.name}.git</developerConnection>
<url>https://github.com/${organization}/${repository.name}/tree/main</url>
<tag>${project.artifactId}-${project.version}</tag>
</scm>
<!-- in settings.xml you need this configuration:
<servers>
<server>
<id>central</id>
<username>${env.CENTRAL_USERNAME}</username>
<password>${env.CENTRAL_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<id>release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>release</activeProfile>
</activeProfiles>
-->
<!-- in this repo's case local deployments are not being used, instead this is replaced by the
detect-version-and-tag.yml & publish-to-central.yml workflows.
-->
<!-- endregion Maven releases support -->
<!-- region Profiles -->
<profiles>
<!-- region Sonatype Maven Central Profile -->
<profile>
<id>maven-central</id>
<activation>
<property>
<name>target</name>
<value>sonatype</value>
</property>
</activation>
<build>
<plugins>
<!-- region Sonatype Plugins -->
<!-- region Maven Release Plugin -->
<!-- we can now use `mvn release:clean release:prepare -D target=sonatype`
followed by `mvn release:perform -D target=sonatype` -->
<!-- https://central.sonatype.org/publish/publish-maven/#performing-a-release-deployment-with-the-maven-release-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<!-- endregion Maven Release Plugin -->
<!-- region Sonatype Nexus Config -->
<!-- https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
<!-- https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release -->
<!-- for SNAPSHOT's use `mvn clean deploy -D target=sonatype` -->
<!-- for Releases: use `mvn versions:set -DnewVersion=1.x.x -D target=sonatype`
followed by `mvn clean deploy -D target=sonatype` -->
<!-- <plugin>-->
<!-- <groupId>org.sonatype.plugins</groupId>-->
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
<!-- <!– Versions: https://search.maven.org/artifact/org.sonatype.plugins/nexus-staging-maven-plugin –>-->
<!-- <version>1.7.0</version>-->
<!-- <extensions>true</extensions>-->
<!-- <configuration>-->
<!-- <serverId>ossrh</serverId>-->
<!-- <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>-->
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- endregion Sonatype Nexus Config -->
<!-- region Sonatype SRC+Javadocs plugin -->
<!-- https://central.sonatype.org/publish/publish-maven/#javadoc-and-sources-attachments
The sources and Javadocs will be included in the deployment -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalOptions>
<additionalOption>-Xdoclint:all</additionalOption>
<additionalOption>-Xdoclint:-missing</additionalOption>
</additionalOptions>
</configuration>
</plugin>
<!-- endregion Sonatype SRC+Javadocs plugin -->
<!-- region GPG Signed -->
<!-- relies on the gpg command being installed and the GPG credentials in settings.xml
https://central.sonatype.org/publish/publish-maven/#gpg-signed-components -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- endregion GPG Signed -->
<!-- endregion Sonatype Plugins -->
</plugins>
</build>
</profile>
<!-- endregion Sonatype Maven Central Profile -->
<profile>
<id>disable-java8-doc-lint</id>
<activation>
<activeByDefault>true</activeByDefault>
<!-- <jdk>[1.8,)</jdk>-->
</activation>
<properties>
<!-- region disable DockLint -->
<!-- Eliminates the JavaDoc problems in later versions when you have problems in the documentation -->
<doclint>none</doclint>
<!-- endregion disable DockLint -->
<!-- <name>spring.profiles.active</name>-->
<!-- <value>disable-java8-doc-lint</value>-->
<activatedProperties>disable-java8-doc-lint</activatedProperties>
</properties>
</profile>
<profile>
<id>headless</id>
<!-- <activation>-->
<!-- <jdk>[1.8,)</jdk>-->
<!-- </activation>-->
<properties>
<!-- region disable DockLint -->
<!-- Eliminates the JavaDoc problems in later versions when you have problems in the documentation -->
<doclint>none</doclint>
<!-- endregion disable DockLint -->
<excluded.tags>ExcludeWhenHeadless</excluded.tags>
<!-- <name>spring.profiles.active</name>-->
<!-- <value>headless</value>-->
<activatedProperties>headless</activatedProperties>
</properties>
</profile>
</profiles>
<!-- endregion Profiles -->
<build>
<!-- <finalName>${project.artifactId}</finalName>-->
<plugins>
<!-- region Established the java version defined in the properties' section for every scope (compatible with newer java versions) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- WARNING: add release property for 1.9 and older versions -->
<!-- <release>${java.version}</release>-->
</configuration>
</plugin>
<!-- endregion -->
<!-- region Maven Generates JavaDocs of the project and adds it to the generated JAR-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--endregion-->
<!-- region Maven is able to run JUnit5 Unit Tests (surefire) -->
<!-- This requires junit-jupiter-engine [in junit-jupiter] dependency! -->
<!-- This will run everything that Starts or ends with Test[(Case)|s]{0-1}. -->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-surefire-plugin</artifactId>-->
<!-- <version>${surefire.failsafe.plugin.version}</version>-->
<!-- <executions>-->
<!-- <execution><goals><goal>test</goal></goals></execution>-->
<!-- </executions>-->
<!--<!– <configuration>–>-->
<!--<!– <reportsDirectory>${logs.path}</reportsDirectory>–>-->
<!--<!– <redirectTestOutputToFile>true</redirectTestOutputToFile>–>-->
<!--<!– </configuration>–>-->
<!-- <!– region Deprecated in 3.0.0-M4 –>-->
<!-- <!– above M3 will get this on its own, but it will not let you know,-->
<!-- it will just throw a problem with org/apache/maven/surefire/booter/ForkedProcessEvent –>-->
<!-- <dependencies>-->
<!-- <dependency>-->
<!-- <groupId>org.junit.platform</groupId>-->
<!-- <artifactId>junit-platform-surefire-provider</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.junit.jupiter</groupId>-->
<!-- <artifactId>junit-jupiter-engine</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- </dependency>-->
<!-- </dependencies>-->
<!-- <!– endregion Deprecated in 3.0.0-M4 –>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<executions>
<execution><goals><goal>test</goal></goals></execution>
</executions>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<reportsDirectory>${logs.path}</reportsDirectory>
<!-- override sufrefire plugins behaviors, provided by: https://stackoverflow.com/questions/6612344/prevent-unit-tests-but-allow-integration-tests-in-maven#:~:text=%20%3Cskiptests%3E%24%7Bskiptests%7D%3C%2Fskiptests%3E%20%3Cskipits%3E%24%7Bskipits%7D%3C%2Fskipits%3E -->
<skipTests>${skipUTs}</skipTests>
</configuration>
</plugin>
<!-- region surefire-report Generates an HTML report -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${surefire.failsafe.plugin.version}</version>
<configuration>
<!-- <reportsDirectories>${logs.path}</reportsDirectories>-->
<reportsDirectories>
<reportsDirectory>${logs.path}</reportsDirectory>
</reportsDirectories>
</configuration>
</plugin>
<!-- endregion surefire-report Generates an HTML report -->
<!-- endregion -->
<!-- region Maven runs Integration Tests -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire.failsafe.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<reportsDirectory>${logs.path}</reportsDirectory>
<!--suppress MavenModelInspection -->
<excludedGroups>${excluded.tags}</excludedGroups>
<!-- override sufrefire plugins behaviors, provided by: https://stackoverflow.com/questions/6612344/prevent-unit-tests-but-allow-integration-tests-in-maven#:~:text=%20%3Cskiptests%3E%24%7Bskiptests%7D%3C%2Fskiptests%3E%20%3Cskipits%3E%24%7Bskipits%7D%3C%2Fskipits%3E -->
<skipTests>${skipTests}</skipTests>
<skipITs>${skipITs}</skipITs>
</configuration>
</plugin>
<!-- endregion Maven runs Integration Tests -->
<!-- region Maven Central Deployments-->
<!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<!-- endregion Maven Central Deployments-->
<!-- region Maven releases support -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<!-- endregion Maven releases support -->
</plugins>
</build>
</project>