blob: 19b5c073e9b2daac9b4d5e7dbd7616839feb1b2e [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001<!--
2 ============LICENSE_START=======================================================
sourabh_sourabh4537a8b2023-02-01 12:56:44 +00003 Copyright (c) 2021-2023 Nordix Foundation.
puthuparambil.aditya08fe9712021-07-13 11:52:13 +01004 Modifications Copyright (C) 2021 Bell Canada.
DylanB95ESTb5a23832021-06-02 19:45:46 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
lukegleesonb208aeb2021-07-08 16:48:15 +01009
DylanB95ESTb5a23832021-06-02 19:45:46 +010010 http://www.apache.org/licenses/LICENSE-2.0
lukegleesonb208aeb2021-07-08 16:48:15 +010011
DylanB95ESTb5a23832021-06-02 19:45:46 +010012 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
lukegleesonb208aeb2021-07-08 16:48:15 +010017
18 SPDX-License-Identifier: Apache-2.0
DylanB95ESTb5a23832021-06-02 19:45:46 +010019 ============LICENSE_END=========================================================
ToineSiebelink4cbd60b2021-09-30 16:53:42 +010020-->
DylanB95ESTb5a23832021-06-02 19:45:46 +010021<project xmlns="http://maven.apache.org/POM/4.0.0"
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010022 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
DylanB95ESTb5a23832021-06-02 19:45:46 +010024 <modelVersion>4.0.0</modelVersion>
DylanB95ESTb5a23832021-06-02 19:45:46 +010025 <parent>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
ToineSiebelink54d10a72022-04-05 13:54:32 +010028 <version>3.3.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010029 <relativePath/>
30 </parent>
DylanB95ESTb5a23832021-06-02 19:45:46 +010031 <organization>
32 <name>ONAP - CPS</name>
33 <url>http://www.onap.org/</url>
34 </organization>
DylanB95ESTb5a23832021-06-02 19:45:46 +010035 <groupId>org.onap.cps</groupId>
36 <artifactId>ncmp-dmi-plugin</artifactId>
mpriyanka068cd42023-11-07 12:11:57 +000037 <version>1.4.1-SNAPSHOT</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010038 <name>ncmp-dmi-plugin</name>
39 <description>DMI Plugin Service</description>
DylanB95ESTb5a23832021-06-02 19:45:46 +010040 <properties>
niamhcore71a61bb2021-07-06 10:32:17 +010041 <app>org.onap.cps.ncmp.dmi.Application</app>
egernug92f74d72023-07-17 13:45:51 +010042 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
mpriyank6128d732023-11-06 17:53:00 +000043 <cps.version>3.3.9</cps.version>
shivasubedif4b36ef2021-06-23 16:01:10 +010044 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
ToineSiebelink4cbd60b2021-09-30 16:53:42 +010045 <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage>
shivasubedif4b36ef2021-06-23 16:01:10 +010046 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
DylanB95ESTb5a23832021-06-02 19:45:46 +010047 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
DylanB95ESTb5a23832021-06-02 19:45:46 +010048 </properties>
DylanB95ESTb5a23832021-06-02 19:45:46 +010049 <dependencyManagement>
50 <dependencies>
51 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +010052 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-dependencies</artifactId>
54 <version>3.1.2</version>
55 <type>pom</type>
56 <scope>import</scope>
57 </dependency>
58 <dependency>
59 <groupId>org.springframework.cloud</groupId>
60 <artifactId>spring-cloud-dependencies</artifactId>
61 <version>2022.0.3</version>
62 <type>pom</type>
63 <scope>import</scope>
64 </dependency>
65 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010066 <groupId>com.google.code.gson</groupId>
67 <artifactId>gson</artifactId>
68 <version>2.8.9</version>
69 </dependency>
70 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010071 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +010072 <artifactId>swagger-annotations</artifactId>
egernug1118bed2023-06-28 10:57:53 +010073 <version>2.2.10</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +010074 </dependency>
75 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +010076 <groupId>io.cloudevents</groupId>
77 <artifactId>cloudevents-json-jackson</artifactId>
78 <version>2.5.0</version>
79 </dependency>
80 <dependency>
81 <groupId>io.cloudevents</groupId>
82 <artifactId>cloudevents-kafka</artifactId>
83 <version>2.5.0</version>
84 </dependency>
85 <dependency>
86 <groupId>io.cloudevents</groupId>
87 <artifactId>cloudevents-spring</artifactId>
88 <version>2.5.0</version>
89 </dependency>
90 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010091 <groupId>net.logstash.logback</groupId>
92 <artifactId>logstash-logback-encoder</artifactId>
93 <version>7.0.1</version>
94 </dependency>
95 <dependency>
egernuga12d2712023-11-01 11:02:24 +000096 <groupId>net.minidev</groupId>
97 <artifactId>json-smart</artifactId>
98 <version>2.5.0</version>
99 </dependency>
100 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100101 <groupId>org.apache.httpcomponents</groupId>
102 <artifactId>httpclient</artifactId>
103 <version>4.5.13</version>
104 </dependency>
105 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100106 <groupId>org.codehaus.groovy</groupId>
107 <artifactId>groovy</artifactId>
108 <version>3.0.18</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100109 </dependency>
110 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100111 <groupId>org.spockframework</groupId>
egernugd59b5ef2023-10-19 11:23:13 +0100112 <artifactId>spock-core</artifactId>
113 <version>2.4-M1-groovy-3.0</version>
114 </dependency>
115 <dependency>
116 <groupId>org.spockframework</groupId>
117 <artifactId>spock-spring</artifactId>
118 <version>2.4-M1-groovy-3.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100119 </dependency>
niamhcore98351072021-12-15 11:23:56 +0000120 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100121 <groupId>org.springdoc</groupId>
egernugd59b5ef2023-10-19 11:23:13 +0100122 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
123 <version>2.0.2</version>
JosephKeenanbe383b42022-03-23 15:12:53 +0000124 </dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530125 <dependency>
126 <groupId>org.testcontainers</groupId>
127 <artifactId>testcontainers-bom</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100128 <version>1.18.3</version>
mpriyank78e1d062022-04-08 15:12:22 +0530129 <type>pom</type>
130 <scope>import</scope>
131 </dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100132 <dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100133 <groupId>org.codehaus.janino</groupId>
134 <artifactId>janino</artifactId>
egernuga12d2712023-11-01 11:02:24 +0000135 <version>3.1.10</version>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100136 </dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100137 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100138 <groupId>org.projectlombok</groupId>
139 <artifactId>lombok</artifactId>
140 <version>1.18.24</version>
141 </dependency>
142 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100143 <groupId>org.onap.cps</groupId>
144 <artifactId>cps-ncmp-events</artifactId>
mpriyankb1332ae2022-09-23 12:59:38 +0100145 <version>${cps.version}</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100146 </dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100147 <dependency>
148 <groupId>org.apache.httpcomponents.client5</groupId>
149 <artifactId>httpclient5</artifactId>
150 <version>5.2.1</version>
151 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100152 </dependencies>
153 </dependencyManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100154 <dependencies>
155 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-web</artifactId>
158 </dependency>
159 <dependency>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-validation</artifactId>
162 </dependency>
163 <dependency>
164 <groupId>org.springdoc</groupId>
165 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
166 </dependency>
167 <dependency>
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-security</artifactId>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-starter-actuator</artifactId>
174 </dependency>
175 <dependency>
176 <groupId>org.springframework.kafka</groupId>
177 <artifactId>spring-kafka</artifactId>
178 </dependency>
179 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100180 <groupId>com.google.code.gson</groupId>
181 <artifactId>gson</artifactId>
182 </dependency>
183 <dependency>
184 <groupId>com.jayway.jsonpath</groupId>
185 <artifactId>json-path</artifactId>
186 </dependency>
187 <dependency>
188 <groupId>io.micrometer</groupId>
189 <artifactId>micrometer-registry-prometheus</artifactId>
190 </dependency>
191 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100192 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100193 <artifactId>swagger-annotations</artifactId>
194 </dependency>
195 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +0100196 <groupId>io.cloudevents</groupId>
197 <artifactId>cloudevents-json-jackson</artifactId>
198 </dependency>
199 <dependency>
200 <groupId>io.cloudevents</groupId>
201 <artifactId>cloudevents-kafka</artifactId>
202 </dependency>
203 <dependency>
204 <groupId>io.cloudevents</groupId>
205 <artifactId>cloudevents-spring</artifactId>
206 </dependency>
207 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100208 <groupId>net.logstash.logback</groupId>
209 <artifactId>logstash-logback-encoder</artifactId>
210 </dependency>
211 <dependency>
212 <groupId>net.minidev</groupId>
213 <artifactId>json-smart</artifactId>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.httpcomponents</groupId>
217 <artifactId>httpclient</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100218 </dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100219
JosephKeenan2cd8b982022-05-23 15:43:05 +0100220 <dependency>
221 <groupId>org.codehaus.groovy</groupId>
222 <artifactId>groovy</artifactId>
223 </dependency>
224 <dependency>
225 <groupId>org.codehaus.janino</groupId>
226 <artifactId>janino</artifactId>
227 </dependency>
228 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-server</artifactId>
231 </dependency>
232 <dependency>
233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-http</artifactId>
235 </dependency>
236 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100237 <groupId>org.onap.cps</groupId>
238 <artifactId>cps-ncmp-events</artifactId>
239 </dependency>
240 <dependency>
241 <groupId>org.projectlombok</groupId>
242 <artifactId>lombok</artifactId>
243 </dependency>
244 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100245 <groupId>org.apache.httpcomponents.client5</groupId>
246 <artifactId>httpclient5</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100247 </dependency>
248 <!-- T E S T - D E P E N D E N C I E S -->
249 <dependency>
250 <groupId>org.spockframework</groupId>
251 <artifactId>spock-core</artifactId>
252 <scope>test</scope>
253 </dependency>
254 <dependency>
255 <groupId>org.spockframework</groupId>
256 <artifactId>spock-spring</artifactId>
257 <scope>test</scope>
Renu Kumari306cadd2021-10-22 00:50:29 -0400258 </dependency>
259 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100260 <groupId>org.springframework.boot</groupId>
261 <artifactId>spring-boot-starter-test</artifactId>
262 <scope>test</scope>
263 <exclusions>
264 <exclusion>
265 <groupId>org.junit.vintage</groupId>
266 <artifactId>junit-vintage-engine</artifactId>
267 </exclusion>
268 </exclusions>
269 </dependency>
270 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100271 <groupId>org.springframework.kafka</groupId>
272 <artifactId>spring-kafka-test</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100273 <scope>test</scope>
274 </dependency>
275 <dependency>
Renu Kumari306cadd2021-10-22 00:50:29 -0400276 <groupId>org.springframework.security</groupId>
277 <artifactId>spring-security-test</artifactId>
278 <scope>test</scope>
279 </dependency>
280 <dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530281 <groupId>org.testcontainers</groupId>
282 <artifactId>spock</artifactId>
283 <scope>test</scope>
284 </dependency>
285 <dependency>
286 <groupId>org.testcontainers</groupId>
287 <artifactId>kafka</artifactId>
288 <scope>test</scope>
289 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100290 </dependencies>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100291 <build>
292 <resources>
293 <resource>
294 <directory>src/main/resources</directory>
295 <filtering>true</filtering>
296 </resource>
297 <resource>
298 <directory>target/generated-sources/license</directory>
299 <includes>
300 <include>third-party-licenses.txt</include>
301 </includes>
302 </resource>
303 <resource>
304 <directory>target/generated-resources/licenses</directory>
305 <includes>
306 <include>*.*</include>
307 </includes>
308 <targetPath>third-party-licenses</targetPath>
309 </resource>
310 </resources>
311 <plugins>
312 <plugin>
egernug1118bed2023-06-28 10:57:53 +0100313 <groupId>org.openapitools</groupId>
314 <artifactId>openapi-generator-maven-plugin</artifactId>
315 <version>6.6.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100316 <executions>
317 <execution>
318 <goals>
319 <goal>generate</goal>
320 </goals>
321 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400322 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100323 <generatorName>spring</generatorName>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100324 <generateSupportingFiles>false</generateSupportingFiles>
egernug1118bed2023-06-28 10:57:53 +0100325 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
tragait7c4a9aa2021-07-19 13:46:37 +0100326 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
327 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
egernug1118bed2023-06-28 10:57:53 +0100328 <generateAliasAsModel>true</generateAliasAsModel>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100329 <configOptions>
330 <sourceFolder>src/gen/java</sourceFolder>
331 <dateLibrary>java11</dateLibrary>
332 <interfaceOnly>true</interfaceOnly>
333 <useTags>true</useTags>
egernugd59b5ef2023-10-19 11:23:13 +0100334 <useSpringBoot3>true</useSpringBoot3>
egernug1118bed2023-06-28 10:57:53 +0100335 <openApiNullable>false</openApiNullable>
336 <skipDefaultInterface>true</skipDefaultInterface>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100337 </configOptions>
338 </configuration>
339 </execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100340 <execution>
341 <id>openapi-yaml-gen</id>
342 <goals>
343 <goal>generate</goal>
344 </goals>
345 <phase>compile</phase>
346 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400347 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100348 <generatorName>openapi-yaml</generatorName>
shivasubedi3d1579c2021-09-13 16:43:20 +0100349 </configuration>
350 </execution>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100351 </executions>
352 </plugin>
353 <plugin>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000354 <artifactId>maven-resources-plugin</artifactId>
355 <executions>
356 <execution>
357 <id>copy-resources</id>
358 <phase>compile</phase>
359 <goals>
360 <goal>copy-resources</goal>
361 </goals>
362 <configuration>
363 <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory>
364 <resources>
365 <resource>
egernug1118bed2023-06-28 10:57:53 +0100366 <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000367 <includes>
368 <include>openapi.yaml</include>
369 </includes>
370 </resource>
371 </resources>
372 </configuration>
373 </execution>
374 </executions>
375 </plugin>
376 <plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100377 <groupId>org.springframework.boot</groupId>
378 <artifactId>spring-boot-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100379 <version>3.1.2</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100380 <executions>
381 <execution>
382 <goals>
383 <goal>build-info</goal>
384 <goal>repackage</goal>
385 </goals>
386 </execution>
387 </executions>
388 </plugin>
389 <plugin>
390 <groupId>org.codehaus.gmavenplus</groupId>
391 <artifactId>gmavenplus-plugin</artifactId>
392 <executions>
393 <execution>
394 <goals>
395 <goal>compileTests</goal>
396 </goals>
397 </execution>
398 </executions>
399 </plugin>
400 <plugin>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-surefire-plugin</artifactId>
403 <configuration>
404 <argLine>${surefireArgLine}</argLine>
405 <includes>
406 <include>**/*Spec.java</include>
407 </includes>
408 <excludes>
409 <exclude>**/IT*.java</exclude>
410 </excludes>
mpriyank78e1d062022-04-08 15:12:22 +0530411 <environmentVariables>
412 <!--
413 Disable privileged container usage to cleanup the test containers;
414 these are removed automatically on jvm termination;
415 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
416 -->
417 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
418 </environmentVariables>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100419 </configuration>
420 </plugin>
shivasubedi55500c32021-06-23 16:31:02 +0100421 <plugin>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-checkstyle-plugin</artifactId>
424 <executions>
425 <execution>
Bruno Sakotoff5f74d2021-07-14 11:15:48 -0400426 <id>onap-license</id>
427 <goals>
428 <goal>check</goal>
429 </goals>
430 <phase>process-sources</phase>
431 <configuration>
432 <configLocation>onap-checkstyle/check-license.xml</configLocation>
433 <includeResources>false</includeResources>
434 <includeTestSourceDirectory>true</includeTestSourceDirectory>
435 <includeTestResources>false</includeTestResources>
436 <sourceDirectories>
437 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
438 </sourceDirectories>
439 <consoleOutput>false</consoleOutput>
440 <violationSeverity>warning</violationSeverity>
441 <failOnViolation>true</failOnViolation>
442 </configuration>
443 </execution>
444 <execution>
445 <id>onap-java-style</id>
446 <goals>
447 <goal>check</goal>
448 </goals>
449 <phase>process-sources</phase>
450 <configuration>
451 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
452 <sourceDirectories>
453 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
454 </sourceDirectories>
455 <includeResources>true</includeResources>
456 <includeTestSourceDirectory>true</includeTestSourceDirectory>
457 <includeTestResources>true</includeTestResources>
458 <consoleOutput>false</consoleOutput>
459 <violationSeverity>warning</violationSeverity>
460 <failOnViolation>true</failOnViolation>
461 </configuration>
462 </execution>
463 <execution>
shivasubedi55500c32021-06-23 16:31:02 +0100464 <id>cps-java-style</id>
465 <goals>
466 <goal>check</goal>
467 </goals>
468 <phase>process-sources</phase>
469 <configuration>
470 <configLocation>cps-java-style.xml</configLocation>
471 <sourceDirectories>
472 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
473 </sourceDirectories>
474 <includeResources>true</includeResources>
475 <includeTestSourceDirectory>true</includeTestSourceDirectory>
476 <includeTestResources>true</includeTestResources>
477 <consoleOutput>true</consoleOutput>
478 <violationSeverity>warning</violationSeverity>
479 <failOnViolation>true</failOnViolation>
480 </configuration>
481 </execution>
482 </executions>
483 <dependencies>
484 <dependency>
485 <groupId>${project.groupId}</groupId>
486 <artifactId>checkstyle</artifactId>
487 <version>${cps.version}</version>
488 </dependency>
489 </dependencies>
490 </plugin>
491 <plugin>
492 <groupId>com.github.spotbugs</groupId>
493 <artifactId>spotbugs-maven-plugin</artifactId>
egernug92f74d72023-07-17 13:45:51 +0100494 <version>4.4.2</version>
shivasubedi55500c32021-06-23 16:31:02 +0100495 <executions>
496 <execution>
497 <id>analyze-compile</id>
498 <phase>compile</phase>
499 <goals>
500 <goal>check</goal>
501 </goals>
502 </execution>
503 </executions>
504 <dependencies>
505 <dependency>
506 <groupId>${project.groupId}</groupId>
507 <artifactId>spotbugs</artifactId>
508 <version>${cps.version}</version>
509 <scope>compile</scope>
510 </dependency>
511 </dependencies>
512 <configuration>
513 <plugins>
514 <plugin>
515 <groupId>jp.skypencil.findbugs.slf4j</groupId>
516 <artifactId>bug-pattern</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100517 <version>1.5.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100518 </plugin>
519 </plugins>
520 <effort>Max</effort>
521 <threshold>Low</threshold>
522 <failOnError>true</failOnError>
523 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
niamhcore4f431882021-09-21 16:08:29 +0100524 <addSourceDirs>true</addSourceDirs>
shivasubedi55500c32021-06-23 16:31:02 +0100525 <xmlOutput>true</xmlOutput>
526 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
527 </configuration>
528 </plugin>
529 <plugin>
530 <groupId>org.jacoco</groupId>
531 <artifactId>jacoco-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100532 <version>0.8.10</version>
shivasubedi55500c32021-06-23 16:31:02 +0100533 <configuration>
534 <excludes>
tragait7c4a9aa2021-07-19 13:46:37 +0100535 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
shivasubedi55500c32021-06-23 16:31:02 +0100536 </excludes>
537 </configuration>
538 <executions>
539 <execution>
540 <id>default-prepare-agent</id>
541 <goals>
542 <goal>prepare-agent</goal>
543 </goals>
544 </execution>
545 <execution>
546 <id>coverage-check</id>
547 <goals>
548 <goal>check</goal>
549 </goals>
550 <configuration>
551 <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile>
552 <rules>
553 <rule>
554 <element>BUNDLE</element>
555 <limits>
556 <limit>
557 <counter>INSTRUCTION</counter>
558 <value>COVEREDRATIO</value>
559 <minimum>${jacoco.minimum.coverage}</minimum>
560 </limit>
561 </limits>
562 </rule>
563 </rules>
564 </configuration>
565 </execution>
566 <execution>
567 <id>report</id>
568 <phase>verify</phase>
569 <goals>
570 <goal>report-aggregate</goal>
571 </goals>
572 <configuration>
573 <dataFileIncludes>
574 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
575 </dataFileIncludes>
576 </configuration>
577 </execution>
578 </executions>
579 </plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100580 </plugins>
shivasubedif4b36ef2021-06-23 16:01:10 +0100581 <pluginManagement>
582 <plugins>
583 <plugin>
584 <groupId>com.google.cloud.tools</groupId>
585 <artifactId>jib-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100586 <version>3.3.2</version>
shivasubedif4b36ef2021-06-23 16:01:10 +0100587 <configuration>
588 <container>
589 <mainClass>${app}</mainClass>
590 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
591 </container>
592 <from>
593 <image>${base.image}</image>
594 </from>
595 <to>
596 <tags>
ToineSiebelink98df7fc2022-10-27 11:06:53 +0100597 <tag>latest</tag>
JosephKeenan371ec2f2021-12-01 09:46:58 +0000598 <tag>${project.version}-latest</tag>
shivasubedif4b36ef2021-06-23 16:01:10 +0100599 </tags>
600 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
601 </to>
602 </configuration>
603 <executions>
604 <execution>
605 <phase>package</phase>
606 <id>build</id>
607 <goals>
608 <goal>dockerBuild</goal>
609 </goals>
610 </execution>
611 <execution>
612 <phase>deploy</phase>
613 <id>buildAndPush</id>
614 <goals>
615 <goal>build</goal>
616 </goals>
617 </execution>
618 </executions>
619 </plugin>
620 </plugins>
621 </pluginManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100622 </build>
shivasubedif4b36ef2021-06-23 16:01:10 +0100623 <profiles>
624 <profile>
puthuparambil.adityaeddb3dd2021-07-27 15:57:19 +0100625 <id>docker</id>
shivasubedif4b36ef2021-06-23 16:01:10 +0100626 <activation>
627 <activeByDefault>true</activeByDefault>
628 </activation>
629 <properties>
630 <image.name>ncmp-dmi-plugin</image.name>
631 </properties>
632 <build>
633 <plugins>
634 <plugin>
635 <groupId>com.google.cloud.tools</groupId>
636 <artifactId>jib-maven-plugin</artifactId>
637 </plugin>
638 </plugins>
639 </build>
640 </profile>
641 </profiles>
lukegleesonb208aeb2021-07-08 16:48:15 +0100642</project>