-
Notifications
You must be signed in to change notification settings - Fork 2k
/
pom.xml
1766 lines (1649 loc) · 73.9 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
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. -->
<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>com.azure</groupId>
<artifactId>azure-client-sdk-parent</artifactId>
<packaging>pom</packaging>
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
<name>Microsoft Azure SDK for Java - Client Libraries</name>
<description>Parent POM for Microsoft Azure SDK for Java</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<organization>
<name>Microsoft Corporation</name>
<url>http://microsoft.com</url>
</organization>
<parent>
<groupId>com.azure</groupId>
<artifactId>azure-sdk-parent</artifactId>
<version>1.6.0</version> <!-- {x-version-update;com.azure:azure-sdk-parent;current} -->
<relativePath>../azure-sdk-parent/pom.xml</relativePath>
</parent>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft Corporation</name>
</developer>
</developers>
<!-- Repositories definitions -->
<repositories>
<repository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<uniqueVersion>true</uniqueVersion>
<layout>default</layout>
</snapshotRepository>
<site>
<id>azure-java-build-docs</id>
<url>${site.url}/site/</url>
</site>
</distributionManagement>
<issueManagement>
<system>GitHub</system>
<url>${issues.url}</url>
</issueManagement>
<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:https://github.com/Azure/azure-sdk-for-java.git</connection>
<developerConnection/>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<packageOutputDirectory>${project.build.directory}</packageOutputDirectory>
<projectTestSourceDirectory>${project.build.testSourceDirectory}</projectTestSourceDirectory>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
<testMode>playback</testMode>
<playbackServerPort>11080</playbackServerPort>
<alternativePlaybackServerPort>11081</alternativePlaybackServerPort>
<site.url>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java</site.url>
<issues.url>https://github.com/Azure/azure-sdk-for-java/issues</issues.url>
<build.context>azure-client-sdk-parent</build.context>
<jacoco.min.linecoverage>0.40</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.30</jacoco.min.branchcoverage>
<jacoco.skip>false</jacoco.skip>
<revapi.skip>false</revapi.skip>
<!-- This property determines the relative path from a pom.xml to the eng/ folder. -->
<relative.path.to.eng.folder>../../..</relative.path.to.eng.folder>
<!-- This property determines the max heap size of the Surefire JVM. By default 4GB, or 4096MB, is used. -->
<surefireXmx>4096m</surefireXmx>
<!-- This property configures the max heap size of the Surefire JVM. -->
<surefireJvmXmx>-Xmx${surefireXmx}</surefireJvmXmx>
<!-- This property configures creating a heap dump if the Surefire JVM fails with an OutOfMemoryError. -->
<heapDumpOnOom>
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=${packageOutputDirectory}${file.separator}${project.artifactId}-oom.hprof
<!-- Heap dump is produced before crashing. This flag makes sure JVM exists promptly after disaster instead of waiting for time out -->
-XX:+CrashOnOutOfMemoryError
</heapDumpOnOom>
<jacocoUnitTestAgent></jacocoUnitTestAgent>
<!-- Reserved for general Surefire JVM arguments that affect all SDKs. -->
<defaultSurefireArgLine>
@{jacocoUnitTestAgent}
${surefireJvmXmx}
${heapDumpOnOom}
</defaultSurefireArgLine>
<!-- Reserved for SDK specific JVM arguments to export, open, or read modules in testing. -->
<javaModulesSurefireArgLine>
</javaModulesSurefireArgLine>
<!-- Reserved for either general or SDK specific JVM arguments that are optional. -->
<additionalSurefireArgLine>
</additionalSurefireArgLine>
<jacocoIntegrationTestAgent></jacocoIntegrationTestAgent>
<!-- Reserved for general Failsafe JVM arguments that affect all SDKs. -->
<defaultFailsafeArgLine>
@{jacocoIntegrationTestAgent}
${surefireJvmXmx}
${heapDumpOnOom}
</defaultFailsafeArgLine>
<!-- Reserved for SDK specific JVM arguments to export, open, or read modules in integration testing. -->
<!-- Defaults to the same value as Surefire. -->
<javaModulesFailsafeArgLine>
${javaModulesSurefireArgLine}
</javaModulesFailsafeArgLine>
<!-- Reserved for either general or SDK specific JVM arguments that are optional. -->
<!-- Defaults to the same value as Surefire. -->
<additionalFailsafeArgLine>
${additionalSurefireArgLine}
</additionalFailsafeArgLine>
<!-- This property configures whether PLAYBACK tests are ran in parallel. Default is concurrent. -->
<!-- Choices are same_thread (no parallelization) and concurrent (parallelization). -->
<parallelizeTests>concurrent</parallelizeTests>
<!-- This property configures whether LIVE or RECORD tests are ran in parallel. Default is same_thread. -->
<!-- Choices are same_thread (no parallelization) and concurrent (parallelization). -->
<parallelizeLiveTests>same_thread</parallelizeLiveTests>
<!-- This property configures whether the codesnippet-maven-plugin should be used. -->
<codesnippet.skip>false</codesnippet.skip>
<!-- The following properties configure the maven-checkstyle-plugin. -->
<!-- This property configures whether the maven-checkstyle-plugin should be used. -->
<checkstyle.skip>false</checkstyle.skip>
<!-- These properties configures whether maven-checkstyle-plugin should fail on errors. -->
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
<checkstyle.failsOnError>true</checkstyle.failsOnError>
<!-- This property configures a regex of source files to exclude from Checkstyle. -->
<checkstyle.excludes></checkstyle.excludes>
<!-- This property configures whether test source files are included in Checkstyle. Default is true. -->
<checkstyle.includeTestSourceDirectory>true</checkstyle.includeTestSourceDirectory>
<!-- This property configures the location of the checkstyle-suppressions.xml file. -->
<checkstyle.suppressionsLocation>${project.basedir}/${relative.path.to.eng.folder}/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressionsLocation>
<!-- The following properties configure the spotbugs-maven-plugin. -->
<!-- This property configures whether the spotbugs-maven-plugin should be used. -->
<spotbugs.skip>true</spotbugs.skip>
<!-- This property configures whether Spotbugs analysis is ran on samples and tests. Default is false. -->
<spotbugs.includeTests>false</spotbugs.includeTests>
<!-- This property configures whether the spotbugs-maven-plugin should fail on errors. -->
<spotbugs.failOnError>true</spotbugs.failOnError>
<!-- This property configures where the Spotbugs exclusion file can be found. -->
<spotbugs.excludeFilterFile>spotbugs/spotbugs-exclude.xml</spotbugs.excludeFilterFile>
<graalvm.disable>true</graalvm.disable>
<nativeImage.buildArgs></nativeImage.buildArgs>
<!-- This property configures whether the revapi-maven-plugin should fail on errors. -->
<revapi.failBuildOnProblemsFound>true</revapi.failBuildOnProblemsFound>
<!-- This property configures whether doclinting is performed when generating Javadocs. -->
<doclint>all</doclint>
<!-- This property configures whether doclinting includes warning and erroring for missing tags and descriptions. -->
<!-- By default, missing tags and descriptions are included as issues. -->
<!-- If needed, temporarily, override this property in a child POM with a value of '-' to exclude this validation. -->
<!-- Even with this validation excluded other linting tooling, such as Checkstyle, may still raise errors. -->
<doclintMissingInclusion></doclintMissingInclusion>
<!-- The following properties configure compile skipping. -->
<!-- While maven-compiler-plugin has properties for skipping source and test compile other plugins -->
<!-- key in on the properties as well. These properties ensure that skipping compiles doesn't result -->
<!-- in unexpected plugin changes outside of maven-compiler-plugin. -->
<skipCompile>false</skipCompile>
<skipTestCompile>false</skipTestCompile>
<compiler.proc>none</compiler.proc>
<!-- Set this to an empty value to enable the compiler to fail on usage of deprecated APIs. -->
<compiler.failondeprecatedstatus>-</compiler.failondeprecatedstatus>
<!-- Used by Java 18 and later to allow the security manager to be set while testing and linting. -->
<java.security.manager.configuration></java.security.manager.configuration>
<!-- JavaDoc properties -->
<!-- Azure core source path is included here and it's packages are excluded as almost all client libraries
need inherited javadocs from core and explicitly adding this exclusion in each library is not maintainable. So,
by default, we exclude core packages in the parent pom and in core packages override this exclusion -->
<javadoc.excludePackageNames>com.azure.json,com.azure.xml,com.azure.core.*</javadoc.excludePackageNames>
<javadoc.sourcepath></javadoc.sourcepath>
<!-- Used to skip maven-shade-plugin. This should only be used as part of CI builds to allow for parallel builds in non-shipping pipelines. -->
<!-- In the future this should be removed once maven-shade-plugin no longer as a possibility of deadlocking in parallel builds. -->
<!-- See https://issues.apache.org/jira/projects/MSHADE/issues/MSHADE-384 -->
<shade.skip>false</shade.skip>
<!-- Disables Spotless linting. -->
<!-- Spotless is disabled by default until all libraries are manually updated, after that this setting will be removed. -->
<spotless.skip>false</spotless.skip>
<!-- Skips Spotless applying code style formatting. -->
<spotless.apply.skip>false</spotless.apply.skip>
<!-- Skips Spotless running code style formatting verification. -->
<spotless.check.skip>false</spotless.check.skip>
<!-- Skips animal-sniffer-maven-plugin. -->
<animal.sniffer.skip>true</animal.sniffer.skip>
<animal.sniffer.ignores></animal.sniffer.ignores>
<maven.test.skip>false</maven.test.skip>
<maven.javadoc.skip>false</maven.javadoc.skip>
</properties>
<dependencies>
<dependency>
<!-- must be on the classpath -->
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<classifier>runtime</classifier>
<version>0.8.12</version> <!-- {x-version-update;org.jacoco:org.jacoco.agent;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<!-- This plugin checks dependencies for android API level compatibility -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.24</version> <!-- {x-version-update;org.codehaus.mojo:animal-sniffer-maven-plugin;external_dependency} -->
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<skip>${animal.sniffer.skip}</skip>
<signature>
<groupId>com.toasttab.android</groupId>
<artifactId>gummy-bears-api-26</artifactId>
<version>0.10.0</version> <!-- {x-version-update;com.toasttab.android:gummy-bears-api-26;external_dependency} -->
</signature>
<failOnError>false</failOnError>
<ignores>${animal.sniffer.ignores}</ignores>
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin configures the bas requirements for compilation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-compiler-plugin;external_dependency} -->
</plugin>
<!-- This plugin scans checkstyle issues in the code -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-checkstyle-plugin;external_dependency} -->
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- This plugin scans reports spotbugs in the code -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.3.1</version> <!-- {x-version-update;com.github.spotbugs:spotbugs-maven-plugin;external_dependency} -->
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Configure the jar plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} -->
<configuration>
<outputDirectory>${packageOutputDirectory}</outputDirectory>
<archive combine.children="append">
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<!-- Configures the codesnippet replacement plugin -->
<plugin>
<groupId>com.azure.tools</groupId>
<artifactId>codesnippet-maven-plugin</artifactId>
<version>1.0.0-beta.10</version> <!-- {x-version-update;com.azure.tools:codesnippet-maven-plugin;external_dependency} -->
<configuration>
<skip>${codesnippet.skip}</skip>
<readmeGlob>**/*.md</readmeGlob>
</configuration>
<executions>
<execution>
<id>update-codesnippets</id>
<goals>
<goal>update-codesnippet</goal>
</goals>
</execution>
<execution>
<id>verify-codesnippets</id>
<goals>
<goal>verify-codesnippet</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Configure the javadoc plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} -->
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Configure the source plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-source-plugin;external_dependency} -->
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<outputDirectory>${packageOutputDirectory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Copy the pom file to output -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} -->
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<configuration>
<target>
<copy file="${project.pomFile}" tofile="${packageOutputDirectory}/${project.build.finalName}.pom"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
<configuration>
<dataFileIncludes>
<dataFileInclude>${project.build.directory}/jacoco.exec</dataFileInclude>
</dataFileIncludes>
<excludes combine.children="append">
<exclude>META-INF/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
<phase>process-test-classes</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/jacoco-unit.exec</destFile>
<propertyName>jacocoUnitTestAgent</propertyName>
</configuration>
</execution>
<execution>
<id>integration-prepare-agent</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/jacoco-it.exec</destFile>
<propertyName>jacocoIntegrationTestAgent</propertyName>
</configuration>
</execution>
<execution>
<id>merge-unit-and-integration</id>
<phase>verify</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>jacoco-unit.exec</include>
<include>jacoco-it.exec</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
<execution>
<id>post-unit-test</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>${project.reporting.outputDirectory}/test-coverage</outputDirectory>
<excludes combine.children="append">
<exclude>**/com/azure/cosmos/implementation/apachecommons/**/*</exclude>
<exclude>**/com/azure/cosmos/implementation/guava25/**/*</exclude>
<exclude>**/com/azure/cosmos/implementation/guava27/**/*</exclude>
<exclude>**/com/azure/cosmos/encryption/implementation/mdesrc/**/*</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<skip>${jacoco.skip}</skip>
<dataFile>${project.build.directory}/jacoco.exec</dataFile>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>${jacoco.min.linecoverage}</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<minimum>${jacoco.min.branchcoverage}</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Allows the sample sources to be built during test-compile phase. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version> <!-- {x-version-update;org.codehaus.mojo:build-helper-maven-plugin;external_dependency} -->
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/README.md</file>
<type>md</type>
<classifier>readme</classifier>
</artifact>
<artifact>
<file>${basedir}/CHANGELOG.md</file>
<type>md</type>
<classifier>changelog</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<!-- Checks public surface area for breaking changes. -->
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.14.6</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} -->
<configuration>
<rules>
<!--
Rule: https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html
We have a list of blessed dependencies here: https://azure.github.io/azure-sdk/java_implementation.html#dependencies
Format of includes / excludes is the following: 'groupId[:artifactId][:version][:type][:scope][:classifier]'.
Wildcards can be used.
-->
<bannedDependencies>
<searchTransitive>false</searchTransitive>
<excludes>
<!-- We exclude everything that is runtime-time, compile-time, or provided scoped (i.e. we allow
dependencies when they are used for test scope or otherwise) -->
<exclude>*:*:*:*:runtime</exclude>
<exclude>*:*:*:*:compile</exclude>
<exclude>*:*:*:*:provided</exclude>
</excludes>
<includes combine.children="append">
<include>com.azure:*</include>
<include>com.azure.resourcemanager:*</include>
<include>com.azure.spring:*</include>
<include>io.clientcore:*</include>
<!-- Used by many libraries to bring in annotations used by Reactor -->
<include>com.google.code.findbugs:jsr305:[3.0.2]</include> <!-- {x-include-update;com.google.code.findbugs:jsr305;external_dependency} -->
</includes>
</bannedDependencies>
<!--
Rule: https://maven.apache.org/enforcer/enforcer-rules/requireReleaseDeps.html
-->
<requireReleaseDeps>
<message>No Snapshots Allowed!</message>
</requireReleaseDeps>
<!--
Rule: https://maven.apache.org/enforcer/enforcer-rules/requireSameVersions.html
This rule is used to enforce that all modules depend on the same version of particular dependencies or
plugins.
-->
</rules>
<fail>true</fail>
</configuration>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.30.0</version> <!-- {x-version-update;com.diffplug.spotless:spotless-maven-plugin;external_dependency} -->
<configuration>
<applySkip>${spotless.apply.skip}</applySkip>
<checkSkip>${spotless.check.skip}</checkSkip>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- This plugin configures the bas requirements for compilation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-compiler-plugin;external_dependency} -->
<configuration>
<showWarnings>true</showWarnings>
<failOnWarning>true</failOnWarning>
<skipMain>${skipCompile}</skipMain>
<skip>${skipTestCompile}</skip>
<compilerArgs combine.children="append" combine.self="append">
<!-- https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html#xlintwarnings -->
<arg>-Xlint:cast</arg>
<arg>-Xlint:classfile</arg>
<arg>-Xlint:${compiler.failondeprecatedstatus}deprecation</arg>
<arg>-Xlint:dep-ann</arg>
<arg>-Xlint:divzero</arg>
<arg>-Xlint:empty</arg>
<arg>-Xlint:fallthrough</arg>
<arg>-Xlint:finally</arg>
<arg>-Xlint:options</arg>
<arg>-Xlint:overrides</arg>
<arg>-Xlint:path</arg>
<!-- <arg>-Xlint:processing</arg> -->
<arg>-Xlint:rawtypes</arg>
<!-- <arg>-Xlint:serial</arg> -->
<arg>-Xlint:static</arg>
<arg>-Xlint:try</arg>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:varargs</arg>
</compilerArgs>
<!-- Default is annotation processing being off. -->
<proc>${compiler.proc}</proc>
<createMissingPackageInfoClass>false</createMissingPackageInfoClass>
</configuration>
</plugin>
<!-- This plugin scans checkstyle issues in the code -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-checkstyle-plugin;external_dependency} -->
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>sdk-build-tools</artifactId>
<version>1.0.0</version> <!-- {x-version-update;com.azure:sdk-build-tools;external_dependency} -->
</dependency>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>9.3</version> <!-- {x-version-update;com.puppycrawl.tools:checkstyle;external_dependency} -->
</dependency>
</dependencies>
<configuration>
<skip>${checkstyle.skip}</skip>
<configLocation>${project.basedir}/${relative.path.to.eng.folder}/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle.xml</configLocation>
<suppressionsLocation>${checkstyle.suppressionsLocation}</suppressionsLocation>
<headerLocation>${project.basedir}/${relative.path.to.eng.folder}/eng/code-quality-reports/src/main/resources/checkstyle/java.header</headerLocation>
<excludes>${checkstyle.excludes}</excludes>
<propertyExpansion>samedir=</propertyExpansion>
<outputEncoding>UTF-8</outputEncoding>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>${checkstyle.includeTestSourceDirectory}</includeTestSourceDirectory>
<linkXRef>true</linkXRef>
<failsOnError>${checkstyle.failsOnError}</failsOnError>
<failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
</configuration>
</plugin>
<!-- This plugin scans reports spotbugs in the code -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.3.1</version> <!-- {x-version-update;com.github.spotbugs:spotbugs-maven-plugin;external_dependency} -->
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>sdk-build-tools</artifactId>
<version>1.0.0</version> <!-- {x-version-update;com.azure:sdk-build-tools;external_dependency} -->
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.8.3</version> <!-- {x-version-update;com.github.spotbugs:spotbugs;external_dependency} -->
</dependency>
<!-- Needed as the version of Spotbugs being used isn't compatible is Java 18+ without this. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.7</version> <!-- {x-version-update;org.ow2.asm:asm;external_dependency} -->
</dependency>
</dependencies>
<configuration>
<skip>${spotbugs.skip}</skip>
<effort>max</effort>
<threshold>low</threshold>
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
<excludeFilterFile>${spotbugs.excludeFilterFile}</excludeFilterFile>
<includeFilterFile>spotbugs/spotbugs-include.xml</includeFilterFile>
<fork>true</fork>
<failOnError>${spotbugs.failOnError}</failOnError>
<!-- Set this to true when src/samples and src/test are spotbugs clean in all Track 2 SDKs -->
<includeTests>${spotbugs.includeTests}</includeTests>
<jvmArgs>
${java.security.manager.configuration}
</jvmArgs>
<!-- Enable this plugin when issues documented are fixed -->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>com.h3xstream.findsecbugs</groupId>-->
<!-- <artifactId>findsecbugs-plugin</artifactId>-->
<!-- <version>1.9.0</version> <!– {x-version-update;com.h3xstream.findsecbugs:findsecbugs-plugin;external_dependency} –>-->
<!-- </plugin>-->
<!-- </plugins>-->
</configuration>
</plugin>
<!-- This plugin generates Javadocs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} -->
<configuration>
<skip>${maven.javadoc.skip}</skip>
<source>1.8</source>
<doctitle>Azure SDK for Java Reference Documentation</doctitle>
<windowtitle>Azure SDK for Java Reference Documentation</windowtitle>
<bottom>Visit the <a href="https://docs.microsoft.com/java/azure/">Azure for Java Developers</a> site
for more Java documentation, including quick starts, tutorials, and code samples.
</bottom>
<linksource>false</linksource>
<excludePackageNames combine.children="append">
*.impl*:
*.implementation:
*.implementation*:
*.samples:
com.azure.tools.checkstyle*:
com.azure.core.test*:
com.azure.endtoend*:
com.azure.perf*:
com.azure.storage.internal.avro*:
com.azure.cosmos.encryption.implementation.mdesrc*:
${javadoc.excludePackageNames}
</excludePackageNames>
<!-- CosmosSkip - This is temporary, BridgeInternal gets converted to implementation -->
<sourceFileExcludes>
<sourceFileExclude>com/azure/cosmos/*BridgeInternal.java</sourceFileExclude>
<sourceFileExclude>com/azure/cosmos/models/*BridgeInternal.java</sourceFileExclude>
<sourceFileExclude>com/azure/cosmos/util/*BridgeInternal.java</sourceFileExclude>
<sourceFileExclude>com/azure/cosmos/encryption/*BridgeInternal.java</sourceFileExclude>
<sourceFileExclude>com/azure/cosmos/encryption/models/*BridgeInternal.java</sourceFileExclude>
<sourceFileExclude>module-info.java</sourceFileExclude>
</sourceFileExcludes>
<sourcepath>
${javadoc.sourcepath}
</sourcepath>
<links combine.children="append">
<!-- JDK APIs -->
<link>https://docs.oracle.com/javase/8/docs/api/</link>
<!-- Reactor APIs -->
<link>https://projectreactor.io/docs/core/release/api/</link> <!-- TODO (alzimmer): We need to version this. Right now it is always going to point to latest which may be wrong -->
<link>https://projectreactor.io/docs/netty/release/api/</link>
<!-- Jackson APIs -->
<link>https://fasterxml.github.io/jackson-annotations/javadoc/2.12/</link>
<link>https://fasterxml.github.io/jackson-core/javadoc/2.12/</link>
<link>https://fasterxml.github.io/jackson-databind/javadoc/2.12/</link>
<!-- Netty APIs -->
<link>https://netty.io/4.1/api/</link>
<!-- Avro APIs -->
<link>https://avro.apache.org/docs/current/api/java/</link>
</links>
<detectJavaApiLink>false</detectJavaApiLink>
<offline>true</offline>
<offlineLinks>
<!-- JDK APIs -->
<offlineLink>
<url>https://docs.oracle.com/javase/8/docs/api/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/java8/</location>
</offlineLink>
<!-- Reactor APIs -->
<offlineLink>
<url>https://projectreactor.io/docs/core/release/api/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/reactor-core/</location>
</offlineLink>
<offlineLink>
<url>https://projectreactor.io/docs/netty/release/api/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/reactor-netty/</location>
</offlineLink>
<!-- Jackson APIs -->
<offlineLink>
<url>https://fasterxml.github.io/jackson-annotations/javadoc/2.12/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/jackson-annotations/</location>
</offlineLink>
<offlineLink>
<url>https://fasterxml.github.io/jackson-core/javadoc/2.12/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/jackson-core/</location>
</offlineLink>
<offlineLink>
<url>https://fasterxml.github.io/jackson-databind/javadoc/2.12/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/jackson-databind/</location>
</offlineLink>
<!-- Netty APIs -->
<offlineLink>
<url>https://netty.io/4.1/api/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/netty/</location>
</offlineLink>
<!-- Avro APIs -->
<offlineLink>
<url>https://avro.apache.org/docs/current/api/java/</url>
<location>${project.basedir}/${relative.path.to.eng.folder}/eng/javadoc-package-lists/apache-avro/</location>
</offlineLink>
</offlineLinks>
<failOnError>true</failOnError>
<failOnWarnings>true</failOnWarnings>
<doclint>${doclint},${doclintMissingInclusion}missing</doclint>
<quiet>true</quiet>
<jarOutputDirectory>${packageOutputDirectory}</jarOutputDirectory>
</configuration>
</plugin>
<!-- This plugin runs tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} -->
<configuration>
<skip>${maven.test.skip}</skip>
<runOrder>alphabetical</runOrder>
<useSystemClassLoader>false</useSystemClassLoader>
<systemPropertyVariables combine.children="append">
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
<!-- Always set junit.jupiter.execution.parallel.enabled to true. -->
<!-- This simply configures whether test parallelization is enabled, the default parallelization mode is same_thread. -->
<!-- same_thread indicates no parallelization, but without parallelization enabled @ExecutionMode annotations don't take effect. -->
<!-- See https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution for more details. -->
<junit.jupiter.execution.parallel.enabled>true</junit.jupiter.execution.parallel.enabled>
<!-- junit.jupiter.execution.parallel.mode.default controls parallelization. -->
<!-- Use this to configure parallelization rather than junit.jupiter.execution.parallel.enabled. -->
<junit.jupiter.execution.parallel.mode.default>${parallelizeTests}</junit.jupiter.execution.parallel.mode.default>
<org.slf4j.simpleLogger.logFile>${project.build.directory}/${project.artifactId}-test.log</org.slf4j.simpleLogger.logFile>
<org.slf4j.simpleLogger.showDateTime>true</org.slf4j.simpleLogger.showDateTime>
<org.slf4j.simpleLogger.dateTimeFormat>dd MMM yyyy HH:mm:ss,SSS</org.slf4j.simpleLogger.dateTimeFormat>
<org.slf4j.simpleLogger.defaultLogLevel>info</org.slf4j.simpleLogger.defaultLogLevel>
<org.slf4j.simpleLogger.log.com.azure>debug</org.slf4j.simpleLogger.log.com.azure>
</systemPropertyVariables>
<forkCount>1</forkCount>
<testFailureIgnore>false</testFailureIgnore>
<argLine>
${defaultSurefireArgLine}
${additionalSurefireArgLine}
</argLine>
</configuration>
<dependencies>
<!-- This dependency is required until maven-surefire-plugin updates the version they use. -->
<!-- The current dependency version doesn't support Java 17. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.7</version> <!-- {x-version-update;org.ow2.asm:asm;external_dependency} -->
</dependency>
<dependency>
<!-- must be on the classpath -->
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<classifier>runtime</classifier>
<version>0.8.12</version> <!-- {x-version-update;org.jacoco:org.jacoco.agent;external_dependency} -->
</dependency>
</dependencies>
</plugin>
<!-- This plugin runs integration tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} -->
<configuration>
<skip>${maven.test.skip}</skip>
<runOrder>alphabetical</runOrder>
<useSystemClassLoader>false</useSystemClassLoader>
<systemPropertyVariables combine.children="append">
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
<!-- Always set junit.jupiter.execution.parallel.enabled to true. -->
<!-- This simply configures whether test parallelization is enabled, the default parallelization mode is same_thread. -->
<!-- same_thread indicates no parallelization, but without parallelization enabled @ExecutionMode annotations don't take effect. -->
<!-- See https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution for more details. -->
<junit.jupiter.execution.parallel.enabled>true</junit.jupiter.execution.parallel.enabled>
<!-- junit.jupiter.execution.parallel.mode.default controls parallelization. -->
<!-- Use this to configure parallelization rather than junit.jupiter.execution.parallel.enabled. -->
<junit.jupiter.execution.parallel.mode.default>${parallelizeTests}</junit.jupiter.execution.parallel.mode.default>
<org.slf4j.simpleLogger.logFile>${project.build.directory}/${project.artifactId}-test.log</org.slf4j.simpleLogger.logFile>
<org.slf4j.simpleLogger.showDateTime>true</org.slf4j.simpleLogger.showDateTime>
<org.slf4j.simpleLogger.dateTimeFormat>dd MMM yyyy HH:mm:ss,SSS</org.slf4j.simpleLogger.dateTimeFormat>
<org.slf4j.simpleLogger.defaultLogLevel>info</org.slf4j.simpleLogger.defaultLogLevel>
<org.slf4j.simpleLogger.log.com.azure>debug</org.slf4j.simpleLogger.log.com.azure>
</systemPropertyVariables>
<forkCount>1</forkCount>
<testFailureIgnore>false</testFailureIgnore>
<argLine>
${defaultFailsafeArgLine}
${additionalFailsafeArgLine}
</argLine>
</configuration>
<dependencies>
<!-- This dependency is required until maven-failsafe-plugin updates the version they use. -->
<!-- The current dependency version doesn't support Java 17. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.7</version> <!-- {x-version-update;org.ow2.asm:asm;external_dependency} -->
</dependency>
<dependency>
<!-- must be on the classpath -->
<groupId>org.jacoco</groupId>