forked from hibernate/hibernate-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
1755 lines (1679 loc) · 91.8 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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-License-Identifier: Apache-2.0
Copyright Red Hat Inc. and Hibernate Authors
-->
<!-- child.project.url.inherit.append.path is weird but necessary to have correct URLs in flattened POMs,
see XSD for more info. -->
<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"
child.project.url.inherit.append.path="false">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-parent</artifactId>
<version>8.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Hibernate Search</name>
<description>Hibernate Search Root POM</description>
<url>https://hibernate.org/search/</url>
<inceptionYear>2006</inceptionYear>
<issueManagement>
<system>JIRA</system>
<url>https://hibernate.atlassian.net/browse/HSEARCH</url>
</issueManagement>
<!-- The various child.*.append.path are weird but necessary to have correct URLs in flattened POMs,
see XSD for more info. -->
<scm child.scm.connection.inherit.append.path="false"
child.scm.developerConnection.inherit.append.path="false"
child.scm.url.inherit.append.path="false">
<connection>scm:git:git://github.com/hibernate/hibernate-search.git</connection>
<developerConnection>scm:git:[email protected]:hibernate/hibernate-search.git</developerConnection>
<url>http://github.com/hibernate/hibernate-search</url>
<tag>HEAD</tag>
</scm>
<organization>
<name>Hibernate</name>
<url>http://www.hibernate.org</url>
</organization>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>See also: https://hibernate.org/license</comments>
</license>
</licenses>
<ciManagement>
<system>Jenkins</system>
<url>https://ci.hibernate.org/job/hibernate-search/</url>
</ciManagement>
<developers>
<developer>
<id>epbernard</id>
<name>Emmanuel Bernard</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/emmanuel-bernard/</url>
</developer>
<developer>
<id>hardy.ferentschik</id>
<name>Hardy Ferentschik</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/hardy-ferentschik/</url>
</developer>
<developer>
<id>sannegrinovero</id>
<name>Sanne Grinovero</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/sanne-grinovero/</url>
</developer>
<developer>
<id>gunnar.morling</id>
<name>Gunnar Morling</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/gunnar-morling/</url>
</developer>
<developer>
<id>davide.dalto</id>
<name>Davide D'Alto</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/davide-dalto/</url>
</developer>
<developer>
<id>guillaume.smet</id>
<name>Guillaume Smet</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/guillaume-smet/</url>
</developer>
<developer>
<id>yoann.rodiere</id>
<name>Yoann Rodière</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/yoann-rodiere/</url>
</developer>
<developer>
<id>fabio.ercoli</id>
<name>Fabio Massimo Ercoli</name>
<email>[email protected]</email>
<organization>Red Hat, Inc.</organization>
<url>http://in.relation.to/fabio-massimo-ercoli/</url>
</developer>
<developer>
<id>mincong-h</id>
<name>Mincong Huang</name>
<email>[email protected]</email>
<url>http://mincong-h.github.io</url>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>Hibernate Announcements</name>
<post>[email protected]</post>
<subscribe>https://lists.jboss.org/mailman/listinfo/hibernate-announce</subscribe>
<unsubscribe>https://lists.jboss.org/mailman/listinfo/hibernate-announce</unsubscribe>
<archive>http://lists.jboss.org/pipermail/hibernate-dev/</archive>
</mailingList>
<mailingList>
<name>Hibernate Commit Notifications</name>
<post>[email protected]</post>
<subscribe>https://lists.jboss.org/mailman/listinfo/hibernate-commits</subscribe>
<unsubscribe>https://lists.jboss.org/mailman/listinfo/hibernate-commits</unsubscribe>
<archive>http://lists.jboss.org/pipermail/hibernate-commits/</archive>
</mailingList>
<mailingList>
<name>Hibernate Developers</name>
<post>[email protected]</post>
<subscribe>https://lists.jboss.org/mailman/listinfo/hibernate-dev</subscribe>
<unsubscribe>https://lists.jboss.org/mailman/listinfo/hibernate-dev</unsubscribe>
<archive>http://lists.jboss.org/pipermail/hibernate-dev/</archive>
<otherArchives>
<otherArchive>http://www.mail-archive.com/hibernate-dev%40lists.jboss.org/index.html</otherArchive>
</otherArchives>
</mailingList>
<mailingList>
<name>Hibernate Issue Notifications</name>
<post>[email protected]</post>
<subscribe>https://lists.jboss.org/mailman/listinfo/hibernate-issues</subscribe>
<unsubscribe>https://lists.jboss.org/mailman/listinfo/hibernate-issues</unsubscribe>
<archive>http://lists.jboss.org/pipermail/hibernate-issues/</archive>
</mailingList>
</mailingLists>
<modules>
<module>bom/public</module>
<module>build/parents/relocation</module>
<module>build/parents/build</module>
<module>build/enforcer</module>
<module>build/config</module>
<module>build/parents/internal</module>
<module>util/internal/test/common</module>
<module>util/internal/test/orm</module>
<module>build/parents/public</module>
<module>util/common</module>
<module>engine</module>
<module>backend/lucene</module>
<module>backend/elasticsearch</module>
<module>backend/elasticsearch-aws</module>
<module>mapper/pojo-base</module>
<module>mapper/pojo-standalone</module>
<module>mapper/orm</module>
<module>mapper/orm-outbox-polling</module>
<module>mapper/orm-coordination-outbox-polling</module>
<module>mapper/orm-batch-jsr352/core</module>
<module>mapper/orm-batch-jsr352/jberet</module>
<module>mapper/orm-jakarta-batch/core</module>
<module>mapper/orm-jakarta-batch/jberet</module>
<module>v5migrationhelper/engine</module>
<module>v5migrationhelper/orm</module>
<module>util/internal/integrationtest</module>
<module>build/parents/integrationtest</module>
<module>build/parents/springtest</module>
<module>integrationtest</module>
<module>documentation</module>
</modules>
<properties>
<!--
Version to be used as baseline for API/SPI change reports,
and for the migration guide
-->
<version.org.hibernate.search.previous-stable>7.2.0.Final</version.org.hibernate.search.previous-stable>
<!-- Build settings -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- JDK version required for the build; we target 17 but require at least 21 for the build -->
<jdk.min.version>21</jdk.min.version>
<!-- The lowest supported version of Java for applications using Hibernate Search -->
<!-- Set statically, independently from the current JDK: we want our code to comply with this version -->
<java-version.main.release>17</java-version.main.release>
<java-version.main.compiler.java_home>${java.home}</java-version.main.compiler.java_home>
<java-version.main.compiler>${java-version.main.compiler.java_home}/bin/javac</java-version.main.compiler>
<!-- The versions of Java documented as supported for applications using Hibernate Search -->
<java-version.main.compatible.expected.text>17 or 21</java-version.main.compatible.expected.text>
<!-- The version of test bytecode, useful for testing compatibility with newer JDKs -->
<!-- Set to the expected version of the JDK running Maven by default, but overridden on CI -->
<java-version.test.release>${jdk.min.version}</java-version.test.release>
<java-version.test.compiler.java_home>${java.home}</java-version.test.compiler.java_home>
<java-version.test.compiler>${java-version.test.compiler.java_home}/bin/javac</java-version.test.compiler>
<!-- IMPORTANT: For Java 8, this must be the path to the JDK, not to the JRE -->
<java-version.test.launcher.java_home>${java-version.test.compiler.java_home}</java-version.test.launcher.java_home>
<java-version.test.launcher>${java-version.test.launcher.java_home}/bin/java</java-version.test.launcher>
<!--
The absolute path to the root project directory.
This property is set by the build-helper plugin.
We initialize it to some crude, potentially wrong value,
because the Sonar Maven plugin uses this property indirectly,
but ignores any change made by other plugins.
This default value is the best we can do without the help of a Maven plugin.
Useful resources:
- https://www.mojohaus.org/build-helper-maven-plugin/rootlocation-mojo.html
-->
<rootProject.directory>${user.dir}</rootProject.directory>
<!--
The absolute path to an empty subdirectory of the root project.
This is used in places where we need a path to an existing, empty directory,
such as when fooling Sonar into thinking there is no "main" source in a project.
-->
<rootProject.empty.directory>${rootProject.directory}/.empty/directory</rootProject.empty.directory>
<!--
The absolute path to an empty Failsafe summary file.
-->
<rootProject.empty.failsafe.summaryFile>${rootProject.directory}/.empty/failsafe-summary.xml</rootProject.empty.failsafe.summaryFile>
<!-- Maven version required for the build -->
<!--
WARNING: Do not forget to call 'mvn wrapper:wrapper'
when you update this property!
-->
<maven.min.version>3.9.8</maven.min.version>
<!-- Set this through a property so that it can be overridden from the commandline -->
<maven.compiler.failOnWarning>true</maven.compiler.failOnWarning>
<maven.compiler.release>${java-version.main.release}</maven.compiler.release>
<maven.compiler.testRelease>${java-version.test.release}</maven.compiler.testRelease>
<!-- Also set source/target, because several other plugins rely on this and don't understand release -->
<maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
<maven.compiler.testSource>${maven.compiler.testRelease}</maven.compiler.testSource>
<maven.compiler.testTarget>${maven.compiler.testRelease}</maven.compiler.testTarget>
<!-- Plugin versions -->
<version.clean.plugin>3.4.0</version.clean.plugin>
<version.install.plugin>3.1.3</version.install.plugin>
<version.enforcer.plugin>3.5.0</version.enforcer.plugin>
<version.project-info.plugin>3.7.0</version.project-info.plugin>
<version.japicmp.plugin>0.23.0</version.japicmp.plugin>
<version.nexus-staging.plugin>1.7.0</version.nexus-staging.plugin>
<version.deploy.plugin>3.1.3</version.deploy.plugin>
<version.gpg.plugin>3.2.5</version.gpg.plugin>
<version.flatten-maven-plugin>1.6.0</version.flatten-maven-plugin>
<version.assembly.plugin>3.7.1</version.assembly.plugin>
<version.buildhelper.plugin>3.6.0</version.buildhelper.plugin>
<version.checkstyle.plugin>3.5.0</version.checkstyle.plugin>
<version.bundle.plugin>5.1.9</version.bundle.plugin>
<version.compiler.plugin>3.13.0</version.compiler.plugin>
<version.dependency.plugin>3.8.0</version.dependency.plugin>
<!-- Check dependencies for security vulnerabilities -->
<version.dependency-check.plugin>10.0.4</version.dependency-check.plugin>
<version.exec.plugin>3.4.1</version.exec.plugin>
<version.forbiddenapis.plugin>3.7</version.forbiddenapis.plugin>
<!-- Make sure that upgraded Jandex plugin aligns with the Jandex version imported from the ORM platform pom -->
<version.jandex.plugin>3.2.2</version.jandex.plugin>
<version.maven.injection.plugin>1.0.2</version.maven.injection.plugin>
<version.jar.plugin>3.4.2</version.jar.plugin>
<version.javadoc.plugin>3.10.0</version.javadoc.plugin>
<version.jdeps.plugin>0.5.1</version.jdeps.plugin>
<version.processor.plugin>5.1</version.processor.plugin>
<version.resources.plugin>3.3.1</version.resources.plugin>
<version.shade.plugin>3.6.0</version.shade.plugin>
<version.source.plugin>3.3.1</version.source.plugin>
<!-- Surefire versions are a minefield of bugs: be careful with upgrades -->
<version.surefire.plugin>3.5.0</version.surefire.plugin>
<version.surefire.plugin.java-version.asm>9.7</version.surefire.plugin.java-version.asm>
<version.jacoco.plugin>0.8.12</version.jacoco.plugin>
<version.com.buschmais.jqassistant.plugin>2.4.0</version.com.buschmais.jqassistant.plugin>
<version.moditect.plugin>1.2.2.Final</version.moditect.plugin>
<version.sonar.plugin>4.0.0.4121</version.sonar.plugin>
<version.scripting.plugin>3.0.0</version.scripting.plugin>
<version.org.apache.groovy.groovy-jsr223>4.0.13</version.org.apache.groovy.groovy-jsr223>
<version.com.puppycrawl.tools.checkstyle>10.18.1</version.com.puppycrawl.tools.checkstyle>
<version.versions.plugin>2.17.1</version.versions.plugin>
<version.maven-wrapper-plugin>3.3.2</version.maven-wrapper-plugin>
<version.impsort-maven-plugin>1.11.0</version.impsort-maven-plugin>
<version.formatter-maven-plugin>2.24.1</version.formatter-maven-plugin>
<version.org.eclipse.m2e.lifecycle-mapping>1.0.0</version.org.eclipse.m2e.lifecycle-mapping>
<version.sisu-maven-plugin>0.9.0.M3</version.sisu-maven-plugin>
<gitflow-incremental-builder.version>4.5.4</gitflow-incremental-builder.version>
<!-- Repository Deployment URLs -->
<ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id>
<ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.releases.repo.url>
<ossrh.releases.repo.baseUrl>https://oss.sonatype.org/</ossrh.releases.repo.baseUrl>
<ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
<ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
<!--
We don't want to publish or sign any modules by default.
Specific modules will override the setting at their own level.
-->
<deploy.skip>true</deploy.skip>
<maven-deploy-plugin.skip>true</maven-deploy-plugin.skip>
<!-- Can be overridden by subprojects if dependency convergence cannot be achieved -->
<enforcer.dependencyconvergence.skip>false</enforcer.dependencyconvergence.skip>
<!-- Maven Central repository -->
<mavencentral.repo.url>https://repo.maven.apache.org/maven2/</mavencentral.repo.url>
<!-- Eclipse repository (for the ECJ compiler, disabled by default) -->
<eclipse.repo.id>eclipse-staging</eclipse.repo.id>
<eclipse.repo.url>https://repo.eclipse.org/content/repositories/eclipse-staging/</eclipse.repo.url>
<!--
Options to compile with the Eclipse compiler when building with maven (not with the IDE).
See profile "compiler-eclipse".
Note the version of ECJ is overridden because the one bundled with the latest plexus-compiler version
is outdated and leads to compilation errors.
-->
<version.org.codehaus.plexus.plexus-compiler.compiler-eclipse>2.14.2</version.org.codehaus.plexus.plexus-compiler.compiler-eclipse>
<version.org.eclipse.jdt.ecj>3.38.0</version.org.eclipse.jdt.ecj>
<!-- Asciidoctor -->
<version.asciidoctor.plugin>3.0.0</version.asciidoctor.plugin>
<version.org.hibernate.infra.hibernate-asciidoctor-theme>5.0.2.Final</version.org.hibernate.infra.hibernate-asciidoctor-theme>
<version.org.asciidoctor.asciidoctorj>3.0.0</version.org.asciidoctor.asciidoctorj>
<version.org.asciidoctor.asciidoctorj-pdf>2.3.18</version.org.asciidoctor.asciidoctorj-pdf>
<!--
Defines what to do with dependency management section of the flattened pom.
We'd like to keep the section for the BOMs (since it is the BOM's only purpose).
But in case of other published modules, we only need the dependencies themselves and not the management section.
By default, we want to preserve the section and property references to be replaced with values.
-->
<flatten-maven-plugin.dependencyManagement.action>resolve</flatten-maven-plugin.dependencyManagement.action>
<!-- Overridden in profiles to disable the plugin (which doesn't have a 'skip' property...) -->
<injection-plugin.phase>compile</injection-plugin.phase>
<javadoc.generate.jar.phase>none</javadoc.generate.jar.phase>
<javadoc.generate.html.directory>${project.reporting.outputDirectory}/javadocs</javadoc.generate.html.directory>
<logging.processor.skip.generated.annotation.compiler.argument></logging.processor.skip.generated.annotation.compiler.argument>
<!-- Test settings -->
<!--
This is an explicit setting to control compiler plugin execution for the no `-parameters` flag case.
Needed as when `testIncludes` doesn't match any test classes, it brings all test sources and re-compiles them.
-->
<maven.compiler.testSources.noParameterCompilation.skip>true</maven.compiler.testSources.noParameterCompilation.skip>
<!-- Container images for various integration tests -->
<!-- The latest version of Elasticsearch tested against by default -->
<version.org.elasticsearch.latest>8.15.1</version.org.elasticsearch.latest>
<test.elasticsearch.version></test.elasticsearch.version>
<test.elasticsearch.distribution>elastic</test.elasticsearch.distribution>
<!-- Docker images to be pulled. To be redefined in specific profiles of Elasticsearch/OpenSearch \
or database specific ones. -->
<test.database.run.kind>h2</test.database.run.kind>
<test.elasticsearch.run.image.pull>true</test.elasticsearch.run.image.pull>
<!-- Set empty default values to avoid Maven leaving property references (${...}) when it doesn't find a value -->
<surefire.jvm.args.memory>-Xmx512m -Xms128m</surefire.jvm.args.memory>
<surefire.jvm.args.misc>-Djdk.attach.allowAttachSelf=true</surefire.jvm.args.misc>
<!-- JVM args to be customized depending on the Java version -->
<surefire.jvm.args.java-version></surefire.jvm.args.java-version>
<!-- JVM args generated by JaCoCo -->
<surefire.jvm.args.jacoco></surefire.jvm.args.jacoco>
<failsafe.jvm.args.jacoco></failsafe.jvm.args.jacoco>
<!-- JVM args to be customized by each Maven module -->
<surefire.jvm.args.module></surefire.jvm.args.module>
<surefire.jvm.args.module.add-opens></surefire.jvm.args.module.add-opens>
<!--
Pass these properties as system properties to be able to switch to
a different database without re-compiling the hibernate.properties file
(which is located in a dependency of the integration tests modules)
-->
<failsafe.jvm.args.hibernate-orm></failsafe.jvm.args.hibernate-orm>
<!-- Database profile jdbc java arguments -->
<failsafe.jvm.args.jdbc></failsafe.jvm.args.jdbc>
<!-- Argument passed from the command line -->
<test.launcher.args></test.launcher.args>
<!--
Caution, jacoco properties use @{...} for late property evaluation:
http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#late-property-evaluation
This is necessary for Jacoco to work as expected.
-->
<surefire.jvm.args.no-jacoco>${surefire.jvm.args.memory} ${surefire.jvm.args.misc} ${surefire.jvm.args.java-version} ${surefire.jvm.args.module} ${test.launcher.args}</surefire.jvm.args.no-jacoco>
<failsafe.jvm.args.no-jacoco>${surefire.jvm.args.memory} ${surefire.jvm.args.misc} ${surefire.jvm.args.java-version} ${surefire.jvm.args.module} ${test.launcher.args} ${failsafe.jvm.args.hibernate-orm} ${failsafe.jvm.args.jdbc}</failsafe.jvm.args.no-jacoco>
<surefire.jvm.args>${surefire.jvm.args.no-jacoco} @{surefire.jvm.args.jacoco}</surefire.jvm.args>
<failsafe.jvm.args>${surefire.jvm.args.no-jacoco} @{failsafe.jvm.args.jacoco}</failsafe.jvm.args>
<jacoco.environment.sub-directory>${surefire.environment}</jacoco.environment.sub-directory>
<!-- Disable integration tests selectively. To be set in specific profile, e.g. for a specific JDK version. -->
<failsafe.spring.skip>false</failsafe.spring.skip>
<!-- This allows us to distinguish between multiple executions of the same test in test reports. -->
<surefire.executionIdentifier>${surefire.module}-${surefire.environment}</surefire.executionIdentifier>
<!-- This should be set from the command line by CI jobs that execute the same tests in multiple environments -->
<surefire.environment>default</surefire.environment>
<!-- This should be set in modules that re-execute tests imported from a dependency (using <dependenciesToScan>)
to differentiate multiple executions of the same tests in multiple modules. -->
<surefire.module>default</surefire.module>
<!-- Formatting -->
<format.skip>false</format.skip>
<goal.impsort-maven-plugin>sort</goal.impsort-maven-plugin>
<goal.formatter-maven-plugin>format</goal.formatter-maven-plugin>
<!-- For Reproducible Builds -->
<project.build.outputTimestamp>2024-08-13T07:06:30Z</project.build.outputTimestamp>
<!-- Sonar options -->
<!--
We want to take into account coverage data from integration tests from other projects as well.
This requires to use a single destination file for ITs, because:
- Integration tests cover code from other modules.
- The Sonar plugin computes coverage when inspecting each module,
and by default only takes into account JaCoCo coverage reports from the inspected module.
Thus it ignores some relevant ITs by default.
- Even when configured, the Sonar plugin only accept an *explicit* list of JaCoCo coverage reports
(no wildcards).
Thus we cannot easily configure the Sonar plugin to inspect JaCoCo coverage reports from other modules,
unless we somehow aggregate all of the coverage data into a single, shared JaCoCo coverage report.
The chosen solution was to make the "reports" module invoke jacoco's "report-aggregate" goal
to create a single aggregate report, and configure sonar to only inspect that file.
Useful resources to understand what is going on (caution, not everything is up-to-date):
- https://docs.sonarqube.org/display/SONAR/Analysis+Parameters
- https://docs.sonarqube.org/display/PLUG/Usage+of+JaCoCo+with+Java+Plugin
- https://www.devcon5.ch/en/blog/2015/05/29/multi-module-integration-test-coverage-sonar-jacoco/
- http://javamemento.blogspot.fr/2016/02/sonar-jacoco-maven-multi-module.html
- https://github.com/SonarSource/sonar-scanning-examples/blob/master/sonarqube-scanner-maven/pom.xml
- https://stackoverflow.com/a/49528226/6692043
- https://www.eclemma.org/jacoco/trunk/doc/report-aggregate-mojo.html
- Not relevant anymore, but we used to merge *.exec files: https://www.eclemma.org/jacoco/trunk/doc/merge-mojo.html
-->
<sonar.coverage.jacoco.xmlReportPaths>${rootProject.directory}/build/reports/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<!--
Exclude build code and integration tests defined in the main source (utils, Showcases, Backend TCK)
from coverage computation.
-->
<sonar.coverage.exclusions>
**/org/hibernate/checkstyle/**,
**/org/hibernate/search/build/enforcer/**,
**/org/hibernate/search/util/impl/test/**,
**/org/hibernate/search/util/impl/integrationtest/**,
**/org/hibernate/search/integrationtest/**
</sonar.coverage.exclusions>
<!--
Exclude build code, unit tests and integration tests from duplication analysis.
-->
<sonar.cpd.exclusions>
**/org/hibernate/checkstyle/**,
**/org/hibernate/search/build/enforcer/**,
**/src/test/java/**,
**/org/hibernate/search/integrationtest/**
</sonar.cpd.exclusions>
</properties>
<build>
<defaultGoal>install</defaultGoal>
<pluginManagement>
<plugins>
<!--
Clean and install plugins will be called from the root,
so we want to make sure that their versions are aligned
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${version.clean.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${version.install.plugin}</version>
</plugin>
<!--
We want to do some custom enforcer rules on the public BOM,
` hence we manage enforcer version in the root pom.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${version.enforcer.plugin}</version>
<executions>
<execution>
<id>enforce-common-rules</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[${jdk.min.version},)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>${maven.min.version}</version>
</requireMavenVersion>
<banDuplicatePomDependencyVersions />
</rules>
</configuration>
</execution>
<execution>
<id>enforce-dependency-convergence</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${enforcer.dependencyconvergence.skip}</skip>
<rules>
<DependencyConvergence />
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- We want to deploy the public BOM, so we manage this plugin in the root pom. -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${version.nexus-staging.plugin}</version>
<configuration>
<skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo>
</configuration>
</plugin>
<!-- We want to disable this plugin as soon as possible, hence we manage it in the root pom. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${version.deploy.plugin}</version>
</plugin>
<!-- Public BOM must be also signed, so we manage this plugin in the root pom. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${version.gpg.plugin}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<skip>${deploy.skip}</skip>
<homedir>${env.RELEASE_GPG_HOMEDIR}</homedir>
<bestPractices>true</bestPractices>
</configuration>
</execution>
</executions>
</plugin>
<!-- Public BOM will be flattened too, so we manage this plugin in the root pom. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${version.flatten-maven-plugin}</version>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<!-- Keep things like url, inceptionYear, authors...
everything that's required by the OSSRH Maven repository -->
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten-pom</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-wrapper-plugin</artifactId>
<version>${version.maven-wrapper-plugin}</version>
<configuration>
<mavenVersion>${maven.min.version}</mavenVersion>
<distributionType>bin</distributionType>
</configuration>
</plugin>
<plugin>
<groupId>com.github.marschall</groupId>
<artifactId>jdeps-maven-plugin</artifactId>
<version>${version.jdeps.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${version.resources.plugin}</version>
<configuration>
<!-- Don't overwrite existing files if the destination files are newer.
Necessary to avoid rebuilding JARs when executing Maven twice,
which has dramatic cascading effects as it leads to recompiling
sources for all depending projects. -->
<overwrite>false</overwrite>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.jar.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.compiler.plugin}</version>
<configuration>
<fork>true</fork>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<failOnWarning>${maven.compiler.failOnWarning}</failOnWarning>
<release>${maven.compiler.release}</release>
<testRelease>${maven.compiler.testRelease}</testRelease>
<encoding>UTF-8</encoding>
<compilerArgs>
<compilerArg>-Xlint:unchecked</compilerArg>
<compilerArg>${logging.processor.skip.generated.annotation.compiler.argument}</compilerArg>
</compilerArgs>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<executable>${java-version.main.compiler}</executable>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<configuration>
<proc>none</proc>
<executable>${java-version.test.compiler}</executable>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>${version.processor.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${version.assembly.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.javadoc.plugin}</version>
<configuration>
<outputDirectory>${javadoc.generate.html.directory}</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${version.source.plugin}</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${version.dependency.plugin}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.exec.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>${version.bundle.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${version.shade.plugin}</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.buildhelper.plugin}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${version.versions.plugin}</version>
</plugin>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>${version.forbiddenapis.plugin}</version>
<configuration>
<!-- if the used Java version is too new, don't fail, just do nothing: -->
<failOnUnsupportedJava>false</failOnUnsupportedJava>
<failOnMissingClasses>false</failOnMissingClasses>
<ignoreSignaturesOfMissingClasses>true</ignoreSignaturesOfMissingClasses>
<suppressAnnotations>
<suppressAnnotation>javax.annotation.processing.Generated</suppressAnnotation>
<suppressAnnotation>org.hibernate.search.util.common.annotation.impl.SuppressForbiddenApis</suppressAnnotation>
<suppressAnnotation>org.hibernate.search.util.impl.test.annotation.SuppressForbiddenApis</suppressAnnotation>
</suppressAnnotations>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${version.checkstyle.plugin}</version>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>${version.moditect.plugin}</version>
</plugin>
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-injection-plugin</artifactId>
<version>${version.maven.injection.plugin}</version>
<executions>
<execution>
<phase>${injection-plugin.phase}</phase>
<goals>
<goal>bytecode</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>${version.jandex.plugin}</version>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Test configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.surefire.plugin}</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<runOrder>alphabetical</runOrder>
<!--
Stack traces for failing tests are useless if trimStackTrace = true (the default).
See https://issues.apache.org/jira/browse/SUREFIRE-1226?focusedCommentId=16187391&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16187391
-->
<trimStackTrace>false</trimStackTrace>
<jvm>${java-version.test.launcher}</jvm>
<argLine>${surefire.jvm.args}</argLine>
<!--
Better test names in test reports.
See https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html#Surefire_Extensions_and_Reports_Configuration_for_.40DisplayName
Don't ask me why this isn't the default
-->
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
<usePhrasedFileName>true</usePhrasedFileName>
<usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
<usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
</statelessTestsetReporter>
<consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
<usePhrasedFileName>true</usePhrasedFileName>
</consoleOutputReporter>
<statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
<usePhrasedFileName>true</usePhrasedFileName>
<usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
<usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
</statelessTestsetInfoReporter>
<reportNameSuffix>${surefire.executionIdentifier}</reportNameSuffix>
</configuration>
<dependencies>
<!--
maven-surefire-plugin and maven-failsafe-plugin use an older version of ASM
that cannot handle Java 15+ bytecode.
Let's upgrade that dependency and hope for the best;
if it doesn't work, the build is very likely to fail and we'll know about it.
-->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${version.surefire.plugin.java-version.asm}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${version.surefire.plugin}</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<runOrder>alphabetical</runOrder>
<!--
Stack traces for failing tests are useless if trimStackTrace = true (the default).
See https://issues.apache.org/jira/browse/SUREFIRE-1226?focusedCommentId=16187391&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16187391
-->
<trimStackTrace>false</trimStackTrace>
<jvm>${java-version.test.launcher}</jvm>
<argLine>${failsafe.jvm.args}</argLine>
<!-- Catch configuration problems that could cause the plugin
to not detect any tests.
For example, in the past, we've had:
- JUnit 5 Jupiter creeping up our classpath through transitive dependencies,
causing the maven-failsafe-plugin to simply switch to JUnit 5 mode and
ignore all JUnit 4 tests.
- Misconfigured "source copy" artifacts (e.g. jakarta) that ended up not copying tests
from the original module at all.
-->
<failIfNoTests>true</failIfNoTests>
<!--
Better test names in test reports.
See https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html#Surefire_Extensions_and_Reports_Configuration_for_.40DisplayName
Don't ask me why this isn't the default
-->
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
<usePhrasedFileName>true</usePhrasedFileName>
<usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
<usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
</statelessTestsetReporter>
<consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
<usePhrasedFileName>true</usePhrasedFileName>
</consoleOutputReporter>
<statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
<usePhrasedFileName>true</usePhrasedFileName>
<usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
<usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
</statelessTestsetInfoReporter>
<reportNameSuffix>${surefire.executionIdentifier}</reportNameSuffix>
</configuration>
<dependencies>
<!--
maven-surefire-plugin and maven-failsafe-plugin use an older version of ASM
that cannot handle Java 15+ bytecode.
Let's upgrade that dependency and hope for the best;
if it doesn't work, the build is very likely to fail and we'll know about it.
-->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${version.surefire.plugin.java-version.asm}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco.plugin}</version>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${version.asciidoctor.plugin}</version>
<configuration>
<!-- Enabled to validate internal links -->
<enableVerbose>true</enableVerbose>
<!-- Abort the build if something seems wrong -->
<logHandler>
<failIf>
<severity>WARN</severity>
</failIf>
</logHandler>
</configuration>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${version.org.asciidoctor.asciidoctorj}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${version.org.asciidoctor.asciidoctorj-pdf}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${version.sonar.plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scripting-plugin</artifactId>
<version>${version.scripting.plugin}</version>
<executions>
<execution>
<id>list-container-images</id>
<configuration>
<engineName>groovy</engineName>
<!--
Note that expressions ('${...}') are evaluated by Maven before the script is
interpreted by the Groovy interpreter.
That's the only way to access profile-defined properties,
since accessing project.properties within the script will ignore profiles.
-->
<script><![CDATA[
def images = []
def isTrueString = { string -> string && Boolean.parseBoolean( string ) }
def isNotBlankString = { string -> string?.trim() }
def parseImage = { file ->
{
def dockerFileContent = new File(file).text
if ((match = dockerFileContent =~ /FROM (.+)/)) {
return match.group(1).trim()
}
return ''
}
}
images += parseImage( './build/container/ryuk.Dockerfile' )
if ( isNotBlankString( '${test.database.run.kind}' ) && '${test.database.run.kind}' != 'h2') {
images += parseImage( './build/container/database/${test.database.run.kind}.Dockerfile' )
}
if ( isTrueString( '${test.elasticsearch.run.image.pull}' ) ) {
def fromFile = parseImage( './build/container/search-backend/${test.elasticsearch.distribution}.Dockerfile')
def suppliedVersion = '${test.elasticsearch.version}'
if (isNotBlankString(suppliedVersion)) {
images += fromFile.substring(0, fromFile.lastIndexOf(':')+1) + suppliedVersion
} else {
images += fromFile
}
}
// Exclude images from non-dockerhub repositories
new File('${containerImagesListFile}').append( images.join('\n') + '\n' )
]]></script>
</configuration>
</execution>
</executions>
<dependencies>
<!-- ScriptEngines -->
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-jsr223</artifactId>
<version>${version.org.apache.groovy.groovy-jsr223}</version> <!-- look for latest -->
</dependency>
</dependencies>
</plugin>
<!--
Code formatting configuration: