-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
720 lines (708 loc) · 39.5 KB
/
pom.xml
File metadata and controls
720 lines (708 loc) · 39.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
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
<?xml version="1.0" encoding="UTF-8" ?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- Version du fichier -->
<modelVersion>4.0.0</modelVersion>
<!-- Pom parent -->
<!-- Definition de l'artefact -->
<groupId>fr.fifiz.socle.java</groupId>
<artifactId>java-parent</artifactId>
<version>8.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>FIFIZ :: Socle Java :: java-parent</name>
<description>Pom parent Java de mes projets </description>
<!-- FIXME change it to the project's website -->
<url>https://bdelion.github.io/java-parent/</url>
<!-- FIXME add licences -->
<organization>
<name>FIFIZ Company</name>
<url>https://bdelion.github.io/</url>
</organization>
<developers>
<developer>
<id>bdelion</id>
<name>Bertrand Delion</name>
<email>bertrand.delion@free.fr</email>
<url>https://github.com/bdelion</url>
<organization>FIFIZ Company</organization>
<organizationUrl>https://github.com/bdelion</organizationUrl>
<timezone>+1</timezone>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
</developer>
</developers>
<!-- Gestionnaire de code source -->
<!-- https://github.com/kevinsawicki/github-maven-example/blob/master/example/pom.xml -->
<scm>
<url>https://github.com/bdelion/java-parent</url>
<connection>scm:git:git://github.com/bdelion/java-parent.git</connection>
<developerConnection>scm:git:git@github.com:bdelion/java-parent.git</developerConnection>
<tag>HEAD</tag>
</scm>
<issueManagement>
<url>https://github.com/bdelion/java-parent/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/bdelion/java-parent/actions</url>
</ciManagement>
<distributionManagement>
<snapshotRepository>
<id>github</id>
<name>GitHub Snapshot bdelion/maven-packages Apache Maven Packages</name>
<url>https://maven.pkg.github.com/bdelion/maven-packages</url>
<!-- <uniqueVersion>true</uniqueVersion> -->
</snapshotRepository>
<repository>
<id>github</id>
<name>GitHub Release bdelion/maven-packages Apache Maven Packages</name>
<url>https://maven.pkg.github.com/bdelion/${project.artifactId}</url>
<!-- <uniqueVersion>false</uniqueVersion> -->
</repository>
</distributionManagement>
<repositories>
<repository>
<id>github</id>
<name>GitHub bdelion/maven-packages Apache Maven Packages</name>
<url>https://github.com/bdelion</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<properties>
<!-- Java version -->
<java.version>1.8</java.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Maven version -->
<maven.version>3.6.3</maven.version>
<!-- Plugins version -->
<!-- Plugin pour les contrôles -->
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
<!-- Plugin pour le debug -->
<maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
<!-- Plugin pour le pom parent -->
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-install-plugin.version>3.0.0-M1</maven-install-plugin.version>
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
<!-- Plugin pour les projets Java -->
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<!-- BEGIN - maven.compiler properties -->
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.optimize>true</maven.compiler.optimize>
<maven.compiler.debug>true</maven.compiler.debug>
<maven.compiler.showDeprecation>false</maven.compiler.showDeprecation>
<maven.compiler.showWarnings>false</maven.compiler.showWarnings>
<!-- END - maven.compiler properties -->
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
<maven-project-info-reports-plugin>3.0.0</maven-project-info-reports-plugin>
<!-- Info référentiel Git -->
<git-commit-id-plugin.version>4.0.0</git-commit-id-plugin.version>
<!-- Tests -->
<junit.version>5.6.1</junit.version>
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M4</maven-failsafe-plugin.version>
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
<jacoco.utReportPath>${project.build.directory}/coverage-reports/jacoco-ut.exec</jacoco.utReportPath>
<jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</jacoco.itReportPath>
<!-- FIXME https://bcouetil.gitlab.io/academy/BP-maven.html#sonarqube-with-jacoco-for-coverage
<sonar.jacoco.reportPaths>${jacoco.utReportPath}, ${jacoco.itReportPath}</sonar.jacoco.reportPaths>
-->
<!-- Assembly -->
<maven-assembly-plugin-skip>true</maven-assembly-plugin-skip>
<!-- Site and Report generation -->
<maven-site-plugin.version>3.9.0</maven-site-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- Pour les tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- Plugin Maven qui inclut les informations du référentiel git au moment de la construction dans un POJO / * .properties -->
<!-- https://www.codeflow.site/fr/article/spring-git-information -->
<!-- This plugin makes basic repository information available through maven resources.
This can be used to display "what version is this?" or "who has deployed this and when,
from which branch?" information at runtime, making it easy to find things like "oh, that isn't deployed yet,
I'll test it tomorrow" and making both testers and developers life easier.
See https://github.com/git-commit-id/maven-git-commit-id-plugin -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<configuration>
<useNativeGit>true</useNativeGit>
<!-- Skips if the value of maven.main.skip property is true -->
<skip>${maven.main.skip}</skip>
<commitIdGenerationMode>full</commitIdGenerationMode>
<format>json</format>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<verbose>false</verbose>
<excludeProperties>
<excludeProperty>git.build.host</excludeProperty>
<excludeProperty>git.commit.id.abbrev</excludeProperty>
</excludeProperties>
<!-- this is false by default, forces the plugin to generate the git.properties file -->
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<!-- The path for the properties file to be generated. See Super Pom for default variable reference https://maven.apache.org/guides/introduction/introduction-to-the-pom.html -->
<generateGitPropertiesFilename>${project.build.outputDirectory}/git-properties.json</generateGitPropertiesFilename>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
<!-- The Resources Plugin handles the copying of project resources to the output directory.
There are two different kinds of resources: main resources and test resources.
The difference is that the main resources are the resources associated to the main source code while the test resources are associated to the test source code.
Thus, this allows the separation of resources for the main source code and its unit tests. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<!-- The Compiler Plugin is used to compile the sources of your project. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<!-- Tests -->
<!-- Gestion des Tests avec Jacoco -->
<!-- You can run jacoco in the default profile with: mvn jacoco:prepare-agent test jacoco:report -->
<!-- The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows basic report creation. -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<!-- UNIT TESTS -->
<!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when Maven the Surefire plugin is executed. -->
<execution>
<id>pre-unit-test</id>
<phase>test-compile</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Skips unit tests if the value of unit.test.skip property is true -->
<skip>${unit.test.skip}</skip>
<!-- Sets the path to the file which contains the execution data. -->
<destFile>${jacoco.utReportPath}</destFile>
<dataFile>${jacoco.utReportPath}</dataFile>
<!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<!-- Skips unit tests if the value of unit.test.skip property is true -->
<skip>${unit.test.skip}</skip>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>${jacoco.utReportPath}</dataFile>
<!-- Sets the output directory for the code coverage report. -->
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
</configuration>
</execution>
<!-- INTEGRATION TESTS -->
<!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when Maven the Surefire plugin is executed. -->
<execution>
<id>pre-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<configuration>
<!-- Skips unit tests if the value of integration.test.skip property is true -->
<skip>${integration.test.skip}</skip>
<!-- Sets the path to the file which contains the execution data. -->
<destFile>${jacoco.itReportPath}</destFile>
<dataFile>${jacoco.itReportPath}</dataFile>
<!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
<propertyName>failsafeArgLine</propertyName>
</configuration>
</execution>
<!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report-integration</goal>
</goals>
<configuration>
<!-- Skips unit tests if the value of integration.test.skip property is true -->
<skip>${integration.test.skip}</skip>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>${jacoco.itReportPath}</dataFile>
<!-- Sets the output directory for the code coverage report. -->
<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
</configuration>
</execution>
<execution>
<id>merge-unit-and-integration</id>
<phase>post-integration-test</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${project.build.directory}/coverage-reports/</directory>
<includes>
<include>*.exec</include>
</includes>
</fileSet>
</fileSets>
<destFile>${project.build.directory}/coverage-reports/merged.exec</destFile>
</configuration>
</execution>
<execution>
<id>create-merged-report</id>
<phase>post-integration-test</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/merged.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Exécution des TU avec Surfire -->
<!-- Maven Surefire MOJO in maven-surefire-plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<testFailureIgnore>false</testFailureIgnore>
<runOrder>alphabetical</runOrder>
<!-- Sets the VM argument line used when unit tests are run. -->
<argLine>${surefireArgLine}</argLine>
<!-- Skips unit tests if the value of unit.test.skip property is true -->
<skip>${unit.test.skip}</skip>
<!-- Excludes integration tests when unit tests are run. -->
<excludes>
<exclude>**/*IT.*</exclude>
</excludes>
</configuration>
</plugin>
<!-- Builds a Java Archive (JAR) file from the compiled project classes and resources. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Implementation-Title>${project.groupId}.${project.artifactId}</Implementation-Title>
<Implementation-Build-Time>${maven.build.timestamp}</Implementation-Build-Time>
<X-Git-SHA-1>${git.commit.id.abbrev}</X-Git-SHA-1>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- Exécution des TI avec Failsafe -->
<!-- Maven Failsafe MOJO in maven-failsafe-plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<runOrder>alphabetical</runOrder>
<!-- Sets the VM argument line used when integration tests are run. -->
<argLine>${failsafeArgLine}</argLine>
<!-- Skips unit tests if the value of integration.test.skip property is true -->
<skip>${integration.test.skip}</skip>
<includes>
<include>**/*IT.*</include>
</includes>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<!-- to exit in error on test fail -->
<execution>
<id>verify-integration-tests</id>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- A Maven plugin to create archives of your project's sources, classes, dependencies etc.
from flexible assembly descriptors. -->
<!-- Goal qui construit un fichier JAR (Java Archive) executable à partir des ressources et des classes de projet compilées. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<configuration>
<skipAssembly>${maven-assembly-plugin-skip}</skipAssembly>
<!-- get all project dependencies -->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!-- MainClass in mainfest make a executable jar -->
<archive>
<manifest>
<mainClass>${main-class}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Implementation-Title>${project.groupId}.${project.artifactId}</Implementation-Title>
<Implementation-Build-Time>${maven.build.timestamp}</Implementation-Build-Time>
<X-Git-SHA-1>${git.commit.id.abbrev}</X-Git-SHA-1>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- The Maven Source Plugin creates a JAR archive of the source files of the current project. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Provides utility goals to work with dependencies like copying, unpacking, analyzing, resolving and many more. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
<executions>
<execution>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>true</failOnWarning>
<!-- <ignoreNonCompile>true</ignoreNonCompile> -->
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>org.junit.jupiter:junit-jupiter-*::</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.apache.logging.log4j:log4j-core::</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
<outputXML>true</outputXML>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- The Maven Clean Plugin is a plugin that removes files generated at build-time in a project's directory. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
</plugin>
<!-- This plugin makes basic repository information available through maven resources. -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
<!-- The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows basic report creation. -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<!-- A Maven plugin to create archives of your project's sources, classes, dependencies etc.
from flexible assembly descriptors. -->
<!-- Goal qui construit un fichier JAR (Java Archive) executable à partir des ressources et des classes de projet compilées. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<!-- The Maven Source Plugin creates a JAR archive of the source files of the current project. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!-- Maven Failsafe MOJO in maven-failsafe-plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<!-- Provides utility goals to work with dependencies like copying, unpacking, analyzing, resolving and many more. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<!-- Copies the project artifacts to the user's local repository. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install-plugin.version}</version>
</plugin>
<!-- Uploads the project artifacts to the internal remote repository. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
<!-- The Maven Site Plugin is a plugin that generates a site for the current project -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
<configuration>
<!-- Je veux le site en français -->
<locales>fr</locales>
</configuration>
</plugin>
<!-- The Maven Project Info Reports Plugin is a plugin that generates standard reports for the specified project. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin}</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<reportSets>
<reportSet>
<id>jacoco-report</id>
<reports>
<report>report</report>
</reports>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
</configuration>
</reportSet>
<reportSet>
<id>jacoco-report-integration</id>
<reports>
<report>report-integration</report>
</reports>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
</configuration>
</reportSet>
<reportSet>
<id>jacoco-report-aggregate</id>
<reports>
<report>report-aggregate</report>
</reports>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/merged.exec</dataFile>
</configuration>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<reportSets>
<reportSet>
<id>unit-tests</id>
<reports>
<report>report-only</report>
</reports>
</reportSet>
<reportSet>
<id>integration-tests</id>
<reports>
<report>failsafe-report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>project-controls-check</id>
<build>
<plugins>
<!-- The Enforcer plugin provides goals to control certain environmental constraints such as Maven version,
JDK version and OS family along with many more built-in rules and user created rules. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-rules-controls</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
<requirePluginVersions>
<message>Définissez plugin.version !</message>
</requirePluginVersions>
<banDuplicatePomDependencyVersions>
<message>enforces that the project doesn't have duplicate declared dependencies.</message>
</banDuplicatePomDependencyVersions>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<!-- <excludes>
<exclude>commons-logging:commons-logging</exclude>
<exclude>log4j:log4j</exclude>
<exclude>org.apache.httpcomponents:httpclient:(4.3]</exclude>
<exclude>org.mockito:mockito-all</exclude>
</excludes>
<includes>
<include>org.mockito:mockito-all:*:*:test</include>
</includes> -->
<message>A banned dependency or plugin was found!</message>
</bannedDependencies>
<dependencyConvergence />
<requireReleaseDeps>
<message>No Snapshots Allowed in releases!</message>
<onlyWhenRelease>true</onlyWhenRelease>
</requireReleaseDeps>
<requireUpperBoundDeps>
<!-- 'uniqueVersions' (default:false) can be set to true if you want to compare the timestamped SNAPSHOTs -->
<!-- <uniqueVersions>true</uniqueVersions> -->
<!-- If you wish to ignore certain cases:
<excludes>
<exclude>com.google.guava:guava</exclude>
</excludes> -->
</requireUpperBoundDeps>
</rules>
<skip>${maven.main.skip}</skip>
</configuration>
</execution>
<execution>
<id>enforce-display-info</id>
<phase>validate</phase>
<goals>
<goal>display-info</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>display-plugin-updates</goal>
<goal>display-dependency-updates</goal>
<goal>display-property-updates</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Runs Ant scripts embedded in the POM -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Displaying value of pom.xml element</echo>
<echo>[distributionManagement.repository.name] ${project.distributionManagement.repository.name}</echo>
<echo>[distributionManagement.repository.url] ${project.distributionManagement.repository.url}</echo>
<echo>[maven.main.skip] ${maven.main.skip}</echo>
<echo>[skipMain] ${skipMain}</echo>
<echo>[maven.test.skip] ${maven.test.skip}</echo>
<echo>[unit.test.skip] ${unit.test.skip}</echo>
<echo>[integration.test.skip] ${unit.test.skip}</echo>
<echo>[skipTests] ${skipTests}</echo>
<echo>[skip.unit.tests] ${skip.unit.tests}</echo>
<echo>[maven-assembly-plugin-skip] ${maven-assembly-plugin-skip}</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>