blob: ea59fe4d408a4ccbe89c7b31e2eb42c966998cb9 [file] [log] [blame]
Claudio David Gasparini70c17022020-10-26 10:12:10 +01001<?xml version="1.0" encoding="UTF-8"?>
Bruno Sakoto5c7c4892021-02-08 21:51:05 -05002<!--
3 ============LICENSE_START=======================================================
4 Copyright (c) 2021 Pantheon.tech.
5 Modifications Copyright (C) 2021 Bell Canada.
danielhanrahanc72a0132024-02-09 17:40:18 +00006 Modifications Copyright (C) 2021-2024 Nordix Foundation.
Bruno Sakoto5c7c4892021-02-08 21:51:05 -05007 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20-->
21
Claudio David Gasparini70c17022020-10-26 10:12:10 +010022<project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Claudio David Gasparini70c17022020-10-26 10:12:10 +010025
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010026 <!-- Project Metadata -->
27 <modelVersion>4.0.0</modelVersion>
Claudio David Gasparini70c17022020-10-26 10:12:10 +010028 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-parent</artifactId>
seanbeirne3587a622024-10-17 16:49:30 +010030 <version>3.5.5-SNAPSHOT</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +010031 <packaging>pom</packaging>
32
33 <properties>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010034 <!-- Set UTF-8 encoding for consistent builds across platforms -->
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
sourabh_sourabh1bb36392024-11-13 12:54:17 +000036 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010037 <!-- Application Configuration -->
38 <app>org.onap.cps.Application</app>
39
40 <!-- Parent Directory Configuration -->
41 <parent.directory>${project.basedir}/..</parent.directory>
42
43 <!-- Global properties for version management -->
44 <bug.pattern.version>1.5.0</bug.pattern.version>
45 <dependency.check.version>9.2.0</dependency.check.version>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +000046 <git.commit.id.version>9.0.1</git.commit.id.version>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010047 <gmavenplus.plugin.version>4.0.1</gmavenplus.plugin.version>
48 <jacoco.version>0.8.11</jacoco.version>
49 <java.version>17</java.version>
50 <jsonschema2pojo.maven.plugin.version>1.2.1</jsonschema2pojo.maven.plugin.version>
51 <maven.checkstyle.plugin.version>3.3.1</maven.checkstyle.plugin.version>
52 <maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
53 <maven.compiler.release>17</maven.compiler.release>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +000054 <maven.failsafe.plugin.version>3.5.2</maven.failsafe.plugin.version>
55 <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010056 <maven.site.plugin.version>4.0.0-M13</maven.site.plugin.version>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +000057 <maven.surefire.plugin.version>3.3.1</maven.surefire.plugin.version>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010058 <postgres.version>42.5.1</postgres.version>
59 <slf4j.simple.version>2.0.6</slf4j.simple.version>
60 <sonar.version>4.0.0.4121</sonar.version>
61 <spotbugs.plugin.version>4.8.6.4</spotbugs.plugin.version>
62 <spotbugs.version>4.8.6</spotbugs.version>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +000063 <spring.boot.maven.plugin.version>3.3.1</spring.boot.maven.plugin.version>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010064 <swagger.codegen.version>1.2.1</swagger.codegen.version>
65
66 <!-- Reporting paths and coverage -->
67 <jacoco.execFile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco.execFile>
68 <jacoco.outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</jacoco.outputDirectory>
Claudio David Gasparinid45b2dc2021-01-13 13:28:07 +010069 <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010070 <minimum-coverage>1.00</minimum-coverage>
Claudio David Gasparinid45b2dc2021-01-13 13:28:07 +010071 <sonar.coverage.jacoco.xmlReportPaths>
ToineSiebelink73001f62021-09-17 15:07:38 +010072 ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml
Claudio David Gasparinid45b2dc2021-01-13 13:28:07 +010073 </sonar.coverage.jacoco.xmlReportPaths>
Claudio David Gasparini70c17022020-10-26 10:12:10 +010074 </properties>
75
sourabh_sourabh1bb36392024-11-13 12:54:17 +000076 <distributionManagement>
77 <repository>
78 <id>ecomp-releases</id>
79 <url>${onap.nexus.url}/content/repositories/releases</url>
80 </repository>
81 <snapshotRepository>
82 <id>ecomp-snapshots</id>
83 <url>${onap.nexus.url}/content/repositories/snapshots</url>
84 </snapshotRepository>
85 </distributionManagement>
86
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010087 <!-- Dependency Management, Profiles, Build, and Plugins -->
88
89 <dependencyManagement>
90 <dependencies>
91 <dependency>
92 <groupId>org.onap.cps</groupId>
93 <artifactId>cps-dependencies</artifactId>
94 <version>${project.version}</version>
95 <type>pom</type>
96 <scope>import</scope>
97 </dependency>
98 <dependency>
99 <groupId>org.onap.cps</groupId>
100 <artifactId>cps-bom</artifactId>
101 <version>${project.version}</version>
102 <type>pom</type>
103 <scope>import</scope>
104 </dependency>
105 </dependencies>
106 </dependencyManagement>
107
DylanB95EST63132ce2021-12-14 16:34:38 +0000108 <profiles>
109 <profile>
110 <id>Windows</id>
111 <activation>
112 <os>
113 <family>Windows</family>
114 </os>
115 </activation>
116 <properties>
117 <script.executor>python</script.executor>
118 </properties>
119 </profile>
120 <profile>
121 <id>unix</id>
122 <activation>
123 <os>
124 <family>unix</family>
125 </os>
126 </activation>
127 <properties>
128 <script.executor>python3</script.executor>
129 </properties>
130 </profile>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100131 <profile>
132 <id>dependency-vulnerability-check</id>
133 <build>
134 <plugins>
135 <plugin>
136 <groupId>org.owasp</groupId>
137 <artifactId>dependency-check-maven</artifactId>
138 <version>${dependency.check.version}</version>
139 <executions>
140 <execution>
141 <goals>
142 <goal>aggregate</goal>
143 </goals>
144 </execution>
145 </executions>
146 </plugin>
147 </plugins>
148 </build>
149 </profile>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +0000150 <!-- Performance tests are run with maven-failsafe-plugin using a separate profile, so they will
151 not affect Jacoco coverage. Heap size is set here to ensure consistent test environment. -->
152 <profile>
153 <id>include-performance</id>
154 <properties>
155 <failsafeArgLine>-Xms512m -Xmx512m</failsafeArgLine>
156 </properties>
157 <build>
158 <plugins>
159 <plugin>
160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-failsafe-plugin</artifactId>
162 <version>${maven.failsafe.plugin.version}</version>
163 <configuration>
164 <includes>
165 <include>**/*PerfTest.java</include>
166 </includes>
167 </configuration>
168 <executions>
169 <execution>
170 <goals>
171 <goal>integration-test</goal>
172 <goal>verify</goal>
173 </goals>
174 </execution>
175 </executions>
176 </plugin>
177 </plugins>
178 </build>
179 </profile>
DylanB95EST63132ce2021-12-14 16:34:38 +0000180 </profiles>
181
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100182 <build>
183 <resources>
184 <resource>
185 <directory>src/main/resources</directory>
186 <filtering>true</filtering>
187 </resource>
188 <resource>
189 <directory>target/generated-sources/license</directory>
190 <includes>
191 <include>third-party-licenses.txt</include>
192 </includes>
193 </resource>
194 <resource>
195 <directory>target/generated-resources/licenses</directory>
196 <includes>
197 <include>*.*</include>
198 </includes>
199 <targetPath>third-party-licenses</targetPath>
200 </resource>
201 </resources>
202 <pluginManagement>
203 <plugins>
204 <plugin>
205 <groupId>org.springframework.boot</groupId>
206 <artifactId>spring-boot-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100207 <version>${spring.boot.maven.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100208 <executions>
209 <execution>
210 <goals>
211 <goal>repackage</goal>
212 </goals>
213 </execution>
214 </executions>
215 </plugin>
Bruno Sakoto6c347182021-07-22 15:25:23 -0400216 <plugin>
mpriyankff991392024-10-16 11:59:49 +0100217 <groupId>io.github.git-commit-id</groupId>
218 <artifactId>git-commit-id-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100219 <version>${git.commit.id.version}</version>
mpriyankff991392024-10-16 11:59:49 +0100220 <executions>
221 <execution>
222 <id>get-git-info</id>
223 <goals>
224 <goal>revision</goal>
225 </goals>
226 <phase>package</phase>
227 </execution>
228 </executions>
229 </plugin>
puthuparambil.aditya47598112020-11-02 11:31:39 +0000230 <!-- Swagger code generation. -->
231 <plugin>
232 <groupId>io.swagger.codegen.v3</groupId>
233 <artifactId>swagger-codegen-maven-plugin</artifactId>
Renu Kumari4d520012021-08-30 11:50:43 -0400234 <executions>
235 <execution>
236 <id>openapi-yaml-gen</id>
237 <goals>
238 <goal>generate</goal>
239 </goals>
240 <phase>compile</phase>
241 <configuration>
242 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
243 <language>openapi-yaml</language>
244 </configuration>
245 </execution>
246 </executions>
puthuparambil.aditya47598112020-11-02 11:31:39 +0000247 </plugin>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100248 <plugin>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100249 <groupId>com.github.spotbugs</groupId>
250 <artifactId>spotbugs-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100251 <version>${spotbugs.plugin.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100252 <dependencies>
253 <dependency>
254 <groupId>com.github.spotbugs</groupId>
255 <artifactId>spotbugs</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100256 <version>${spotbugs.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100257 </dependency>
258 <dependency>
259 <groupId>${project.groupId}</groupId>
260 <artifactId>spotbugs</artifactId>
261 <version>${project.version}</version>
262 </dependency>
263 <dependency>
264 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
265 <groupId>org.slf4j</groupId>
266 <artifactId>slf4j-simple</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100267 <version>${slf4j.simple.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100268 </dependency>
269 </dependencies>
270 <configuration>
271 <plugins>
272 <plugin>
273 <groupId>jp.skypencil.findbugs.slf4j</groupId>
274 <artifactId>bug-pattern</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100275 <version>${bug.pattern.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100276 </plugin>
277 </plugins>
278 <!--
279 Enables analysis which takes more memory but finds more bugs.
280 If you run out of memory, changes the value of the effort element
281 to 'Low'.
282 -->
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400283 <addSourceDirs>true</addSourceDirs>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100284 <effort>Max</effort>
285 <!-- Reports all bugs (other values are medium and max) -->
286 <threshold>Low</threshold>
287 <!-- Build doesn't fail if problems are found -->
Claudio David Gasparini9afc8d12021-01-11 16:42:30 +0100288 <failOnError>true</failOnError>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100289 <!-- References the excluded rules -->
290 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
291 <!-- Produces XML report -->
292 <xmlOutput>true</xmlOutput>
293 <!-- Configures the directory in which the XML report is created -->
294 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
295 </configuration>
296 <executions>
297 <!--
298 Ensures that SpotBugs inspects source code when project is compiled.
299 -->
300 <execution>
301 <id>analyze-compile</id>
302 <phase>compile</phase>
303 <goals>
304 <goal>check</goal>
305 </goals>
306 </execution>
307 </executions>
308 </plugin>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400309 <plugin>
310 <groupId>org.jsonschema2pojo</groupId>
311 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100312 <version>${jsonschema2pojo.maven.plugin.version}</version>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400313 <configuration>
314 <targetVersion>${java.version}</targetVersion>
315 </configuration>
316 <executions>
317 <execution>
318 <goals>
319 <goal>generate</goal>
320 </goals>
321 </execution>
322 </executions>
323 </plugin>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100324 </plugins>
325 </pluginManagement>
326 <plugins>
327 <plugin>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-compiler-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100330 <version>${maven.compiler.plugin.version}</version>
331 <configuration>
332 <encoding>${project.build.sourceEncoding}</encoding>
333 </configuration>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-checkstyle-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100338 <version>${maven.checkstyle.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100339 <executions>
340 <execution>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100341 <id>onap-license</id>
342 <goals>
343 <goal>check</goal>
344 </goals>
345 <phase>process-sources</phase>
346 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100347 <configLocation>cps-checkstyle/check-license.xml</configLocation>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100348 <includeResources>false</includeResources>
349 <includeTestSourceDirectory>true</includeTestSourceDirectory>
350 <includeTestResources>false</includeTestResources>
351 <sourceDirectories>
352 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
353 </sourceDirectories>
354 <consoleOutput>false</consoleOutput>
355 <violationSeverity>warning</violationSeverity>
356 <failOnViolation>true</failOnViolation>
357 </configuration>
358 </execution>
359 <execution>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100360 <id>cps-java-style</id>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100361 <goals>
362 <goal>check</goal>
363 </goals>
364 <phase>process-sources</phase>
365 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100366 <configLocation>cps-checkstyle/cps-java-style.xml</configLocation>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100367 <sourceDirectories>
368 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
369 </sourceDirectories>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100370 <includeResources>true</includeResources>
371 <includeTestSourceDirectory>true</includeTestSourceDirectory>
372 <includeTestResources>true</includeTestResources>
373 <consoleOutput>false</consoleOutput>
374 <violationSeverity>warning</violationSeverity>
375 <failOnViolation>true</failOnViolation>
376 </configuration>
377 </execution>
378 </executions>
379 <dependencies>
380 <dependency>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100381 <groupId>${project.groupId}</groupId>
382 <artifactId>checkstyle</artifactId>
383 <version>${project.version}</version>
384 </dependency>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100385 </dependencies>
386 </plugin>
387 <!-- Mandatory plugins for using Spock -->
388 <plugin>
389 <!-- The gmavenplus plugin is used to compile Groovy code.
390 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
391 <groupId>org.codehaus.gmavenplus</groupId>
392 <artifactId>gmavenplus-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100393 <version>${gmavenplus.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100394 <executions>
395 <execution>
396 <goals>
397 <goal>compileTests</goal>
398 </goals>
399 </execution>
400 </executions>
401 </plugin>
402 <!-- Required because names of spec classes don't match default
403 Surefire patterns (`*Test` etc.) -->
404 <plugin>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-surefire-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100407 <version>${maven.surefire.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100408 <configuration>
puthuparambil.aditya008c0ad2020-12-14 15:46:30 +0000409 <!--suppress UnresolvedMavenProperty -->
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100410 <argLine>${surefireArgLine}</argLine>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100411 <useFile>false</useFile>
412 <includes>
413 <include>**/*Spec.java</include>
414 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->
415 </includes>
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100416 <excludes>
danielhanrahanc72a0132024-02-09 17:40:18 +0000417 <!-- maven-failsafe-plugin will run performance tests in the integration-test module,
418 so performance tests will not affect Jacoco coverage (jacoco-report module is configured
419 to aggregate results from tests run with maven-surefire-plugin only) -->
420 <exclude>**/*PerfTest.java</exclude>
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100421 </excludes>
Ruslan Kashapovbf02f202020-12-17 10:38:53 +0200422 <environmentVariables>
423 <!--
424 disable privileged container usage to cleanup the test containers;
425 these will be removed automatically on jvm termination;
426 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
427 -->
428 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
Renu Kumariff52b942021-05-27 23:16:32 -0400429 <TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>${docker.pull.registry}/</TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>
Ruslan Kashapovbf02f202020-12-17 10:38:53 +0200430 </environmentVariables>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100431 </configuration>
432 </plugin>
Claudio David Gasparini900ba022020-11-08 22:18:36 +0100433 <plugin>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100434 <groupId>org.jacoco</groupId>
435 <artifactId>jacoco-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100436 <version>${jacoco.version}</version>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400437 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100438 <!-- Exclude all generated classes or specific patterns if necessary -->
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400439 <excludes>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100440 <exclude>org/onap/cps/events/model/*</exclude>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400441 <exclude>org/onap/cps/rest/model/*</exclude>
442 <exclude>org/onap/cps/cpspath/parser/antlr4/*</exclude>
DylanB95EST4f4178c2021-07-02 13:30:42 +0100443 <exclude>org/onap/cps/ncmp/rest/model/*</exclude>
ToineSiebelink7fcffe52023-07-24 12:23:05 +0100444 <exclude>org/onap/cps/**/*MapperImpl.class</exclude>
445 <exclude>org/onap/cps/ncmp/rest/stub/*</exclude>
ToineSiebelinkd7914bc2024-07-04 15:15:36 +0100446 <exclude>org/onap/cps/policyexecutor/stub/model/*</exclude>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100447 <exclude>**/pom.xml</exclude>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400448 </excludes>
449 </configuration>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100450 <executions>
451 <execution>
452 <id>default-prepare-agent</id>
453 <goals>
454 <goal>prepare-agent</goal>
455 </goals>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100456 <configuration>
457 <destFile>${jacoco.execFile}</destFile>
458 <propertyName>surefireArgLine</propertyName>
459 </configuration>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100460 </execution>
461 <execution>
462 <id>coverage-check</id>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100463 <phase>test</phase>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100464 <goals>
465 <goal>check</goal>
466 </goals>
467 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100468 <dataFile>${jacoco.execFile}</dataFile>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100469 <rules>
470 <rule>
471 <element>BUNDLE</element>
472 <limits>
473 <limit>
474 <counter>INSTRUCTION</counter>
475 <value>COVEREDRATIO</value>
476 <minimum>${minimum-coverage}</minimum>
477 </limit>
478 </limits>
479 </rule>
480 </rules>
481 </configuration>
482 </execution>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100483 <execution>
484 <id>post-unit-test</id>
485 <phase>test</phase>
486 <goals>
487 <goal>report</goal>
488 </goals>
489 <configuration>
sourabh_sourabh1bb36392024-11-13 12:54:17 +0000490 <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100491 <!-- Sets the path to the file which contains the execution data. -->
492 <dataFile>${jacoco.execFile}</dataFile>
493 <!-- Sets the output directory for the code coverage report. -->
494 <outputDirectory>${jacoco.outputDirectory}</outputDirectory>
495 </configuration>
496 </execution>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100497 </executions>
Claudio David Gasparini900ba022020-11-08 22:18:36 +0100498 </plugin>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100499
500 <!-- Sonar Plugin for Code Quality -->
Claudio David Gasparini7492aea2021-01-13 08:34:00 +0100501 <plugin>
502 <groupId>org.sonarsource.scanner.maven</groupId>
503 <artifactId>sonar-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100504 <version>${sonar.version}</version>
505 </plugin>
506
507 <!-- Maven Site Plugin for Site Generation -->
508 <plugin>
509 <groupId>org.apache.maven.plugins</groupId>
510 <artifactId>maven-site-plugin</artifactId>
511 <version>${maven.site.plugin.version}</version>
512 <executions>
513 <execution>
514 <id>default-site</id>
515 <phase>site</phase>
516 <goals><goal>site</goal></goals>
517 </execution>
518 </executions>
Claudio David Gasparini7492aea2021-01-13 08:34:00 +0100519 </plugin>
sourabh_sourabh1bb36392024-11-13 12:54:17 +0000520 <plugin>
521 <groupId>org.apache.maven.plugins</groupId>
522 <artifactId>maven-deploy-plugin</artifactId>
523 <version>3.1.2</version>
524 </plugin>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100525 </plugins>
526 </build>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100527</project>