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