blob: 18c414c7546f915029aa70e9c9c7caed82ffc4e8 [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>
egernug7cd33c32024-11-29 12:49:10 +000030 <version>3.5.6-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>
sourabh_sourabh00da0af2024-11-13 13:42:42 +000074
75 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
76 <nexusproxy>https://nexus.onap.org</nexusproxy>
77 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
78 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
Claudio David Gasparini70c17022020-10-26 10:12:10 +010079 </properties>
80
sourabh_sourabh1bb36392024-11-13 12:54:17 +000081 <distributionManagement>
82 <repository>
83 <id>ecomp-releases</id>
sourabh_sourabh00da0af2024-11-13 13:42:42 +000084 <name>ECOMP Release Repository</name>
85 <url>${onap.nexus.url}${releaseNexusPath}</url>
sourabh_sourabh1bb36392024-11-13 12:54:17 +000086 </repository>
87 <snapshotRepository>
88 <id>ecomp-snapshots</id>
sourabh_sourabh00da0af2024-11-13 13:42:42 +000089 <name>ECOMP Snapshot Repository</name>
90 <url>${onap.nexus.url}${snapshotNexusPath}</url>
sourabh_sourabh1bb36392024-11-13 12:54:17 +000091 </snapshotRepository>
92 </distributionManagement>
93
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +010094 <!-- Dependency Management, Profiles, Build, and Plugins -->
95
96 <dependencyManagement>
97 <dependencies>
98 <dependency>
99 <groupId>org.onap.cps</groupId>
100 <artifactId>cps-dependencies</artifactId>
101 <version>${project.version}</version>
102 <type>pom</type>
103 <scope>import</scope>
104 </dependency>
105 <dependency>
106 <groupId>org.onap.cps</groupId>
107 <artifactId>cps-bom</artifactId>
108 <version>${project.version}</version>
109 <type>pom</type>
110 <scope>import</scope>
111 </dependency>
112 </dependencies>
113 </dependencyManagement>
114
DylanB95EST63132ce2021-12-14 16:34:38 +0000115 <profiles>
116 <profile>
117 <id>Windows</id>
118 <activation>
119 <os>
120 <family>Windows</family>
121 </os>
122 </activation>
123 <properties>
124 <script.executor>python</script.executor>
125 </properties>
126 </profile>
127 <profile>
128 <id>unix</id>
129 <activation>
130 <os>
131 <family>unix</family>
132 </os>
133 </activation>
134 <properties>
135 <script.executor>python3</script.executor>
136 </properties>
137 </profile>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100138 <profile>
139 <id>dependency-vulnerability-check</id>
140 <build>
141 <plugins>
142 <plugin>
143 <groupId>org.owasp</groupId>
144 <artifactId>dependency-check-maven</artifactId>
145 <version>${dependency.check.version}</version>
146 <executions>
147 <execution>
148 <goals>
149 <goal>aggregate</goal>
150 </goals>
151 </execution>
152 </executions>
153 </plugin>
154 </plugins>
155 </build>
156 </profile>
sourabh_sourabhea5b0a82024-11-11 16:40:59 +0000157 <!-- Performance tests are run with maven-failsafe-plugin using a separate profile, so they will
158 not affect Jacoco coverage. Heap size is set here to ensure consistent test environment. -->
159 <profile>
160 <id>include-performance</id>
161 <properties>
162 <failsafeArgLine>-Xms512m -Xmx512m</failsafeArgLine>
163 </properties>
164 <build>
165 <plugins>
166 <plugin>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-failsafe-plugin</artifactId>
169 <version>${maven.failsafe.plugin.version}</version>
170 <configuration>
171 <includes>
172 <include>**/*PerfTest.java</include>
173 </includes>
174 </configuration>
175 <executions>
176 <execution>
177 <goals>
178 <goal>integration-test</goal>
179 <goal>verify</goal>
180 </goals>
181 </execution>
182 </executions>
183 </plugin>
184 </plugins>
185 </build>
186 </profile>
DylanB95EST63132ce2021-12-14 16:34:38 +0000187 </profiles>
188
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100189 <build>
190 <resources>
191 <resource>
192 <directory>src/main/resources</directory>
193 <filtering>true</filtering>
194 </resource>
195 <resource>
196 <directory>target/generated-sources/license</directory>
197 <includes>
198 <include>third-party-licenses.txt</include>
199 </includes>
200 </resource>
201 <resource>
202 <directory>target/generated-resources/licenses</directory>
203 <includes>
204 <include>*.*</include>
205 </includes>
206 <targetPath>third-party-licenses</targetPath>
207 </resource>
208 </resources>
209 <pluginManagement>
210 <plugins>
211 <plugin>
212 <groupId>org.springframework.boot</groupId>
213 <artifactId>spring-boot-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100214 <version>${spring.boot.maven.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100215 <executions>
216 <execution>
217 <goals>
218 <goal>repackage</goal>
219 </goals>
220 </execution>
221 </executions>
222 </plugin>
Bruno Sakoto6c347182021-07-22 15:25:23 -0400223 <plugin>
mpriyankff991392024-10-16 11:59:49 +0100224 <groupId>io.github.git-commit-id</groupId>
225 <artifactId>git-commit-id-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100226 <version>${git.commit.id.version}</version>
mpriyankff991392024-10-16 11:59:49 +0100227 <executions>
228 <execution>
229 <id>get-git-info</id>
230 <goals>
231 <goal>revision</goal>
232 </goals>
233 <phase>package</phase>
234 </execution>
235 </executions>
236 </plugin>
puthuparambil.aditya47598112020-11-02 11:31:39 +0000237 <!-- Swagger code generation. -->
238 <plugin>
239 <groupId>io.swagger.codegen.v3</groupId>
240 <artifactId>swagger-codegen-maven-plugin</artifactId>
Renu Kumari4d520012021-08-30 11:50:43 -0400241 <executions>
242 <execution>
243 <id>openapi-yaml-gen</id>
244 <goals>
245 <goal>generate</goal>
246 </goals>
247 <phase>compile</phase>
248 <configuration>
249 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
250 <language>openapi-yaml</language>
251 </configuration>
252 </execution>
253 </executions>
puthuparambil.aditya47598112020-11-02 11:31:39 +0000254 </plugin>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100255 <plugin>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100256 <groupId>com.github.spotbugs</groupId>
257 <artifactId>spotbugs-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100258 <version>${spotbugs.plugin.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100259 <dependencies>
260 <dependency>
261 <groupId>com.github.spotbugs</groupId>
262 <artifactId>spotbugs</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100263 <version>${spotbugs.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100264 </dependency>
265 <dependency>
266 <groupId>${project.groupId}</groupId>
267 <artifactId>spotbugs</artifactId>
268 <version>${project.version}</version>
269 </dependency>
270 <dependency>
271 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
272 <groupId>org.slf4j</groupId>
273 <artifactId>slf4j-simple</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100274 <version>${slf4j.simple.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100275 </dependency>
276 </dependencies>
277 <configuration>
278 <plugins>
279 <plugin>
280 <groupId>jp.skypencil.findbugs.slf4j</groupId>
281 <artifactId>bug-pattern</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100282 <version>${bug.pattern.version}</version>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100283 </plugin>
284 </plugins>
285 <!--
286 Enables analysis which takes more memory but finds more bugs.
287 If you run out of memory, changes the value of the effort element
288 to 'Low'.
289 -->
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400290 <addSourceDirs>true</addSourceDirs>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100291 <effort>Max</effort>
292 <!-- Reports all bugs (other values are medium and max) -->
293 <threshold>Low</threshold>
294 <!-- Build doesn't fail if problems are found -->
Claudio David Gasparini9afc8d12021-01-11 16:42:30 +0100295 <failOnError>true</failOnError>
Claudio David Gasparini9f93f792020-12-18 14:37:27 +0100296 <!-- References the excluded rules -->
297 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
298 <!-- Produces XML report -->
299 <xmlOutput>true</xmlOutput>
300 <!-- Configures the directory in which the XML report is created -->
301 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
302 </configuration>
303 <executions>
304 <!--
305 Ensures that SpotBugs inspects source code when project is compiled.
306 -->
307 <execution>
308 <id>analyze-compile</id>
309 <phase>compile</phase>
310 <goals>
311 <goal>check</goal>
312 </goals>
313 </execution>
314 </executions>
315 </plugin>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400316 <plugin>
317 <groupId>org.jsonschema2pojo</groupId>
318 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100319 <version>${jsonschema2pojo.maven.plugin.version}</version>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400320 <configuration>
321 <targetVersion>${java.version}</targetVersion>
322 </configuration>
323 <executions>
324 <execution>
325 <goals>
326 <goal>generate</goal>
327 </goals>
328 </execution>
329 </executions>
330 </plugin>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100331 </plugins>
332 </pluginManagement>
333 <plugins>
334 <plugin>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-compiler-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100337 <version>${maven.compiler.plugin.version}</version>
338 <configuration>
339 <encoding>${project.build.sourceEncoding}</encoding>
340 </configuration>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100341 </plugin>
342 <plugin>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-checkstyle-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100345 <version>${maven.checkstyle.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100346 <executions>
347 <execution>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100348 <id>onap-license</id>
349 <goals>
350 <goal>check</goal>
351 </goals>
352 <phase>process-sources</phase>
353 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100354 <configLocation>cps-checkstyle/check-license.xml</configLocation>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100355 <includeResources>false</includeResources>
356 <includeTestSourceDirectory>true</includeTestSourceDirectory>
357 <includeTestResources>false</includeTestResources>
358 <sourceDirectories>
359 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
360 </sourceDirectories>
361 <consoleOutput>false</consoleOutput>
362 <violationSeverity>warning</violationSeverity>
363 <failOnViolation>true</failOnViolation>
364 </configuration>
365 </execution>
366 <execution>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100367 <id>cps-java-style</id>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100368 <goals>
369 <goal>check</goal>
370 </goals>
371 <phase>process-sources</phase>
372 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100373 <configLocation>cps-checkstyle/cps-java-style.xml</configLocation>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100374 <sourceDirectories>
375 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
376 </sourceDirectories>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100377 <includeResources>true</includeResources>
378 <includeTestSourceDirectory>true</includeTestSourceDirectory>
379 <includeTestResources>true</includeTestResources>
380 <consoleOutput>false</consoleOutput>
381 <violationSeverity>warning</violationSeverity>
382 <failOnViolation>true</failOnViolation>
383 </configuration>
384 </execution>
385 </executions>
386 <dependencies>
387 <dependency>
Claudio David Gasparini35b2b442020-12-01 14:53:40 +0100388 <groupId>${project.groupId}</groupId>
389 <artifactId>checkstyle</artifactId>
390 <version>${project.version}</version>
391 </dependency>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100392 </dependencies>
393 </plugin>
394 <!-- Mandatory plugins for using Spock -->
395 <plugin>
396 <!-- The gmavenplus plugin is used to compile Groovy code.
397 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
398 <groupId>org.codehaus.gmavenplus</groupId>
399 <artifactId>gmavenplus-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100400 <version>${gmavenplus.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100401 <executions>
402 <execution>
403 <goals>
404 <goal>compileTests</goal>
405 </goals>
406 </execution>
407 </executions>
408 </plugin>
409 <!-- Required because names of spec classes don't match default
410 Surefire patterns (`*Test` etc.) -->
411 <plugin>
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-surefire-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100414 <version>${maven.surefire.plugin.version}</version>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100415 <configuration>
puthuparambil.aditya008c0ad2020-12-14 15:46:30 +0000416 <!--suppress UnresolvedMavenProperty -->
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100417 <argLine>${surefireArgLine}</argLine>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100418 <useFile>false</useFile>
419 <includes>
420 <include>**/*Spec.java</include>
421 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->
422 </includes>
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100423 <excludes>
danielhanrahanc72a0132024-02-09 17:40:18 +0000424 <!-- maven-failsafe-plugin will run performance tests in the integration-test module,
425 so performance tests will not affect Jacoco coverage (jacoco-report module is configured
426 to aggregate results from tests run with maven-surefire-plugin only) -->
427 <exclude>**/*PerfTest.java</exclude>
Claudio David Gasparini13cc64d2020-12-02 18:47:09 +0100428 </excludes>
Ruslan Kashapovbf02f202020-12-17 10:38:53 +0200429 <environmentVariables>
430 <!--
431 disable privileged container usage to cleanup the test containers;
432 these will be removed automatically on jvm termination;
433 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
434 -->
435 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
Renu Kumariff52b942021-05-27 23:16:32 -0400436 <TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>${docker.pull.registry}/</TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>
Ruslan Kashapovbf02f202020-12-17 10:38:53 +0200437 </environmentVariables>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100438 </configuration>
439 </plugin>
Claudio David Gasparini900ba022020-11-08 22:18:36 +0100440 <plugin>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100441 <groupId>org.jacoco</groupId>
442 <artifactId>jacoco-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100443 <version>${jacoco.version}</version>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400444 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100445 <!-- Exclude all generated classes or specific patterns if necessary -->
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400446 <excludes>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100447 <exclude>org/onap/cps/events/model/*</exclude>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400448 <exclude>org/onap/cps/rest/model/*</exclude>
449 <exclude>org/onap/cps/cpspath/parser/antlr4/*</exclude>
DylanB95EST4f4178c2021-07-02 13:30:42 +0100450 <exclude>org/onap/cps/ncmp/rest/model/*</exclude>
ToineSiebelink7fcffe52023-07-24 12:23:05 +0100451 <exclude>org/onap/cps/**/*MapperImpl.class</exclude>
452 <exclude>org/onap/cps/ncmp/rest/stub/*</exclude>
ToineSiebelinkd7914bc2024-07-04 15:15:36 +0100453 <exclude>org/onap/cps/policyexecutor/stub/model/*</exclude>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100454 <exclude>**/pom.xml</exclude>
Bruno Sakotof549c7c2021-05-18 16:02:30 -0400455 </excludes>
456 </configuration>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100457 <executions>
458 <execution>
459 <id>default-prepare-agent</id>
460 <goals>
461 <goal>prepare-agent</goal>
462 </goals>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100463 <configuration>
464 <destFile>${jacoco.execFile}</destFile>
465 <propertyName>surefireArgLine</propertyName>
466 </configuration>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100467 </execution>
468 <execution>
469 <id>coverage-check</id>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100470 <phase>test</phase>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100471 <goals>
472 <goal>check</goal>
473 </goals>
474 <configuration>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100475 <dataFile>${jacoco.execFile}</dataFile>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100476 <rules>
477 <rule>
478 <element>BUNDLE</element>
479 <limits>
480 <limit>
481 <counter>INSTRUCTION</counter>
482 <value>COVEREDRATIO</value>
483 <minimum>${minimum-coverage}</minimum>
484 </limit>
485 </limits>
486 </rule>
487 </rules>
488 </configuration>
489 </execution>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100490 <execution>
491 <id>post-unit-test</id>
492 <phase>test</phase>
493 <goals>
494 <goal>report</goal>
495 </goals>
496 <configuration>
sourabh_sourabh1bb36392024-11-13 12:54:17 +0000497 <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100498 <!-- Sets the path to the file which contains the execution data. -->
499 <dataFile>${jacoco.execFile}</dataFile>
500 <!-- Sets the output directory for the code coverage report. -->
501 <outputDirectory>${jacoco.outputDirectory}</outputDirectory>
502 </configuration>
503 </execution>
Claudio David Gasparini87c74a12020-11-18 08:38:01 +0100504 </executions>
Claudio David Gasparini900ba022020-11-08 22:18:36 +0100505 </plugin>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100506
507 <!-- Sonar Plugin for Code Quality -->
Claudio David Gasparini7492aea2021-01-13 08:34:00 +0100508 <plugin>
509 <groupId>org.sonarsource.scanner.maven</groupId>
510 <artifactId>sonar-maven-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100511 <version>${sonar.version}</version>
512 </plugin>
513
514 <!-- Maven Site Plugin for Site Generation -->
515 <plugin>
516 <groupId>org.apache.maven.plugins</groupId>
517 <artifactId>maven-site-plugin</artifactId>
518 <version>${maven.site.plugin.version}</version>
519 <executions>
520 <execution>
521 <id>default-site</id>
522 <phase>site</phase>
523 <goals><goal>site</goal></goals>
524 </execution>
525 </executions>
Claudio David Gasparini7492aea2021-01-13 08:34:00 +0100526 </plugin>
sourabh_sourabh1bb36392024-11-13 12:54:17 +0000527 <plugin>
528 <groupId>org.apache.maven.plugins</groupId>
529 <artifactId>maven-deploy-plugin</artifactId>
530 <version>3.1.2</version>
531 </plugin>
Claudio David Gasparini70c17022020-10-26 10:12:10 +0100532 </plugins>
533 </build>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100534</project>