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