Add tracing to 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>2.1.0</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.13.5-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.4.13</spring-boot.version>
62                 <spring-cloud.version>2020.0.2</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                 <hamcrest-all.version>1.3</hamcrest-all.version>
66                 <babel.version>1.9.5</babel.version>
67                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
68                 <sdc-distribution-client.version>2.0.0</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.apache.kafka</groupId>
243                         <artifactId>kafka-clients</artifactId>
244                         <version>3.3.1</version>
245                 </dependency>
246                 <dependency>
247                         <groupId>org.onap.aai</groupId>
248                         <artifactId>babel</artifactId>
249                         <version>${babel.version}</version>
250                         <classifier>client</classifier>
251                         <exclusions>
252                                 <exclusion>
253                                         <groupId>*</groupId>
254                                         <artifactId>*</artifactId>
255                                 </exclusion>
256                         </exclusions>
257                 </dependency>
258                 <dependency>
259                         <groupId>org.glassfish.jersey.core</groupId>
260                         <artifactId>jersey-common</artifactId>
261                         <scope>test</scope>
262                 </dependency>
263                 <dependency>
264                         <groupId>org.onap.aai</groupId>
265                         <artifactId>rest-client</artifactId>
266                         <version>${aai.rest.client.version}</version>
267                 </dependency>
268                 <dependency>
269                         <groupId>com.google.code.gson</groupId>
270                         <artifactId>gson</artifactId>
271                 </dependency>
272
273                 <!-- Test dependencies -->
274                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
275                 <dependency>
276                         <groupId>com.mikesamuel</groupId>
277                         <artifactId>json-sanitizer</artifactId>
278                         <version>1.2.0</version>
279                 </dependency>
280
281                 <!-- Common logging framework -->
282                 <dependency>
283                         <groupId>org.onap.aai.logging-service</groupId>
284                         <artifactId>common-logging</artifactId>
285                         <version>1.5.0</version>
286                 </dependency>
287                 <dependency>
288                         <groupId>ch.qos.logback</groupId>
289                         <artifactId>logback-classic</artifactId>
290                         <version>${logback.version}</version>
291                         <!--$NO-MVN-MAN-VER$ -->
292                 </dependency>
293                 <dependency>
294                         <groupId>ch.qos.logback</groupId>
295                         <artifactId>logback-core</artifactId>
296                         <version>${logback.version}</version>
297                         <!--$NO-MVN-MAN-VER$ -->
298                 </dependency>
299                 <dependency>
300                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
301                         <artifactId>sdc-distribution-client</artifactId>
302                         <version>${sdc-distribution-client.version}</version>
303                 </dependency>
304                 <dependency>
305                         <groupId>org.json</groupId>
306                         <artifactId>json</artifactId>
307                         <version>20131018</version>
308                         <!--$NO-MVN-MAN-VER$ -->
309                 </dependency>
310                 <dependency>
311                         <groupId>org.eclipse.jetty</groupId>
312                         <artifactId>jetty-security</artifactId>
313                 </dependency>
314                 <dependency>
315                         <groupId>jline</groupId>
316                         <artifactId>jline</artifactId>
317                         <version>2.12.1</version>
318                 </dependency>
319                 <dependency>
320                         <groupId>org.apache.commons</groupId>
321                         <artifactId>commons-compress</artifactId>
322                         <version>${commons-compress.version}</version>
323                 </dependency>
324                 <dependency>
325                         <groupId>commons-io</groupId>
326                         <artifactId>commons-io</artifactId>
327                         <version>2.11.0</version>
328                 </dependency>
329                 <dependency>
330                         <groupId>org.apache.commons</groupId>
331                         <artifactId>commons-text</artifactId>
332                         <version>${apache.commons-text.version}</version>
333                 </dependency>
334                 <dependency>
335                         <groupId>org.springframework.cloud</groupId>
336                         <artifactId>spring-cloud-starter-sleuth</artifactId>
337                 </dependency>
338                 <dependency>
339                                 <groupId>org.springframework.cloud</groupId>
340                                 <artifactId>spring-cloud-sleuth-zipkin</artifactId>
341                 </dependency>
342
343                 <!-- Test dependencies -->
344                 <dependency>
345                         <groupId>org.hamcrest</groupId>
346                         <artifactId>hamcrest-all</artifactId>
347                         <version>${hamcrest-all.version}</version>
348                         <scope>test</scope>
349                 </dependency>
350                 <dependency>
351                         <groupId>org.junit.jupiter</groupId>
352                         <artifactId>junit-jupiter</artifactId>
353                         <scope>test</scope>
354                 </dependency>
355                 <dependency>
356                         <groupId>org.junit.jupiter</groupId>
357                         <artifactId>junit-jupiter-api</artifactId>
358                         <scope>test</scope>
359                 </dependency>
360                 <dependency>
361                         <groupId>org.mockito</groupId>
362                         <artifactId>mockito-core</artifactId>
363                         <scope>test</scope>
364                 </dependency>
365                 <dependency>
366                         <groupId>org.springframework.boot</groupId>
367                         <artifactId>spring-boot-starter-test</artifactId>
368                         <scope>test</scope>
369                 </dependency>
370         </dependencies>
371
372         <!-- Plugins and repositories -->
373         <pluginRepositories>
374                 <pluginRepository>
375                         <id>central</id>
376                         <url>https://repo1.maven.org/maven2</url>
377                 </pluginRepository>
378                 <pluginRepository>
379                         <id>EvoSuite</id>
380                         <name>EvoSuite Repository</name>
381                         <url>https://www.evosuite.org/m2</url>
382                 </pluginRepository>
383         </pluginRepositories>
384
385         <repositories>
386                 <repository>
387                         <id>central</id>
388                         <name>Maven 2 repository 2</name>
389                         <url>https://repo2.maven.org/maven2/</url>
390                 </repository>
391                 <repository>
392                         <id>ecomp-releases</id>
393                         <name>ECOMP Release Repository</name>
394                         <url>${nexusproxy}/content/repositories/releases/</url>
395                 </repository>
396                 <repository>
397                         <id>ecomp-snapshots</id>
398                         <name>ECOMP Snapshot Repository</name>
399                         <url>${nexusproxy}/content/repositories/snapshots/</url>
400                 </repository>
401                 <repository>
402                         <id>ecomp-staging</id>
403                         <name>ECOMP Staging Repository</name>
404                         <url>${nexusproxy}/content/repositories/staging/</url>
405                 </repository>
406         </repositories>
407
408         <build>
409                 <plugins>
410                         <plugin>
411                                 <groupId>org.apache.maven.plugins</groupId>
412                                 <artifactId>maven-compiler-plugin</artifactId>
413                                 <version>${maven-compiler-plugin.version}</version>
414                                 <inherited>true</inherited>
415                                 <configuration>
416                                         <source>${maven-compiler-plugin.source}</source>
417                                         <target>${maven-compiler-plugin.target}</target>
418                                         <testSource>${maven-compiler-plugin.test.source}</testSource>
419                                         <testTarget>${maven-compiler-plugin.test.target}</testTarget>
420                                 </configuration>
421                         </plugin>
422                         <plugin>
423                                 <groupId>org.springframework.boot</groupId>
424                                 <artifactId>spring-boot-maven-plugin</artifactId>
425                                 <version>${spring-boot.version}</version>
426                                 <configuration>
427                                         <executable>true</executable>
428                                 </configuration>
429                                 <executions>
430                                         <execution>
431                                                 <goals>
432                                                         <goal>repackage</goal>
433                                                 </goals>
434                                         </execution>
435                                 </executions>
436                         </plugin>
437                         <plugin>
438                                 <groupId>com.mycila</groupId>
439                                 <artifactId>license-maven-plugin</artifactId>
440                                 <version>3.0</version>
441                                 <configuration>
442                                         <header>License.txt</header>
443                                         <includes>
444                                                 <include>src/main/java/**</include>
445                                                 <include>src/test/java/**</include>
446                                                 <include>version/properties</include>
447                                                 <include>pom.xml</include>
448                                         </includes>
449                                         <skipExistingHeaders>true</skipExistingHeaders>
450                                 </configuration>
451                                 <executions>
452                                         <execution>
453                                                 <goals>
454                                                         <!-- Set goal to "format" to auto update license headers -->
455                                                         <goal>check</goal>
456                                                 </goals>
457                                                 <phase>process-sources</phase>
458                                         </execution>
459                                 </executions>
460                         </plugin>
461                         <plugin>
462                                 <groupId>org.apache.maven.plugins</groupId>
463                                 <artifactId>maven-deploy-plugin</artifactId>
464                                 <configuration>
465                                         <classifier>client</classifier>
466                                 </configuration>
467                         </plugin>
468                         <plugin>
469                                 <artifactId>maven-assembly-plugin</artifactId>
470                                 <configuration>
471                                         <descriptors>
472                                                 <descriptor>src/main/assembly/descriptor.xml</descriptor>
473                                         </descriptors>
474                                 </configuration>
475                                 <executions>
476                                         <execution>
477                                                 <id>make-assembly</id>
478                                                 <phase>package</phase>
479                                                 <goals>
480                                                         <goal>single</goal>
481                                                 </goals>
482                                         </execution>
483                                 </executions>
484                         </plugin>
485
486                         <!-- once we connect aai-parent or oparent 3.0+ we can take out this
487                              whole section -->
488
489                         <plugin>
490                                 <groupId>org.jacoco</groupId>
491                                 <artifactId>jacoco-maven-plugin</artifactId>
492                                 <version>${jacoco.version}</version>
493                                 <configuration>
494                                         <!-- Note: This exclusion list should match <sonar.exclusions> property
495                      above -->
496                                         <excludes>
497                                                 <exclude>**/gen/**</exclude>
498                                                 <exclude>**/generated-sources/**</exclude>
499                                                 <exclude>**/yang-gen/**</exclude>
500                                                 <exclude>**/pax/**</exclude>
501                                         </excludes>
502                                 </configuration>
503                                 <executions>
504                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
505                      is passed as VM argument when Maven the Surefire plugin is executed. -->
506                                         <execution>
507                                                 <id>pre-unit-test</id>
508                                                 <goals>
509                                                         <goal>prepare-agent</goal>
510                                                 </goals>
511                                                 <configuration>
512                                                         <!-- Sets the path to the file which contains the execution data
513                                  . -->
514                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
515                                                         <!-- Sets the name of the property containing the settings for JaCoCo
516                                  runtime agent. -->
517                                                         <propertyName>surefireArgLine</propertyName>
518                                                 </configuration>
519                                         </execution>
520                                         <!-- Ensures that the code coverage report for unit tests is created
521                      after unit tests have been run. -->
522                                         <execution>
523                                                 <id>post-unit-test</id>
524                                                 <phase>test</phase>
525                                                 <goals>
526                                                         <goal>report</goal>
527                                                 </goals>
528                                                 <configuration>
529                                                         <!-- Sets the path to the file which contains the execution data
530                                  . -->
531                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
532                                                         <!-- Sets the output directory for the code coverage report. -->
533                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
534                                                 </configuration>
535                                         </execution>
536                                         <execution>
537                                                 <id>pre-integration-test</id>
538                                                 <phase>pre-integration-test</phase>
539                                                 <goals>
540                                                         <goal>prepare-agent</goal>
541                                                 </goals>
542                                                 <configuration>
543                                                         <!-- Sets the path to the file which contains the execution data
544                                  . -->
545                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
546                                                         <!-- Sets the name of the property containing the settings for JaCoCo
547                                  runtime agent. -->
548                                                         <propertyName>failsafeArgLine</propertyName>
549                                                 </configuration>
550                                         </execution>
551                                         <!-- Ensures that the code coverage report for integration tests after
552                      integration tests have been run. -->
553                                         <execution>
554                                                 <id>post-integration-test</id>
555                                                 <phase>post-integration-test</phase>
556                                                 <goals>
557                                                         <goal>report</goal>
558                                                 </goals>
559                                                 <configuration>
560                                                         <!-- Sets the path to the file which contains the execution data
561                                  . -->
562                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
563                                                         <!-- Sets the output directory for the code coverage report. -->
564                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
565                                                 </configuration>
566                                         </execution>
567                                         <execution>
568                                                 <id>default-check</id>
569                                                 <goals>
570                                                         <goal>check</goal>
571                                                 </goals>
572                                                 <configuration>
573                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
574                                                         <rules>
575                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
576                                                                         <element>BUNDLE</element>
577                                                                         <limits>
578                                                                                 <limit implementation="org.jacoco.report.check.Limit">
579                                                                                         <counter>LINE</counter>
580                                                                                         <value>COVEREDRATIO</value>
581                                                                                         <minimum>${jacoco.line.coverage.limit}</minimum>
582                                                                                 </limit>
583                                                                         </limits>
584                                                                 </rule>
585                                                         </rules>
586                                                 </configuration>
587                                         </execution>
588                                 </executions>
589                         </plugin>
590                         <plugin>
591                                 <groupId>org.apache.maven.plugins</groupId>
592                                 <artifactId>maven-surefire-plugin</artifactId>
593                                 <version>3.0.0-M4</version>
594                                 <configuration>
595                                         <!-- Sets the VM argument line used when unit tests are run. -->
596                                         <argLine>${surefireArgLine}</argLine>
597                                         <!-- Excludes integration tests when unit tests are run. -->
598                                         <excludes>
599                                                 <exclude>**/IT*.java</exclude>
600                                         </excludes>
601                                 </configuration>
602                         </plugin>
603                         <plugin>
604                                 <groupId>org.apache.maven.plugins</groupId>
605                                 <artifactId>maven-failsafe-plugin</artifactId>
606                                 <version>3.0.0-M4</version>
607                                 <executions>
608                                         <!-- Ensures that both integration-test and verify goals of the Failsafe
609                      Maven plugin are executed. -->
610                                         <execution>
611                                                 <id>integration-tests</id>
612                                                 <goals>
613                                                         <goal>integration-test</goal>
614                                                         <goal>verify</goal>
615                                                 </goals>
616                                                 <configuration>
617                                                         <!-- Sets the VM argument line used when integration tests are run. -->
618                                                         <argLine>${failsafeArgLine}</argLine>
619                                                 </configuration>
620                                         </execution>
621                                 </executions>
622                         </plugin>
623                         <plugin>
624                                 <groupId>org.sonarsource.scanner.maven</groupId>
625                                 <artifactId>sonar-maven-plugin</artifactId>
626                                 <version>${sonar.scanner.version}</version>
627                         </plugin>
628                         <!-- end removable sonar config -->
629
630
631
632                 </plugins>
633         </build>
634 </project>