Upgrade spring-boot to 2.7.X in model-loader
[aai/model-loader.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 European Software Marketing Ltd.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25
26         <parent>
27                 <groupId>org.onap.oparent</groupId>
28                 <artifactId>oparent</artifactId>
29                 <version>3.3.3</version>
30                 <relativePath />
31         </parent>
32
33         <groupId>org.onap.aai.model-loader</groupId>
34         <artifactId>model-loader</artifactId>
35         <name>aai-model-loader</name>
36         <version>1.14.0-SNAPSHOT</version>
37
38         <dependencyManagement>
39                 <dependencies>
40                         <dependency>
41                                 <groupId>org.springframework.boot</groupId>
42                                 <artifactId>spring-boot-dependencies</artifactId>
43                                 <version>${spring-boot.version}</version>
44                                 <type>pom</type>
45                                 <scope>import</scope>
46                         </dependency>
47                         <dependency>
48                                 <groupId>org.springframework.cloud</groupId>
49                                 <artifactId>spring-cloud-dependencies</artifactId>
50                                 <version>${spring-cloud.version}</version>
51                                 <type>pom</type>
52                                 <scope>import</scope>
53                         </dependency>
54                 </dependencies>
55         </dependencyManagement>
56
57         <properties>
58                 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
59                 <nexusproxy>https://nexus.onap.org</nexusproxy>
60                 <docker.location>${basedir}/target</docker.location>
61                 <spring-boot.version>2.7.18</spring-boot.version>
62                 <spring-cloud.version>2021.0.8</spring-cloud.version>
63                 <apache.commons-text.version>1.10.0</apache.commons-text.version>
64                 <commons-compress.version>1.22</commons-compress.version>
65                 <gson.version>2.10.1</gson.version>
66                 <hamcrest-all.version>1.3</hamcrest-all.version>
67                 <babel.version>1.13.0</babel.version>
68                 <sdc-distribution-client.version>2.1.1</sdc-distribution-client.version>
69                 <logback.version>1.2.11</logback.version>
70                 <!-- docker related properties -->
71                 <docker.fabric.version>0.39.0</docker.fabric.version>
72                 <aai.docker.version>1.0.0</aai.docker.version>
73                 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
74                 <aai.docker.namespace>onap</aai.docker.namespace>
75                 <aai.base.image>alpine</aai.base.image>
76                 <aai.base.image.version>1.13.2</aai.base.image.version>
77                 <!-- This will be used for the docker images as the default format of maven build has issues -->
78                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
79
80                 <sonar.jacoco.reportPath />
81                 <sonar.jacoco.itReportPath />
82                 <sonar.jacoco.reportMissing.force.zero />
83
84                 <jacoco.line.coverage.limit>0.75</jacoco.line.coverage.limit>
85                 <jacoco.version>0.8.5</jacoco.version>
86                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
87                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
88                 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
89                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
90
91                 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
92
93                 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
94                 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
95                 <maven-compiler-plugin.source>11</maven-compiler-plugin.source>
96                 <maven-compiler-plugin.target>11</maven-compiler-plugin.target>
97                 <maven-compiler-plugin.test.source>11</maven-compiler-plugin.test.source>
98                 <maven-compiler-plugin.test.target>11</maven-compiler-plugin.test.target>
99         </properties>
100
101         <distributionManagement>
102                 <repository>
103                         <id>ecomp-releases</id>
104                         <name>ECOMP Release Repository</name>
105                         <url>${nexusproxy}/content/repositories/releases/</url>
106                 </repository>
107                 <snapshotRepository>
108                         <id>ecomp-snapshots</id>
109                         <name>ECOMP Snapshot Repository</name>
110                         <url>${nexusproxy}/content/repositories/snapshots/</url>
111                 </snapshotRepository>
112         </distributionManagement>
113
114         <profiles>
115                 <!-- Docker profile to be used for building docker image and pushing to nexus -->
116                 <profile>
117                         <id>docker</id>
118                         <build>
119                                 <plugins>
120                                         <plugin>
121                                                 <groupId>org.codehaus.mojo</groupId>
122                                                 <artifactId>build-helper-maven-plugin</artifactId>
123                                                 <version>3.0.0</version>
124                                                 <executions>
125                                                         <execution>
126                                                                 <phase>pre-clean</phase>
127                                                                 <id>parse-version</id>
128                                                                 <goals>
129                                                                         <goal>parse-version</goal>
130                                                                 </goals>
131                                                         </execution>
132                                                 </executions>
133                                         </plugin>
134                                         <plugin>
135                                                 <groupId>org.codehaus.groovy.maven</groupId>
136                                                 <artifactId>gmaven-plugin</artifactId>
137                                                 <version>1.0</version>
138                                                 <executions>
139                                                         <execution>
140                                                                 <phase>pre-clean</phase>
141                                                                 <goals>
142                                                                         <goal>execute</goal>
143                                                                 </goals>
144                                                                 <configuration>
145                                                                         <source>
146                                                                                 def userAaiBaseImage = session.userProperties['aai.base.image'];
147                                                                                 def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
148                                                                                 if (userAaiCommonVersion != null) {
149                                                                                         project.properties['aai.base.image.version'] = userAaiCommonVersion;
150                                                                                 }
151                                                                                 if (userAaiBaseImage != null) {
152                                                                                         project.properties['aai.base.image'] = userAaiBaseImage;
153                                                                                 }
154                                                                                 log.info 'Base image flavour: ' + project.properties['aai.base.image'];
155                                                                                 log.info 'Base image version: ' + project.properties['aai.base.image.version'];
156                                                                         </source>
157                                                                 </configuration>
158                                                         </execution>
159                                                 </executions>
160                                         </plugin>
161                                         <plugin>
162                                                 <groupId>io.fabric8</groupId>
163                                                 <artifactId>docker-maven-plugin</artifactId>
164                                                 <version>${docker.fabric.version}</version>
165                                                 <configuration>
166                                                         <verbose>true</verbose>
167                                                         <apiVersion>1.23</apiVersion>
168                                                         <images>
169                                                                 <image>
170                                                                         <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
171                                                                         <build>
172                                                                                 <filter>@</filter>
173                                                                                 <tags>
174                                                                                         <tag>latest</tag>
175                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
176                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
177                                                                                 </tags>
178                                                                                 <cleanup>try</cleanup>
179                                                                                 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
180                                                                                 <assembly>
181                                                                                         <inline>
182                                                                                                 <fileSets>
183                                                                                                         <fileSet>
184                                                                                                                 <directory>${aai.build.directory}</directory>
185                                                                                                                 <outputDirectory>/${project.artifactId}</outputDirectory>
186                                                                                                         </fileSet>
187                                                                                                 </fileSets>
188                                                                                         </inline>
189                                                                                 </assembly>
190                                                                         </build>
191                                                                 </image>
192                                                         </images>
193                                                 </configuration>
194                                                 <executions>
195                                                         <execution>
196                                                                 <id>clean-images</id>
197                                                                 <phase>pre-clean</phase>
198                                                                 <goals>
199                                                                         <goal>remove</goal>
200                                                                 </goals>
201                                                                 <configuration>
202                                                                         <removeAll>true</removeAll>
203                                                                 </configuration>
204                                                         </execution>
205                                                         <execution>
206                                                                 <id>generate-images</id>
207                                                                 <phase>package</phase>
208                                                                 <goals>
209                                                                         <goal>build</goal>
210                                                                 </goals>
211                                                         </execution>
212                                                         <execution>
213                                                                 <id>push-images</id>
214                                                                 <phase>deploy</phase>
215                                                                 <goals>
216                                                                         <goal>push</goal>
217                                                                 </goals>
218                                                         </execution>
219                                                 </executions>
220                                         </plugin>
221                                 </plugins>
222                         </build>
223                 </profile>
224         </profiles>
225
226         <dependencies>
227                 <dependency>
228                         <groupId>org.springframework.boot</groupId>
229                         <artifactId>spring-boot-starter-jetty</artifactId>
230                 </dependency>
231                 <dependency>
232                         <groupId>org.springframework.boot</groupId>
233                         <artifactId>spring-boot-starter-web</artifactId>
234                         <exclusions>
235                                 <exclusion>
236                                         <groupId>org.springframework.boot</groupId>
237                                         <artifactId>spring-boot-starter-tomcat</artifactId>
238                                 </exclusion>
239                         </exclusions>
240                 </dependency>
241                 <dependency>
242                         <groupId>org.springframework.boot</groupId>
243                         <artifactId>spring-boot-starter-aop</artifactId>
244                         <scope>test</scope>
245                 </dependency>
246                 <dependency>
247                         <groupId>org.apache.kafka</groupId>
248                         <artifactId>kafka-clients</artifactId>
249                         <!-- <version>3.3.1</version> -->
250                 </dependency>
251                 <dependency>
252                         <groupId>org.springframework.kafka</groupId>
253                         <artifactId>spring-kafka</artifactId>
254                         <!-- <version>3.1.2</version> -->
255                 </dependency>
256                 <dependency>
257                         <groupId>org.springframework.kafka</groupId>
258                         <artifactId>spring-kafka-test</artifactId>
259                         <!-- <version>3.1.1</version> -->
260                         <scope>test</scope>
261                 </dependency>
262                 <dependency>
263                         <groupId>org.onap.aai</groupId>
264                         <artifactId>babel</artifactId>
265                         <version>${babel.version}</version>
266                         <classifier>client</classifier>
267                         <exclusions>
268                                 <exclusion>
269                                         <groupId>*</groupId>
270                                         <artifactId>*</artifactId>
271                                 </exclusion>
272                         </exclusions>
273                 </dependency>
274                 <dependency>
275                         <groupId>com.google.code.gson</groupId>
276                         <artifactId>gson</artifactId>
277                         <version>${gson.version}</version>
278                 </dependency>
279
280                 <!-- Test dependencies -->
281                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
282                 <dependency>
283                         <groupId>com.mikesamuel</groupId>
284                         <artifactId>json-sanitizer</artifactId>
285                         <version>1.2.3</version>
286                 </dependency>
287
288                 <!-- Common logging framework -->
289                 <dependency>
290                         <groupId>org.onap.aai.logging-service</groupId>
291                         <artifactId>common-logging</artifactId>
292                         <version>1.5.0</version>
293                 </dependency>
294                 <dependency>
295                         <groupId>ch.qos.logback</groupId>
296                         <artifactId>logback-classic</artifactId>
297                         <version>${logback.version}</version>
298                         <!--$NO-MVN-MAN-VER$ -->
299                 </dependency>
300                 <dependency>
301                         <groupId>ch.qos.logback</groupId>
302                         <artifactId>logback-core</artifactId>
303                         <version>${logback.version}</version>
304                         <!--$NO-MVN-MAN-VER$ -->
305                 </dependency>
306                 <dependency>
307                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
308                         <artifactId>sdc-distribution-client</artifactId>
309                         <version>${sdc-distribution-client.version}</version>
310                 </dependency>
311                 <dependency>
312                         <groupId>org.apache.commons</groupId>
313                         <artifactId>commons-compress</artifactId>
314                         <version>${commons-compress.version}</version>
315                 </dependency>
316                 <dependency>
317                         <groupId>commons-io</groupId>
318                         <artifactId>commons-io</artifactId>
319                         <version>2.11.0</version>
320                 </dependency>
321                 <dependency>
322                         <groupId>org.apache.commons</groupId>
323                         <artifactId>commons-text</artifactId>
324                         <version>${apache.commons-text.version}</version>
325                 </dependency>
326                 <dependency>
327                         <groupId>org.springframework.cloud</groupId>
328                         <artifactId>spring-cloud-starter-sleuth</artifactId>
329                 </dependency>
330                 <dependency>
331                                 <groupId>org.springframework.cloud</groupId>
332                                 <artifactId>spring-cloud-sleuth-zipkin</artifactId>
333                 </dependency>
334                 <dependency>
335                         <groupId>com.fasterxml.jackson.dataformat</groupId>
336                         <artifactId>jackson-dataformat-xml</artifactId>
337                 </dependency>
338
339                 <!-- Test dependencies -->
340                 <dependency>
341                         <groupId>org.hamcrest</groupId>
342                         <artifactId>hamcrest-all</artifactId>
343                         <version>${hamcrest-all.version}</version>
344                         <scope>test</scope>
345                 </dependency>
346                 <dependency>
347                         <groupId>org.junit.jupiter</groupId>
348                         <artifactId>junit-jupiter</artifactId>
349                         <scope>test</scope>
350                 </dependency>
351                 <dependency>
352                         <groupId>org.junit.jupiter</groupId>
353                         <artifactId>junit-jupiter-api</artifactId>
354                         <scope>test</scope>
355                 </dependency>
356                 <dependency>
357                         <groupId>org.mockito</groupId>
358                         <artifactId>mockito-core</artifactId>
359                         <scope>test</scope>
360                 </dependency>
361                 <dependency>
362                         <groupId>org.springframework.boot</groupId>
363                         <artifactId>spring-boot-starter-test</artifactId>
364                         <scope>test</scope>
365                         <exclusions>
366                                 <exclusion>
367                                         <groupId>com.vaadin.external.google</groupId>
368                                         <artifactId>android-json</artifactId>
369                                 </exclusion>
370                         </exclusions>
371                 </dependency>
372                 <dependency>
373                         <groupId>org.springframework.cloud</groupId>
374                         <artifactId>spring-cloud-contract-wiremock</artifactId>
375                         <scope>test</scope>
376                 </dependency>
377         </dependencies>
378
379         <!-- Plugins and repositories -->
380         <pluginRepositories>
381                 <pluginRepository>
382                         <id>central</id>
383                         <url>https://repo1.maven.org/maven2</url>
384                 </pluginRepository>
385                 <pluginRepository>
386                         <id>EvoSuite</id>
387                         <name>EvoSuite Repository</name>
388                         <url>https://www.evosuite.org/m2</url>
389                 </pluginRepository>
390         </pluginRepositories>
391
392         <repositories>
393                 <repository>
394                         <id>central</id>
395                         <name>Maven 2 repository 2</name>
396                         <url>https://repo2.maven.org/maven2/</url>
397                 </repository>
398                 <repository>
399                         <id>ecomp-releases</id>
400                         <name>ECOMP Release Repository</name>
401                         <url>${nexusproxy}/content/repositories/releases/</url>
402                 </repository>
403                 <repository>
404                         <id>ecomp-snapshots</id>
405                         <name>ECOMP Snapshot Repository</name>
406                         <url>${nexusproxy}/content/repositories/snapshots/</url>
407                 </repository>
408                 <repository>
409                         <id>ecomp-staging</id>
410                         <name>ECOMP Staging Repository</name>
411                         <url>${nexusproxy}/content/repositories/staging/</url>
412                 </repository>
413         </repositories>
414
415         <build>
416                 <plugins>
417                         <plugin>
418                                 <groupId>org.apache.maven.plugins</groupId>
419                                 <artifactId>maven-compiler-plugin</artifactId>
420                                 <version>${maven-compiler-plugin.version}</version>
421                                 <inherited>true</inherited>
422                                 <configuration>
423                                         <source>${maven-compiler-plugin.source}</source>
424                                         <target>${maven-compiler-plugin.target}</target>
425                                         <testSource>${maven-compiler-plugin.test.source}</testSource>
426                                         <testTarget>${maven-compiler-plugin.test.target}</testTarget>
427                                 </configuration>
428                         </plugin>
429                         <plugin>
430                                 <groupId>org.springframework.boot</groupId>
431                                 <artifactId>spring-boot-maven-plugin</artifactId>
432                                 <version>${spring-boot.version}</version>
433                                 <configuration>
434                                         <executable>true</executable>
435                                 </configuration>
436                                 <executions>
437                                         <execution>
438                                                 <goals>
439                                                         <goal>repackage</goal>
440                                                 </goals>
441                                         </execution>
442                                 </executions>
443                         </plugin>
444                         <plugin>
445                                 <groupId>com.mycila</groupId>
446                                 <artifactId>license-maven-plugin</artifactId>
447                                 <version>3.0</version>
448                                 <configuration>
449                                         <header>License.txt</header>
450                                         <includes>
451                                                 <include>src/main/java/**</include>
452                                                 <include>src/test/java/**</include>
453                                                 <include>version/properties</include>
454                                                 <include>pom.xml</include>
455                                         </includes>
456                                         <skipExistingHeaders>true</skipExistingHeaders>
457                                 </configuration>
458                                 <executions>
459                                         <execution>
460                                                 <goals>
461                                                         <!-- Set goal to "format" to auto update license headers -->
462                                                         <goal>check</goal>
463                                                 </goals>
464                                                 <phase>process-sources</phase>
465                                         </execution>
466                                 </executions>
467                         </plugin>
468                         <plugin>
469                                 <groupId>org.apache.maven.plugins</groupId>
470                                 <artifactId>maven-deploy-plugin</artifactId>
471                                 <configuration>
472                                         <classifier>client</classifier>
473                                 </configuration>
474                         </plugin>
475                         <plugin>
476                                 <artifactId>maven-assembly-plugin</artifactId>
477                                 <configuration>
478                                         <descriptors>
479                                                 <descriptor>src/main/assembly/descriptor.xml</descriptor>
480                                         </descriptors>
481                                 </configuration>
482                                 <executions>
483                                         <execution>
484                                                 <id>make-assembly</id>
485                                                 <phase>package</phase>
486                                                 <goals>
487                                                         <goal>single</goal>
488                                                 </goals>
489                                         </execution>
490                                 </executions>
491                         </plugin>
492
493                         <!-- once we connect aai-parent or oparent 3.0+ we can take out this
494                              whole section -->
495
496                         <plugin>
497                                 <groupId>org.jacoco</groupId>
498                                 <artifactId>jacoco-maven-plugin</artifactId>
499                                 <version>${jacoco.version}</version>
500                                 <configuration>
501                                         <!-- Note: This exclusion list should match <sonar.exclusions> property
502                      above -->
503                                         <excludes>
504                                                 <exclude>**/gen/**</exclude>
505                                                 <exclude>**/generated-sources/**</exclude>
506                                                 <exclude>**/yang-gen/**</exclude>
507                                                 <exclude>**/pax/**</exclude>
508                                         </excludes>
509                                 </configuration>
510                                 <executions>
511                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
512                      is passed as VM argument when Maven the Surefire plugin is executed. -->
513                                         <execution>
514                                                 <id>pre-unit-test</id>
515                                                 <goals>
516                                                         <goal>prepare-agent</goal>
517                                                 </goals>
518                                                 <configuration>
519                                                         <!-- Sets the path to the file which contains the execution data
520                                  . -->
521                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
522                                                         <!-- Sets the name of the property containing the settings for JaCoCo
523                                  runtime agent. -->
524                                                         <propertyName>surefireArgLine</propertyName>
525                                                 </configuration>
526                                         </execution>
527                                         <!-- Ensures that the code coverage report for unit tests is created
528                      after unit tests have been run. -->
529                                         <execution>
530                                                 <id>post-unit-test</id>
531                                                 <phase>test</phase>
532                                                 <goals>
533                                                         <goal>report</goal>
534                                                 </goals>
535                                                 <configuration>
536                                                         <!-- Sets the path to the file which contains the execution data
537                                  . -->
538                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
539                                                         <!-- Sets the output directory for the code coverage report. -->
540                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
541                                                 </configuration>
542                                         </execution>
543                                         <execution>
544                                                 <id>pre-integration-test</id>
545                                                 <phase>pre-integration-test</phase>
546                                                 <goals>
547                                                         <goal>prepare-agent</goal>
548                                                 </goals>
549                                                 <configuration>
550                                                         <!-- Sets the path to the file which contains the execution data
551                                  . -->
552                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
553                                                         <!-- Sets the name of the property containing the settings for JaCoCo
554                                  runtime agent. -->
555                                                         <propertyName>failsafeArgLine</propertyName>
556                                                 </configuration>
557                                         </execution>
558                                         <!-- Ensures that the code coverage report for integration tests after
559                      integration tests have been run. -->
560                                         <execution>
561                                                 <id>post-integration-test</id>
562                                                 <phase>post-integration-test</phase>
563                                                 <goals>
564                                                         <goal>report</goal>
565                                                 </goals>
566                                                 <configuration>
567                                                         <!-- Sets the path to the file which contains the execution data
568                                  . -->
569                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
570                                                         <!-- Sets the output directory for the code coverage report. -->
571                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
572                                                 </configuration>
573                                         </execution>
574                                         <execution>
575                                                 <id>default-check</id>
576                                                 <goals>
577                                                         <goal>check</goal>
578                                                 </goals>
579                                                 <configuration>
580                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
581                                                         <rules>
582                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
583                                                                         <element>BUNDLE</element>
584                                                                         <limits>
585                                                                                 <limit implementation="org.jacoco.report.check.Limit">
586                                                                                         <counter>LINE</counter>
587                                                                                         <value>COVEREDRATIO</value>
588                                                                                         <minimum>${jacoco.line.coverage.limit}</minimum>
589                                                                                 </limit>
590                                                                         </limits>
591                                                                 </rule>
592                                                         </rules>
593                                                 </configuration>
594                                         </execution>
595                                 </executions>
596                         </plugin>
597                         <plugin>
598                                 <groupId>org.apache.maven.plugins</groupId>
599                                 <artifactId>maven-surefire-plugin</artifactId>
600                                 <version>3.1.2</version>
601                                 <configuration>
602                                         <!-- Sets the VM argument line used when unit tests are run. -->
603                                         <argLine>${surefireArgLine}</argLine>
604                                         <!-- Excludes integration tests when unit tests are run. -->
605                                         <excludes>
606                                                 <exclude>**/IT*.java</exclude>
607                                         </excludes>
608                                 </configuration>
609                         </plugin>
610                         <plugin>
611                                 <groupId>org.apache.maven.plugins</groupId>
612                                 <artifactId>maven-failsafe-plugin</artifactId>
613                                 <version>3.1.2</version>
614                                 <executions>
615                                         <!-- Ensures that both integration-test and verify goals of the Failsafe
616                      Maven plugin are executed. -->
617                                         <execution>
618                                                 <id>integration-tests</id>
619                                                 <goals>
620                                                         <goal>integration-test</goal>
621                                                         <goal>verify</goal>
622                                                 </goals>
623                                                 <configuration>
624                                                         <!-- Sets the VM argument line used when integration tests are run. -->
625                                                         <argLine>${failsafeArgLine}</argLine>
626                                                 </configuration>
627                                         </execution>
628                                 </executions>
629                         </plugin>
630                         <plugin>
631                                 <groupId>org.sonarsource.scanner.maven</groupId>
632                                 <artifactId>sonar-maven-plugin</artifactId>
633                                 <version>${sonar.scanner.version}</version>
634                         </plugin>
635                         <!-- end removable sonar config -->
636
637
638
639                 </plugins>
640         </build>
641 </project>