-
Notifications
You must be signed in to change notification settings - Fork 4
/
pom.xml
2185 lines (2057 loc) · 69.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
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"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.scijava</groupId>
<artifactId>pom-scijava-base</artifactId>
<version>20.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SciJava Base POM</name>
<description>This POM is a base which SciJava-based projects can extend to inherit helpful build configuration. It ensures that projects all use a compatible build environment, including versions of Maven plugins and Java itself. It does _not_ provide any dependency version management; see org.scijava:pom-scijava for that.</description>
<url>https://scijava.org/</url>
<inceptionYear>2016</inceptionYear>
<organization>
<name>SciJava</name>
<url>https://scijava.org/</url>
</organization>
<licenses>
<license>
<name>Unlicense</name>
<url>https://unlicense.org/</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ctrueden</id>
<name>Curtis Rueden</name>
<url>https://imagej.net/people/ctrueden</url>
<roles>
<role>founder</role>
<role>lead</role>
<role>developer</role>
<role>debugger</role>
<role>reviewer</role>
<role>support</role>
<role>maintainer</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>Mark Hiner</name>
<url>https://imagej.net/people/hinerm</url>
<properties><id>hinerm</id></properties>
</contributor>
<contributor>
<name>Johannes Schindelin</name>
<url>https://imagej.net/people/dscho</url>
<properties><id>dscho</id></properties>
</contributor>
<contributor>
<name>Barry DeZonia</name>
<url>https://imagej.net/people/bdezonia</url>
<properties><id>bdezonia</id></properties>
</contributor>
<contributor>
<name>Stefan Helfrich</name>
<url>https://imagej.net/people/stelfrich</url>
<properties><id>stelfrich</id></properties>
</contributor>
<contributor>
<name>Jean-Yves Tinevez</name>
<url>https://imagej.net/people/tinevez</url>
<properties><id>tinevez</id></properties>
</contributor>
<contributor>
<name>Lorenzo Scianatico</name>
<url>https://imagej.net/people/LoreScianatico</url>
<properties><id>LoreScianatico</id></properties>
</contributor>
<contributor>
<name>Jan Eglinger</name>
<url>https://imagej.net/people/imagejan</url>
<properties><id>imagejan</id></properties>
</contributor>
<contributor>
<name>Ulrik Günther</name>
<url>https://imagej.net/people/skalarproduktraum</url>
<properties><id>skalarproduktraum</id></properties>
</contributor>
<contributor>
<name>Igor Pisarev</name>
</contributor>
<contributor>
<name>Ed Savailonei</name>
</contributor>
</contributors>
<mailingLists>
<mailingList>
<name>SciJava</name>
<subscribe>https://groups.google.com/group/scijava</subscribe>
<unsubscribe>https://groups.google.com/group/scijava</unsubscribe>
<post>[email protected]</post>
<archive>https://groups.google.com/group/scijava</archive>
</mailingList>
</mailingLists>
<scm>
<connection>scm:git:https://github.com/scijava/pom-scijava-base</connection>
<developerConnection>scm:git:[email protected]:scijava/pom-scijava-base</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/scijava/pom-scijava-base</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/scijava/pom-scijava-base/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/scijava/pom-scijava-base/actions</url>
</ciManagement>
<properties>
<!-- Project configuration -->
<!--
The main class of the project. Used in several ways:
* Set as the Main-Class attribute of the JAR manifest.
* dist profile: main class for the JavaFX launchers.
* exec profile: main class to execute.
* jdb profile: main class when launching jdb.
-->
<main-class />
<!-- Package attribute of the JAR artifact. -->
<package-name>${package-guess}</package-name>
<!-- Premain-Class attribute of the JAR artifact. -->
<premain-class />
<!--
Automatic-Module-Name attribute of the JAR artifact, to be used for
Java 9+. Required if the auto-generated name would not be acceptable
(would include reserved words etc.). Set to package name by default.
See: https://stackoverflow.com/a/46501811/478765
-->
<automatic-module-name>${package-name}</automatic-module-name>
<!-- Classifier of the artifact generated by the uberjar profile. -->
<uberjar-classifier>all</uberjar-classifier>
<!--
The License which license-maven-plugin will use to populate.
See: license:update-file-header, license:update-project-license
-->
<license.licenseName>N/A</license.licenseName>
<!--
Files excluded from license header updates.
By default, all script templates are excluded.
-->
<scijava.excludedLicensePatterns>**/script_templates/**</scijava.excludedLicensePatterns>
<!--
NB: The scijava.excludedLicensePatterns property above makes it easier to
append to the list of excluded license patterns in downstream projects.
Override the license.excludes property in your POM with something like this:
<license.excludes>${scijava.excludedLicensePatterns},**/*.json,**/*.xml</license.excludes>
-->
<license.excludes>${scijava.excludedLicensePatterns}</license.excludes>
<!-- Project blurb to use in license headers atop each file. -->
<license.projectName>${project.description}</license.projectName>
<!-- Copyright owners to use in license headers atop each file. -->
<license.copyrightOwners>N/A</license.copyrightOwners>
<!-- Compiler configuration. -->
<scijava.jvm.version>8</scijava.jvm.version>
<scijava.jvm.test.version>${scijava.jvm.version}</scijava.jvm.test.version>
<!-- NB: 1.8.0_101 is needed for SciJava Maven repository HTTPS support. -->
<scijava.jvm.build.version>[1.8.0-101,)</scijava.jvm.build.version>
<maven.compiler.source>${scijava.jvm.version}</maven.compiler.source>
<maven.compiler.target>${scijava.jvm.version}</maven.compiler.target>
<maven.compiler.testSource>${scijava.jvm.test.version}</maven.compiler.testSource>
<maven.compiler.testTarget>${scijava.jvm.test.version}</maven.compiler.testTarget>
<!--
Workaround for a bug in maven-compiler-plugin.
See https://issues.apache.org/jira/browse/MCOMPILER-209
-->
<maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
<!-- Extra maven-surefire-plugin args. -->
<scijava.surefire.args />
<!-- Minimum required Maven version to build the project. -->
<scijava.mvn.version>3.6.3</scijava.mvn.version>
<!-- List of groupIds for which build reproducibility is enforced. -->
<scijava.groupIds>org.scijava,net.imagej,net.imglib2,io.scif,sc.fiji</scijava.groupIds>
<!-- Classes the enforcer allows to be duplicated on the classpath. -->
<allowedDuplicateClasses />
<!--
List of valid developer and contributor roles.
See: https://imagej.net/Team
-->
<scijava.team.roles>founder,lead,developer,debugger,reviewer,support,maintainer</scijava.team.roles>
<!--
Links to javadoc APIs, used by the maven-javadoc-plugin.
Change these if you need to link against different API versions.
E.g., for Java 11 projects, use:
<scijava.javadoc.url.java>https://javadoc.scijava.org/Java11/</scijava.javadoc.url.java>
<scijava.javadoc.url.javafx>https://javadoc.scijava.org/JavaFX11/</scijava.javadoc.url.javafx>
-->
<scijava.javadoc.url.java>https://javadoc.scijava.org/Java8/</scijava.javadoc.url.java>
<scijava.javadoc.url.javafx>https://javadoc.scijava.org/JavaFX8/</scijava.javadoc.url.javafx>
<!-- Command to use when invoking java via "mvn -Pexec". -->
<scijava.exec.java>java</scijava.exec.java>
<!--
The coding-style property defines a coding style to be used in your project.
Supported values as of this writing are scijava and imglib2.
-->
<scijava.coding-style>scijava</scijava.coding-style>
<!--
Classifier name for referencing platform-specific artifacts.
By default, this matches the scijava/native-lib-loader naming scheme.
But properties are also defined for other popular naming schemes.
-->
<scijava.platform.arch>${os.arch}</scijava.platform.arch>
<scijava.platform.arch.javacpp>${os.arch}</scijava.platform.arch.javacpp>
<scijava.platform.arch.jogamp>${os.arch}</scijava.platform.arch.jogamp>
<scijava.platform.arch.lwjgl>-${os.arch}</scijava.platform.arch.lwjgl>
<scijava.natives.classifier>natives-${scijava.platform.family.medium}_${scijava.platform.arch}</scijava.natives.classifier>
<scijava.natives.classifier.javacpp>${scijava.platform.family.longest}-${scijava.platform.arch.javacpp}</scijava.natives.classifier.javacpp>
<scijava.natives.classifier.jogamp>natives-${scijava.platform.family.longest}-${scijava.platform.arch.jogamp}</scijava.natives.classifier.jogamp>
<scijava.natives.classifier.lwjgl>natives-${scijava.platform.family.long}${scijava.platform.arch.lwjgl}</scijava.natives.classifier.lwjgl>
<!-- Additional configuration -->
<!-- NB: Avoid platform encoding warning when copying resources. -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- NB: Specify formatting of the maven.build.timestamp property. -->
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
<!-- NB: Deploy to OSS Sonatype repository by default when releasing. -->
<releaseProfiles>sonatype-oss-release</releaseProfiles>
<sonatype-oss-repository>https://s01.oss.sonatype.org</sonatype-oss-repository>
<!-- Let "mvn exec:java" launch the project's main class. -->
<exec.mainClass>${main-class}</exec.mainClass>
<!-- Plugin versions -->
<!-- Core Maven plugins -->
<maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version>
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
<maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
<!--
NB: Versions of the maven-compiler-plugin newer than 3.8.1 cause very
slow compilation preparation (30-60 seconds or longer) for some
SciJava components, during parsing of module-info.java files.
-->
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-dependency-plugin.version>3.8.0</maven-dependency-plugin.version>
<maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>3.5.1</maven-failsafe-plugin.version>
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
<maven-help-plugin.version>3.5.0</maven-help-plugin.version>
<maven-install-plugin.version>3.1.3</maven-install-plugin.version>
<maven-invoker-plugin.version>3.8.0</maven-invoker-plugin.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-javadoc-plugin.version>3.10.1</maven-javadoc-plugin.version>
<maven-plugin-plugin.version>3.11.0</maven-plugin-plugin.version>
<maven-project-info-reports-plugin.version>3.7.0</maven-project-info-reports-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
<maven-site-plugin.version>3.12.1</maven-site-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-surefire-plugin.version>3.5.1</maven-surefire-plugin.version>
<!-- Mojohaus Maven plugins -->
<build-helper-maven-plugin.version>3.6.0</build-helper-maven-plugin.version>
<buildnumber-maven-plugin.version>3.2.1</buildnumber-maven-plugin.version>
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
<exec-maven-plugin.version>3.4.1</exec-maven-plugin.version>
<groovy-maven-plugin.version>1.5</groovy-maven-plugin.version>
<license-maven-plugin.version>2.4.0</license-maven-plugin.version>
<tidy-maven-plugin.version>1.3.0</tidy-maven-plugin.version>
<versions-maven-plugin.version>2.17.1</versions-maven-plugin.version>
<!-- SciJava Maven plugins -->
<scijava-maven-plugin.version>3.0.0</scijava-maven-plugin.version>
<!-- Other Maven plugins -->
<jshell-maven-plugin.version>1.4</jshell-maven-plugin.version> <!-- com.github.johnpoth -->
<impsort-maven-plugin.version>1.12.0</impsort-maven-plugin.version> <!-- net.revelc.code -->
<formatter-maven-plugin.version>2.24.1</formatter-maven-plugin.version> <!-- net.revelc.code.formatter -->
<maven-graph-plugin.version>1.45</maven-graph-plugin.version> <!-- org.fusesource.mvnplugins -->
<exists-maven-plugin.version>0.12.0</exists-maven-plugin.version> <!-- org.honton.chas -->
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> <!-- org.jacoco -->
<dokka-maven-plugin.version>1.9.10</dokka-maven-plugin.version> <!-- org.jetbrains.jetbrains -->
<revapi-maven-plugin.version>0.15.0</revapi-maven-plugin.version> <!-- org.revapi -->
<sonar-maven-plugin.version>4.0.0.4121</sonar-maven-plugin.version> <!-- org.sonarsource.scanner.maven -->
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> <!-- org.sonatype.plugins -->
<!-- Plugin dependencies -->
<extra-enforcer-rules.version>1.9.0</extra-enforcer-rules.version>
<kotlin.version>1.9.22</kotlin.version>
<revapi-java.version>0.28.1</revapi-java.version>
<scijava-coding-style.version>2.1.1</scijava-coding-style.version>
<velocity.version>1.7</velocity.version>
<!-- Build extensions -->
<wagon-webdav-jackrabbit.version>1.0</wagon-webdav-jackrabbit.version>
</properties>
<build>
<!-- It is nice for "mvn" with no arguments to do something reasonable. -->
<defaultGoal>install</defaultGoal>
<pluginManagement>
<plugins>
<!-- Core Maven plugins -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>${extra-enforcer-rules.version}</version>
</dependency>
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-maven-plugin</artifactId>
<version>${scijava-maven-plugin.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<useAgent>true</useAgent>
</configuration>
</plugin>
<plugin>
<artifactId>maven-help-plugin</artifactId>
<version>${maven-help-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<!-- Always add classpath to JAR manifests. -->
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<mainClass>${main-class}</mainClass>
<packageName>${package-name}</packageName>
</manifest>
<manifestEntries>
<Premain-Class>${premain-class}</Premain-Class>
<!-- Add SCM revision from buildnumber plugin, if available. -->
<Implementation-Build>${buildNumber}</Implementation-Build>
<!-- Add a formatted timestamp for the build. -->
<Implementation-Date>${maven.build.timestamp}</Implementation-Date>
<!-- Set the Java 9 automatic module name. -->
<Automatic-Module-Name>${automatic-module-name}</Automatic-Module-Name>
</manifestEntries>
</archive>
<skipIfEmpty>true</skipIfEmpty>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<maxmemory>1024m</maxmemory>
<links>
<link>${scijava.javadoc.url.java}</link>
</links>
<tags>
<tag>
<name>implNote</name>
<placement>a</placement>
<head>Implementation Note:</head>
</tag>
</tags>
</configuration>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven-plugin-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<!-- Build source artifact in addition to main artifact. -->
<executions>
<!--
NB: Attach sources with jar goal, not jar-no-fork, to avoid a bug
where the -sources JAR gets generated and deployed twice. See:
https://issues.apache.org/jira/browse/MNG-5939
-->
<execution>
<id>attach-sources</id>
<phase>none</phase>
</execution>
<execution>
<id>attach-sources-jar</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<!--
Make sure that:
A) unit tests run with sufficient RAM allocated;
B) unit tests do not pop a Java dock icon on OS X;
C) additional args can be given via scijava.surefire.args property;
Sometimes, one needs to pass JVM options to the JVM running the
unit tests, such as -verbose:class or -Djava.awt.headless=true.
Unfortunately, maven-surefire does not expose a command-line
interface to do so, therefore let's simulate it by using our
own property 'scijava.surefire.args' to specify those options.
-->
<configuration>
<argLine>@{argLine} -Xms512m -Xmx512m -Dapple.awt.UIElement=true ${scijava.surefire.args}</argLine>
</configuration>
</plugin>
<!-- Codehaus Maven plugins -->
<!--
Build Helper Maven plugin -
https://www.mojohaus.org/build-helper-maven-plugin/
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<!--
Create a version string which conforms to Java packaging requirements.
https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp89936
In particular, the standard Java packaging tool will fail unless the
version string conforms to Java packaging rules. Further reading:
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/packaging.html#
-->
<execution>
<id>sanitize-version</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>sanitizedVersion</name>
<value>${project.version}</value>
<regex>^([0-9]+)\.([0-9]+)\.([0-9]+).*$</regex>
<replacement>$1.$2.$3</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
<!--
Make a guess at a reasonable & legal package prefix. This value
is used for package-name and automatic-module-name by default.
-->
<execution>
<id>guess-package</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>package-guess</name>
<value>${project.groupId}.${project.artifactId}</value>
<regex>[^a-z0-9_.]+</regex>
<replacement>_</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<!--
Build Number Maven plugin -
https://www.mojohaus.org/buildnumber-maven-plugin/
This plugin embeds a build number in the JAR manifest.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>${buildnumber-maven-plugin.version}</version>
<!-- Record SCM revision in manifest. -->
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
<revisionOnScmFailure>UNKNOWN</revisionOnScmFailure>
</configuration>
<dependencies>
<!--
HACK: Override pom-scijava version management of jna
to match what buildnumber-maven-plugin 3.0.0 normally uses.
Otherwise, downstream dependency management somehow impacts
the plugin's dependencies, resulting in build failure:
[ERROR] Failed to execute goal org.codehaus.mojo:
buildnumber-maven-plugin:3.0.0:create (default) on project
mega-melt: Execution default of goal org.codehaus.mojo:
buildnumber-maven-plugin:3.0.0:create failed:
Plugin org.codehaus.mojo:buildnumber-maven-plugin:3.0.0 or
one of its dependencies could not be resolved: Could not
find artifact net.java.dev.jna:platform:jar:5.12.1 in central
(https://repo.maven.apache.org/maven2)
With this hack in place, we instead receive only a warning:
[WARNING] The POM for net.java.dev.jna:platform:jar:5.12.1
is missing, no dependency information available
This warning happens also with buildnumber-maven-plugin 1.4,
as well as the latest master branch (031236bfabc1b170d958).
-->
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>platform</artifactId>
<version>3.5.2</version>
</dependency>
</dependencies>
</plugin>
<!--
Cobertura Maven plugin -
https://www.mojohaus.org/cobertura-maven-plugin/
This plugin measures code coverage of tests.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura-maven-plugin.version}</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
<!--
Exec Maven plugin -
https://www.mojohaus.org/exec-maven-plugin/
This plugin launches a Java class using Maven.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
</plugin>
<!--
License Maven plugin -
https://www.mojohaus.org/license-maven-plugin/
This plugin manages project licenses and source file headers.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven-plugin.version}</version>
<configuration>
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
<canUpdateDescription>true</canUpdateDescription>
<canUpdateCopyright>true</canUpdateCopyright>
<extraExtensions>
<bsh>java</bsh>
<config>properties</config>
<ijm>java</ijm>
</extraExtensions>
</configuration>
</plugin>
<!--
Tidy Maven plugin -
https://www.mojohaus.org/tidy-maven-plugin/
Fix the ordering of POM elements using "mvn tidy:pom".
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tidy-maven-plugin</artifactId>
<version>${tidy-maven-plugin.version}</version>
</plugin>
<!--
Versions Maven plugin -
https://www.mojohaus.org/versions-maven-plugin/
Check for new plugin versions using
"mvn versions:display-plugin-updates"
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
</plugin>
<!-- SciJava Maven plugins -->
<!-- SciJava Maven plugin - https://github.com/scijava/scijava-maven-plugin -->
<plugin>
<groupId>org.scijava</groupId>
<artifactId>scijava-maven-plugin</artifactId>
<version>${scijava-maven-plugin.version}</version>
<executions>
<execution>
<id>set-rootdir</id>
<phase>validate</phase>
<goals>
<goal>set-rootdir</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Other Maven plugins -->
<!-- ImpSort Maven Plugin - https://github.com/revelc/impsort-maven-plugin -->
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<version>${impsort-maven-plugin.version}</version>
<configuration>
<groups>java.,javax.,com.,net.,org.</groups>
<staticGroups>java,*</staticGroups>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- Formatter Maven Plugin - https://github.com/revelc/formatter-maven-plugin -->
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>${formatter-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-coding-style</artifactId>
<version>${scijava-coding-style.version}</version>
</dependency>
</dependencies>
<configuration>
<configFile>eclipse-formatter-settings/${scijava.coding-style}-coding-style.xml</configFile>
</configuration>
</plugin>
<!--
Maven Graph Plugin -
Generate a dependency graph using "mvn graph:reactor"
-->
<plugin>
<groupId>org.fusesource.mvnplugins</groupId>
<artifactId>maven-graph-plugin</artifactId>
<version>${maven-graph-plugin.version}</version>
<configuration>
<hideScopes>provided,runtime,system,test</hideScopes>
<hideTransitive>true</hideTransitive>
<label>Dependency Graph for ${project.name}</label>
<target>${project.build.directory}/dependency-graph.dot</target>
</configuration>
</plugin>
<!-- Exists Maven Plugin - https://github.com/chonton/exists-maven-plugin -->
<plugin>
<groupId>org.honton.chas</groupId>
<artifactId>exists-maven-plugin</artifactId>
<version>${exists-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>remote</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
JaCoCo Maven plugin -
https://www.jacoco.org/jacoco/trunk/doc/maven.html
This plugin measures code coverage of tests.
-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Revapi Maven Plugin - https://revapi.org/modules/revapi-maven-plugin -->
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>${revapi-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.revapi</groupId>
<artifactId>revapi-java</artifactId>
<version>${revapi-java.version}</version>
</dependency>
</dependencies>
</plugin>
<!--
SonarScanner Maven plugin -
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
SonarQube scanner for java projects.
-->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Core Maven plugins -->
<!-- Check desired rules during maven lifecycle. -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-rules</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!--
Standard Rules
https://maven.apache.org/enforcer/enforcer-rules/
-->
<requireMavenVersion>
<version>${scijava.mvn.version}</version>
</requireMavenVersion>
<requirePluginVersions>
<message>Plugins need to be versioned!</message>
</requirePluginVersions>
<requireJavaVersion>
<version>${scijava.jvm.build.version}</version>
</requireJavaVersion>
<!--
Extra Enforcer Rules
org.codehaus.mojo:extra-enforcer-rules
https://www.mojohaus.org/extra-enforcer-rules/
-->
<!--
Ensure no two dependencies ship the same class.
Otherwise, much havoc may be wreaked at runtime.
-->
<banDuplicateClasses>
<message>No Duplicate Classes Allowed!
- For duplicate transitive dependencies, add dependency exclusions.
- For duplications between direct dependencies, resolve or add
ignored classes to this rule's configuration.</message>
<findAllDuplicates>true</findAllDuplicates>
<ignoreClasses>${allowedDuplicateClasses}</ignoreClasses>
</banDuplicateClasses>
<!--
Require developers and contributors to use SciJava team roles.
See: https://imagej.net/Team
-->
<requireDeveloperRoles>
<validRoles>${scijava.team.roles}</validRoles>
</requireDeveloperRoles>
<requireContributorRoles>
<validRoles>${scijava.team.roles}</validRoles>
</requireContributorRoles>
<!--
Fail if a dependency requires a too-new version of Java.
-->
<enforceBytecodeVersion>
<maxJdkVersion>${scijava.jvm.version}</maxJdkVersion>
<excludes>
<exclude>com.headius:invokebinder</exclude>
<exclude>com.sun:tools</exclude>
</excludes>
<ignoreClasses>
<ignoreClass>module-info</ignoreClass>
</ignoreClasses>
<ignoredScopes>
<ignoredScope>test</ignoredScope>
</ignoredScopes>
</enforceBytecodeVersion>
<!--
SciJava Maven Plugin
org.scijava:scijava-maven-plugin
https://github.com/scijava/scijava-maven-plugin
-->
<!-- Require inheriting POMs to populate key elements. -->
<requireElements implementation="org.scijava.maven.plugin.enforcer.RequireElements">
<elements>
<element>name</element>
<element>description</element>
<element>url</element>
<element>inceptionYear</element>
<element>organization</element>
<element>licenses</element>
<element>developers</element>
<element>contributors</element>
<element>mailingLists</element>
<element>scm</element>
<element>issueManagement</element>
<element>ciManagement</element>
<element>properties//license.licenseName</element>
<element>properties//license.copyrightOwners</element>
</elements>
</requireElements>
<!--
Require builds to be reproducible.
This means no snapshot dependencies!
-->
<requireReproducibleBuilds implementation="org.scijava.maven.plugin.enforcer.RequireReproducibleBuilds">
<groupIds>${scijava.groupIds}</groupIds>
</requireReproducibleBuilds>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<!-- Create -sources.jar when building. -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<!-- Codehaus Maven plugins -->
<!-- Generate a package-friendly version property. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<!-- Add Implementation-Build entry to JAR manifest. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
</plugin>
<!-- SciJava Maven plugins -->
<!--
Enable 'scijava:' goals and copying the artifacts
and dependencies by setting the 'scijava.app.directory'
property to a valid directory.
-->
<plugin>