blob: 01eee44760dca8365cf9128e36a6299a382d5765 [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>
mpriyank3c6ab232023-04-07 10:20:37 +010037 <version>1.4.0-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>
43 <cps.version>3.3.5</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>
JosephKeenan2cd8b982022-05-23 15:43:05 +010052 <groupId>com.google.code.gson</groupId>
53 <artifactId>gson</artifactId>
54 <version>2.8.9</version>
55 </dependency>
56 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010057 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +010058 <artifactId>swagger-annotations</artifactId>
egernug1118bed2023-06-28 10:57:53 +010059 <version>2.2.10</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +010060 </dependency>
61 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +010062 <groupId>io.cloudevents</groupId>
63 <artifactId>cloudevents-json-jackson</artifactId>
64 <version>2.5.0</version>
65 </dependency>
66 <dependency>
67 <groupId>io.cloudevents</groupId>
68 <artifactId>cloudevents-kafka</artifactId>
69 <version>2.5.0</version>
70 </dependency>
71 <dependency>
72 <groupId>io.cloudevents</groupId>
73 <artifactId>cloudevents-spring</artifactId>
74 <version>2.5.0</version>
75 </dependency>
76 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010077 <groupId>net.logstash.logback</groupId>
78 <artifactId>logstash-logback-encoder</artifactId>
79 <version>7.0.1</version>
80 </dependency>
81 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010082 <groupId>org.apache.httpcomponents</groupId>
83 <artifactId>httpclient</artifactId>
84 <version>4.5.13</version>
85 </dependency>
86 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +010087 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-dependencies</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010089 <version>2.7.6</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010090 <type>pom</type>
91 <scope>import</scope>
92 </dependency>
93 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +010094 <groupId>org.spockframework</groupId>
shivasubedi275c1dc2021-07-07 16:39:34 +010095 <artifactId>spock-bom</artifactId>
96 <version>2.0-M5-groovy-3.0</version>
97 <type>pom</type>
98 <scope>import</scope>
DylanB95ESTb5a23832021-06-02 19:45:46 +010099 </dependency>
niamhcore98351072021-12-15 11:23:56 +0000100 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100101 <groupId>org.springdoc</groupId>
102 <artifactId>springdoc-openapi-ui</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100103 <version>1.6.6</version>
ToineSiebelink6b354302022-03-02 12:26:02 +0000104 </dependency>
JosephKeenanbe383b42022-03-23 15:12:53 +0000105 <dependency>
106 <groupId>org.springframework.cloud</groupId>
107 <artifactId>spring-cloud-dependencies</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100108 <version>2021.0.3</version>
JosephKeenanbe383b42022-03-23 15:12:53 +0000109 <type>pom</type>
110 <scope>import</scope>
111 </dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530112 <dependency>
113 <groupId>org.testcontainers</groupId>
114 <artifactId>testcontainers-bom</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100115 <version>1.17.3</version>
mpriyank78e1d062022-04-08 15:12:22 +0530116 <type>pom</type>
117 <scope>import</scope>
118 </dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100119 <dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100120 <groupId>org.codehaus.janino</groupId>
121 <artifactId>janino</artifactId>
122 <version>3.1.7</version>
123 </dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100124 <dependency>
125 <groupId>org.onap.cps</groupId>
126 <artifactId>cps-ncmp-events</artifactId>
mpriyankb1332ae2022-09-23 12:59:38 +0100127 <version>${cps.version}</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100128 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100129 </dependencies>
130 </dependencyManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100131 <dependencies>
132 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100133 <groupId>com.google.code.gson</groupId>
134 <artifactId>gson</artifactId>
135 </dependency>
136 <dependency>
137 <groupId>com.jayway.jsonpath</groupId>
138 <artifactId>json-path</artifactId>
139 </dependency>
140 <dependency>
141 <groupId>io.micrometer</groupId>
142 <artifactId>micrometer-registry-prometheus</artifactId>
143 </dependency>
144 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100145 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100146 <artifactId>swagger-annotations</artifactId>
147 </dependency>
148 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +0100149 <groupId>io.cloudevents</groupId>
150 <artifactId>cloudevents-json-jackson</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>io.cloudevents</groupId>
154 <artifactId>cloudevents-kafka</artifactId>
155 </dependency>
156 <dependency>
157 <groupId>io.cloudevents</groupId>
158 <artifactId>cloudevents-spring</artifactId>
159 </dependency>
160 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100161 <groupId>net.logstash.logback</groupId>
162 <artifactId>logstash-logback-encoder</artifactId>
163 </dependency>
164 <dependency>
165 <groupId>net.minidev</groupId>
166 <artifactId>json-smart</artifactId>
167 </dependency>
168 <dependency>
169 <groupId>org.apache.httpcomponents</groupId>
170 <artifactId>httpclient</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100171 </dependency>
172 <dependency>
173 <groupId>org.codehaus.groovy</groupId>
174 <artifactId>groovy</artifactId>
175 </dependency>
176 <dependency>
177 <groupId>org.codehaus.janino</groupId>
178 <artifactId>janino</artifactId>
179 </dependency>
180 <dependency>
181 <groupId>org.onap.cps</groupId>
182 <artifactId>cps-ncmp-events</artifactId>
183 </dependency>
184 <dependency>
185 <groupId>org.projectlombok</groupId>
186 <artifactId>lombok</artifactId>
187 </dependency>
188 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100189 <groupId>org.springframework.boot</groupId>
190 <artifactId>spring-boot-starter-web</artifactId>
191 </dependency>
192 <dependency>
193 <groupId>org.springframework.boot</groupId>
194 <artifactId>spring-boot-starter-validation</artifactId>
195 </dependency>
196 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100197 <groupId>org.springdoc</groupId>
198 <artifactId>springdoc-openapi-ui</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100199 </dependency>
200 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100201 <groupId>org.springframework.boot</groupId>
202 <artifactId>spring-boot-starter-security</artifactId>
203 </dependency>
204 <dependency>
205 <groupId>org.springframework.boot</groupId>
206 <artifactId>spring-boot-starter-actuator</artifactId>
207 </dependency>
208 <dependency>
209 <groupId>org.springframework.kafka</groupId>
210 <artifactId>spring-kafka</artifactId>
211 </dependency>
212 <!-- T E S T - D E P E N D E N C I E S -->
213 <dependency>
214 <groupId>org.spockframework</groupId>
215 <artifactId>spock-core</artifactId>
216 <scope>test</scope>
217 </dependency>
218 <dependency>
219 <groupId>org.spockframework</groupId>
220 <artifactId>spock-spring</artifactId>
221 <scope>test</scope>
Renu Kumari306cadd2021-10-22 00:50:29 -0400222 </dependency>
223 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-starter-test</artifactId>
226 <scope>test</scope>
227 <exclusions>
228 <exclusion>
229 <groupId>org.junit.vintage</groupId>
230 <artifactId>junit-vintage-engine</artifactId>
231 </exclusion>
232 </exclusions>
233 </dependency>
234 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100235 <groupId>org.springframework.kafka</groupId>
236 <artifactId>spring-kafka-test</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100237 <scope>test</scope>
238 </dependency>
239 <dependency>
Renu Kumari306cadd2021-10-22 00:50:29 -0400240 <groupId>org.springframework.security</groupId>
241 <artifactId>spring-security-test</artifactId>
242 <scope>test</scope>
243 </dependency>
244 <dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530245 <groupId>org.testcontainers</groupId>
246 <artifactId>spock</artifactId>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
250 <groupId>org.testcontainers</groupId>
251 <artifactId>kafka</artifactId>
252 <scope>test</scope>
253 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100254 </dependencies>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100255 <build>
256 <resources>
257 <resource>
258 <directory>src/main/resources</directory>
259 <filtering>true</filtering>
260 </resource>
261 <resource>
262 <directory>target/generated-sources/license</directory>
263 <includes>
264 <include>third-party-licenses.txt</include>
265 </includes>
266 </resource>
267 <resource>
268 <directory>target/generated-resources/licenses</directory>
269 <includes>
270 <include>*.*</include>
271 </includes>
272 <targetPath>third-party-licenses</targetPath>
273 </resource>
274 </resources>
275 <plugins>
276 <plugin>
egernug1118bed2023-06-28 10:57:53 +0100277 <groupId>org.openapitools</groupId>
278 <artifactId>openapi-generator-maven-plugin</artifactId>
279 <version>6.6.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100280 <executions>
281 <execution>
282 <goals>
283 <goal>generate</goal>
284 </goals>
285 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400286 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100287 <generatorName>spring</generatorName>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100288 <generateSupportingFiles>false</generateSupportingFiles>
egernug1118bed2023-06-28 10:57:53 +0100289 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
tragait7c4a9aa2021-07-19 13:46:37 +0100290 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
291 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
egernug1118bed2023-06-28 10:57:53 +0100292 <generateAliasAsModel>true</generateAliasAsModel>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100293 <configOptions>
294 <sourceFolder>src/gen/java</sourceFolder>
295 <dateLibrary>java11</dateLibrary>
296 <interfaceOnly>true</interfaceOnly>
297 <useTags>true</useTags>
egernug1118bed2023-06-28 10:57:53 +0100298 <openApiNullable>false</openApiNullable>
299 <skipDefaultInterface>true</skipDefaultInterface>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100300 </configOptions>
301 </configuration>
302 </execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100303 <execution>
304 <id>openapi-yaml-gen</id>
305 <goals>
306 <goal>generate</goal>
307 </goals>
308 <phase>compile</phase>
309 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400310 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100311 <generatorName>openapi-yaml</generatorName>
shivasubedi3d1579c2021-09-13 16:43:20 +0100312 </configuration>
313 </execution>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100314 </executions>
315 </plugin>
316 <plugin>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000317 <artifactId>maven-resources-plugin</artifactId>
318 <executions>
319 <execution>
320 <id>copy-resources</id>
321 <phase>compile</phase>
322 <goals>
323 <goal>copy-resources</goal>
324 </goals>
325 <configuration>
326 <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory>
327 <resources>
328 <resource>
egernug1118bed2023-06-28 10:57:53 +0100329 <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000330 <includes>
331 <include>openapi.yaml</include>
332 </includes>
333 </resource>
334 </resources>
335 </configuration>
336 </execution>
337 </executions>
338 </plugin>
339 <plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100340 <groupId>org.springframework.boot</groupId>
341 <artifactId>spring-boot-maven-plugin</artifactId>
JosephKeenanbe383b42022-03-23 15:12:53 +0000342 <version>2.6.4</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100343 <executions>
344 <execution>
345 <goals>
346 <goal>build-info</goal>
347 <goal>repackage</goal>
348 </goals>
349 </execution>
350 </executions>
351 </plugin>
352 <plugin>
353 <groupId>org.codehaus.gmavenplus</groupId>
354 <artifactId>gmavenplus-plugin</artifactId>
355 <executions>
356 <execution>
357 <goals>
358 <goal>compileTests</goal>
359 </goals>
360 </execution>
361 </executions>
362 </plugin>
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-surefire-plugin</artifactId>
366 <configuration>
367 <argLine>${surefireArgLine}</argLine>
368 <includes>
369 <include>**/*Spec.java</include>
370 </includes>
371 <excludes>
372 <exclude>**/IT*.java</exclude>
373 </excludes>
mpriyank78e1d062022-04-08 15:12:22 +0530374 <environmentVariables>
375 <!--
376 Disable privileged container usage to cleanup the test containers;
377 these are removed automatically on jvm termination;
378 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
379 -->
380 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
381 </environmentVariables>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100382 </configuration>
383 </plugin>
shivasubedi55500c32021-06-23 16:31:02 +0100384 <plugin>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-checkstyle-plugin</artifactId>
387 <executions>
388 <execution>
Bruno Sakotoff5f74d2021-07-14 11:15:48 -0400389 <id>onap-license</id>
390 <goals>
391 <goal>check</goal>
392 </goals>
393 <phase>process-sources</phase>
394 <configuration>
395 <configLocation>onap-checkstyle/check-license.xml</configLocation>
396 <includeResources>false</includeResources>
397 <includeTestSourceDirectory>true</includeTestSourceDirectory>
398 <includeTestResources>false</includeTestResources>
399 <sourceDirectories>
400 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
401 </sourceDirectories>
402 <consoleOutput>false</consoleOutput>
403 <violationSeverity>warning</violationSeverity>
404 <failOnViolation>true</failOnViolation>
405 </configuration>
406 </execution>
407 <execution>
408 <id>onap-java-style</id>
409 <goals>
410 <goal>check</goal>
411 </goals>
412 <phase>process-sources</phase>
413 <configuration>
414 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
415 <sourceDirectories>
416 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
417 </sourceDirectories>
418 <includeResources>true</includeResources>
419 <includeTestSourceDirectory>true</includeTestSourceDirectory>
420 <includeTestResources>true</includeTestResources>
421 <consoleOutput>false</consoleOutput>
422 <violationSeverity>warning</violationSeverity>
423 <failOnViolation>true</failOnViolation>
424 </configuration>
425 </execution>
426 <execution>
shivasubedi55500c32021-06-23 16:31:02 +0100427 <id>cps-java-style</id>
428 <goals>
429 <goal>check</goal>
430 </goals>
431 <phase>process-sources</phase>
432 <configuration>
433 <configLocation>cps-java-style.xml</configLocation>
434 <sourceDirectories>
435 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
436 </sourceDirectories>
437 <includeResources>true</includeResources>
438 <includeTestSourceDirectory>true</includeTestSourceDirectory>
439 <includeTestResources>true</includeTestResources>
440 <consoleOutput>true</consoleOutput>
441 <violationSeverity>warning</violationSeverity>
442 <failOnViolation>true</failOnViolation>
443 </configuration>
444 </execution>
445 </executions>
446 <dependencies>
447 <dependency>
448 <groupId>${project.groupId}</groupId>
449 <artifactId>checkstyle</artifactId>
450 <version>${cps.version}</version>
451 </dependency>
452 </dependencies>
453 </plugin>
454 <plugin>
455 <groupId>com.github.spotbugs</groupId>
456 <artifactId>spotbugs-maven-plugin</artifactId>
egernug92f74d72023-07-17 13:45:51 +0100457 <version>4.4.2</version>
shivasubedi55500c32021-06-23 16:31:02 +0100458 <executions>
459 <execution>
460 <id>analyze-compile</id>
461 <phase>compile</phase>
462 <goals>
463 <goal>check</goal>
464 </goals>
465 </execution>
466 </executions>
467 <dependencies>
468 <dependency>
469 <groupId>${project.groupId}</groupId>
470 <artifactId>spotbugs</artifactId>
471 <version>${cps.version}</version>
472 <scope>compile</scope>
473 </dependency>
474 </dependencies>
475 <configuration>
476 <plugins>
477 <plugin>
478 <groupId>jp.skypencil.findbugs.slf4j</groupId>
479 <artifactId>bug-pattern</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100480 <version>1.5.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100481 </plugin>
482 </plugins>
483 <effort>Max</effort>
484 <threshold>Low</threshold>
485 <failOnError>true</failOnError>
486 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
niamhcore4f431882021-09-21 16:08:29 +0100487 <addSourceDirs>true</addSourceDirs>
shivasubedi55500c32021-06-23 16:31:02 +0100488 <xmlOutput>true</xmlOutput>
489 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
490 </configuration>
491 </plugin>
492 <plugin>
493 <groupId>org.jacoco</groupId>
494 <artifactId>jacoco-maven-plugin</artifactId>
shivasubedi55500c32021-06-23 16:31:02 +0100495 <configuration>
496 <excludes>
tragait7c4a9aa2021-07-19 13:46:37 +0100497 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
shivasubedi55500c32021-06-23 16:31:02 +0100498 </excludes>
499 </configuration>
500 <executions>
501 <execution>
502 <id>default-prepare-agent</id>
503 <goals>
504 <goal>prepare-agent</goal>
505 </goals>
506 </execution>
507 <execution>
508 <id>coverage-check</id>
509 <goals>
510 <goal>check</goal>
511 </goals>
512 <configuration>
513 <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile>
514 <rules>
515 <rule>
516 <element>BUNDLE</element>
517 <limits>
518 <limit>
519 <counter>INSTRUCTION</counter>
520 <value>COVEREDRATIO</value>
521 <minimum>${jacoco.minimum.coverage}</minimum>
522 </limit>
523 </limits>
524 </rule>
525 </rules>
526 </configuration>
527 </execution>
528 <execution>
529 <id>report</id>
530 <phase>verify</phase>
531 <goals>
532 <goal>report-aggregate</goal>
533 </goals>
534 <configuration>
535 <dataFileIncludes>
536 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
537 </dataFileIncludes>
538 </configuration>
539 </execution>
540 </executions>
541 </plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100542 </plugins>
shivasubedif4b36ef2021-06-23 16:01:10 +0100543 <pluginManagement>
544 <plugins>
545 <plugin>
546 <groupId>com.google.cloud.tools</groupId>
547 <artifactId>jib-maven-plugin</artifactId>
shivasubedif4b36ef2021-06-23 16:01:10 +0100548 <configuration>
549 <container>
550 <mainClass>${app}</mainClass>
551 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
552 </container>
553 <from>
554 <image>${base.image}</image>
555 </from>
556 <to>
557 <tags>
ToineSiebelink98df7fc2022-10-27 11:06:53 +0100558 <tag>latest</tag>
JosephKeenan371ec2f2021-12-01 09:46:58 +0000559 <tag>${project.version}-latest</tag>
shivasubedif4b36ef2021-06-23 16:01:10 +0100560 </tags>
561 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
562 </to>
563 </configuration>
564 <executions>
565 <execution>
566 <phase>package</phase>
567 <id>build</id>
568 <goals>
569 <goal>dockerBuild</goal>
570 </goals>
571 </execution>
572 <execution>
573 <phase>deploy</phase>
574 <id>buildAndPush</id>
575 <goals>
576 <goal>build</goal>
577 </goals>
578 </execution>
579 </executions>
580 </plugin>
581 </plugins>
582 </pluginManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100583 </build>
shivasubedif4b36ef2021-06-23 16:01:10 +0100584 <profiles>
585 <profile>
puthuparambil.adityaeddb3dd2021-07-27 15:57:19 +0100586 <id>docker</id>
shivasubedif4b36ef2021-06-23 16:01:10 +0100587 <activation>
588 <activeByDefault>true</activeByDefault>
589 </activation>
590 <properties>
591 <image.name>ncmp-dmi-plugin</image.name>
592 </properties>
593 <build>
594 <plugins>
595 <plugin>
596 <groupId>com.google.cloud.tools</groupId>
597 <artifactId>jib-maven-plugin</artifactId>
598 </plugin>
599 </plugins>
600 </build>
601 </profile>
602 </profiles>
lukegleesonb208aeb2021-07-08 16:48:15 +0100603</project>