-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
487 lines (456 loc) · 15.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
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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.europeana.annotation</groupId>
<artifactId>annotation-api</artifactId>
<version>0.5.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Annotation API parent</name>
<description>Annotation API parent pom</description>
<repositories>
<repository>
<id>libs-release</id>
<name>europeana-releases</name>
<url>https://artifactory.eanadev.org/artifactory/libs-release/</url>
</repository>
<repository>
<id>libs-snapshots-local</id>
<name>europeana-snapshots</name>
<url>https://artifactory.eanadev.org/artifactory/libs-snapshot/</url>
</repository>
<!-- repo for plugins, required to resolve git-commit-id -->
<repository>
<id>plugins-release</id>
<name>artifactory plugins-release</name>
<url>https://artifactory.eanadev.org/artifactory/plugins-release</url>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<revision>0.5.1-SNAPSHOT</revision>
<version.commonsApi>0.4.3-SNAPSHOT</version.commonsApi>
<!-- not used anymore
<version.europeana-search-tools>0.0.1</version.europeana-search-tools>
-->
<java.version>17</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<!-- SG: NOTE: for newer maven compiler plugin only release version
should be required -->
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- property to be used for add opens jvm arguments in plugins -->
<java.17.addopens>--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
</java.17.addopens>
<version.org.junit.jupiter>5.7.2</version.org.junit.jupiter>
<version.junit-platform>1.2.0</version.junit-platform>
<version.spring.boot>2.5.14</version.spring.boot>
<version.swagger>3.0.0</version.swagger>
<version.apache.commons.io>2.11.0</version.apache.commons.io>
<version.aspectj>1.8.8</version.aspectj>
<version.log4j2>2.17.2</version.log4j2>
<version.commonsLang3>3.0</version.commonsLang3>
<version.annotationld>1.1.7</version.annotationld>
<version.codehausJackson>1.9.9</version.codehausJackson>
<version.jackson>2.11.4</version.jackson>
<version.jackson-jsonld>0.1.1</version.jackson-jsonld>
<version.apiKeyClient>1.1</version.apiKeyClient>
<version.apacheSolr>7.7.2</version.apacheSolr>
<version.woodstox>3.2.9</version.woodstox>
<version.servletJstl>1.2</version.servletJstl>
<version.slf4j>1.7.5</version.slf4j>
<version.guava>18.0</version.guava>
<version.gson>2.8.9</version.gson>
<version.httpClient>3.1</version.httpClient>
<version.saxonHE>10.1</version.saxonHE>
<version.jaxb>2.3.1</version.jaxb>
<version.subtitle-converter>1</version.subtitle-converter>
<git-commit-id.version>5.0.0</git-commit-id.version>
<version.testcontainers>1.19.7</version.testcontainers>
<mongodb.version>4.7.2</mongodb.version>
<version.morphia>1.6.1</version.morphia>
<version.codehaus.jettison>1.5.1</version.codehaus.jettison>
<version.maven-surfire-plugin>3.0.0-M7</version.maven-surfire-plugin>
<version.maven-failsafe-plugin>3.0.0-M7</version.maven-failsafe-plugin>
<version.javax.ws.rs>2.1.1</version.javax.ws.rs>
<!-- sonar plugins -->
<jacoco-plugin.version>0.8.11</jacoco-plugin.version>
<pmd-plugin.version>3.15.0</pmd-plugin.version>
<spotbugs-plugin.version>4.5.2.0</spotbugs-plugin.version>
<sonar-plugin.version>3.7.0.1746</sonar-plugin.version>
<sonar.java.pmd.reportPaths>${project.build.directory}/pmd.xml</sonar.java.pmd.reportPaths>
<sonar.java.spotbugs.reportPaths>
${project.build.directory}/spotbugsXml.xml</sonar.java.spotbugs.reportPaths>
<sonar.organization>europeana</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<!-- Exclude POJOs code duplication analysis -->
<sonar.cpd.exclusions>**/model/**/*</sonar.cpd.exclusions>
<aggregate.report.xml>
annotation-tests/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.xml>
<sonar.coverage.jacoco.xmlReportPaths>${aggregate.report.xml}</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<modules>
<module>annotation-definitions</module>
<module>annotation-utils</module>
<module>annotation-dereferenciation</module>
<module>annotation-mongo</module>
<module>annotation-solr</module>
<module>annotation-web</module>
<module>annotation-client</module>
<module>annotation-fulltext</module>
<module>annotation-statistics</module>
<module>annotation-tests</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot (because we
don't use Spring-Boot as parent pom)-->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${version.spring.boot}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- upgrade mongo driver and morphia to support mongo V6-->
<!-- SG: for some reason, the versions from spring boot take
precedence over the versions from api-commons depencies, therefore
we need to replicate here the configs from api-commons -->
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
<version>${mongodb.version}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>${mongodb.version}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>${mongodb.version}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-core</artifactId>
<version>${mongodb.version}</version>
</dependency>
<dependency>
<groupId>dev.morphia.morphia</groupId>
<artifactId>core</artifactId>
<version>${version.morphia}</version>
<exclusions>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
</exclusion>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- excude conflicting dependecies for mongo and logging-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
<version>${version.springBoot}</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
</exclusion>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<!-- plugins to run on build time -->
<plugins>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<!--
<version>${git-commit-id.version}</version>
-->
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>
${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
<includeOnlyProperty>git.branch</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
<configuration>
<additionalProperties>
<project.description>${project.description}</project.description>
<!-- For some reason BuildProperties.getName()
doesn't return the correct value,
so we set the name under a different property -->
<project.name>${project.name}</project.name>
</additionalProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Fixes Integration test not finding beans. May be
removed with 3.0.0-M6 is available
See: https://stackoverflow.com/a/65806777/14530159 -->
<useModulePath>false</useModulePath>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-integration-test-source</id>
<!-- Normally this would be attached to the
generate-test-source phase,
however we attach to generate-sources so that the git-code-format plugin can
pick
up integration test source files (see plugin config above) -->
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<!-- Configures the source directory of our
integration tests -->
<sources>
<source>src/integration-test/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-integration-test-resources</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<!-- Configures the resource directory of our
integration tests -->
<resources>
<resource>
<filtering>true</filtering>
<directory>src/integration-test/resources</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>${java.version}</release>
</configuration>
</plugin>
-->
</plugins>
<!-- plugin managmeent -->
<pluginManagement>
<plugins>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>${git-commit-id.version}</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${version.spring.boot}</version>
<configuration>
<jvmArguments>${java.17.addopens}</jvmArguments>
</configuration>
</plugin>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.maven-surfire-plugin}</version>
<configuration>
<argLine>${java.17.addopens}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${version.maven-failsafe-plugin}</version>
<configuration>
<argLine>${java.17.addopens}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- profiles (for computing code coverage on github) -->
<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<!-- Plugin has an indirect dependency on an old version
os asm. This is disabled, so we
can use the asm version specified above. See:
https://issueexplorer.com/issue/pmd/pmd/3504#21570220 -->
<dependencies>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
<version>0.0.0.M2a</version>
<exclusions>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<version>${pmd-plugin.version}</version>
<configuration>
<rulesets>
<ruleset>
https://raw.githubusercontent.com/europeana/api-commons/master/misc/rulesets/europeana-pmd-ruleset.xml</ruleset>
</rulesets>
<printFailingErrors>true</printFailingErrors>
</configuration>
<executions>
<execution>
<id>aggregate</id>
<goals>
<goal>pmd</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-plugin.version}</version>
<executions>
<execution>
<id>spotbugs</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<includeFilterFile>
https://raw.githubusercontent.com/europeana/api-commons/master/misc/rulesets/europeana-findbugs-ruleset.xml</includeFilterFile>
<!--We just want the reports; build should still pass -->
<failOnError>false</failOnError>
<!-- Import additional rules from plugins -->
<plugins>
<plugin>
<groupId>com.h3xstream.findsecbugs</groupId>
<artifactId>findsecbugs-plugin</artifactId>
<version>1.11.0</version>
</plugin>
<plugin>
<groupId>com.mebigfatguy.fb-contrib</groupId>
<artifactId>fb-contrib</artifactId>
<version>7.4.3.sb</version>
</plugin>
</plugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>