blob: e35c840ff6f05a46df655c0c31b93245c4a8fdf3 [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>
shivasubedif4b36ef2021-06-23 16:01:10 +010042 <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
mpriyank221ee7d2023-03-23 14:17:00 +000043 <cps.version>3.2.6</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>
62 <groupId>net.logstash.logback</groupId>
63 <artifactId>logstash-logback-encoder</artifactId>
64 <version>7.0.1</version>
65 </dependency>
66 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010067 <groupId>org.apache.httpcomponents</groupId>
68 <artifactId>httpclient</artifactId>
69 <version>4.5.13</version>
70 </dependency>
71 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +010072 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-dependencies</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010074 <version>2.7.6</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010075 <type>pom</type>
76 <scope>import</scope>
77 </dependency>
78 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +010079 <groupId>org.spockframework</groupId>
shivasubedi275c1dc2021-07-07 16:39:34 +010080 <artifactId>spock-bom</artifactId>
81 <version>2.0-M5-groovy-3.0</version>
82 <type>pom</type>
83 <scope>import</scope>
DylanB95ESTb5a23832021-06-02 19:45:46 +010084 </dependency>
niamhcore98351072021-12-15 11:23:56 +000085 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010086 <groupId>org.springdoc</groupId>
87 <artifactId>springdoc-openapi-ui</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010088 <version>1.6.6</version>
ToineSiebelink6b354302022-03-02 12:26:02 +000089 </dependency>
JosephKeenanbe383b42022-03-23 15:12:53 +000090 <dependency>
91 <groupId>org.springframework.cloud</groupId>
92 <artifactId>spring-cloud-dependencies</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010093 <version>2021.0.3</version>
JosephKeenanbe383b42022-03-23 15:12:53 +000094 <type>pom</type>
95 <scope>import</scope>
96 </dependency>
mpriyank78e1d062022-04-08 15:12:22 +053097 <dependency>
98 <groupId>org.testcontainers</groupId>
99 <artifactId>testcontainers-bom</artifactId>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100100 <version>1.17.3</version>
mpriyank78e1d062022-04-08 15:12:22 +0530101 <type>pom</type>
102 <scope>import</scope>
103 </dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100104 <dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100105 <groupId>org.codehaus.janino</groupId>
106 <artifactId>janino</artifactId>
107 <version>3.1.7</version>
108 </dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100109 <dependency>
110 <groupId>org.onap.cps</groupId>
111 <artifactId>cps-ncmp-events</artifactId>
mpriyankb1332ae2022-09-23 12:59:38 +0100112 <version>${cps.version}</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100113 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100114 </dependencies>
115 </dependencyManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100116 <dependencies>
117 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100118 <groupId>com.google.code.gson</groupId>
119 <artifactId>gson</artifactId>
120 </dependency>
121 <dependency>
122 <groupId>com.jayway.jsonpath</groupId>
123 <artifactId>json-path</artifactId>
124 </dependency>
125 <dependency>
126 <groupId>io.micrometer</groupId>
127 <artifactId>micrometer-registry-prometheus</artifactId>
128 </dependency>
129 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100130 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100131 <artifactId>swagger-annotations</artifactId>
132 </dependency>
133 <dependency>
134 <groupId>net.logstash.logback</groupId>
135 <artifactId>logstash-logback-encoder</artifactId>
136 </dependency>
137 <dependency>
138 <groupId>net.minidev</groupId>
139 <artifactId>json-smart</artifactId>
140 </dependency>
141 <dependency>
142 <groupId>org.apache.httpcomponents</groupId>
143 <artifactId>httpclient</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100144 </dependency>
145 <dependency>
146 <groupId>org.codehaus.groovy</groupId>
147 <artifactId>groovy</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>org.codehaus.janino</groupId>
151 <artifactId>janino</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>org.onap.cps</groupId>
155 <artifactId>cps-ncmp-events</artifactId>
156 </dependency>
157 <dependency>
158 <groupId>org.projectlombok</groupId>
159 <artifactId>lombok</artifactId>
160 </dependency>
161 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-starter-web</artifactId>
164 </dependency>
165 <dependency>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-starter-validation</artifactId>
168 </dependency>
169 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100170 <groupId>org.springdoc</groupId>
171 <artifactId>springdoc-openapi-ui</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100172 </dependency>
173 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100174 <groupId>org.springframework.boot</groupId>
175 <artifactId>spring-boot-starter-security</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.springframework.boot</groupId>
179 <artifactId>spring-boot-starter-actuator</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>org.springframework.kafka</groupId>
183 <artifactId>spring-kafka</artifactId>
184 </dependency>
185 <!-- T E S T - D E P E N D E N C I E S -->
186 <dependency>
187 <groupId>org.spockframework</groupId>
188 <artifactId>spock-core</artifactId>
189 <scope>test</scope>
190 </dependency>
191 <dependency>
192 <groupId>org.spockframework</groupId>
193 <artifactId>spock-spring</artifactId>
194 <scope>test</scope>
Renu Kumari306cadd2021-10-22 00:50:29 -0400195 </dependency>
196 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100197 <groupId>org.springframework.boot</groupId>
198 <artifactId>spring-boot-starter-test</artifactId>
199 <scope>test</scope>
200 <exclusions>
201 <exclusion>
202 <groupId>org.junit.vintage</groupId>
203 <artifactId>junit-vintage-engine</artifactId>
204 </exclusion>
205 </exclusions>
206 </dependency>
207 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100208 <groupId>org.springframework.kafka</groupId>
209 <artifactId>spring-kafka-test</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100210 <scope>test</scope>
211 </dependency>
212 <dependency>
Renu Kumari306cadd2021-10-22 00:50:29 -0400213 <groupId>org.springframework.security</groupId>
214 <artifactId>spring-security-test</artifactId>
215 <scope>test</scope>
216 </dependency>
217 <dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530218 <groupId>org.testcontainers</groupId>
219 <artifactId>spock</artifactId>
220 <scope>test</scope>
221 </dependency>
222 <dependency>
223 <groupId>org.testcontainers</groupId>
224 <artifactId>kafka</artifactId>
225 <scope>test</scope>
226 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100227 </dependencies>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100228 <build>
229 <resources>
230 <resource>
231 <directory>src/main/resources</directory>
232 <filtering>true</filtering>
233 </resource>
234 <resource>
235 <directory>target/generated-sources/license</directory>
236 <includes>
237 <include>third-party-licenses.txt</include>
238 </includes>
239 </resource>
240 <resource>
241 <directory>target/generated-resources/licenses</directory>
242 <includes>
243 <include>*.*</include>
244 </includes>
245 <targetPath>third-party-licenses</targetPath>
246 </resource>
247 </resources>
248 <plugins>
249 <plugin>
egernug1118bed2023-06-28 10:57:53 +0100250 <groupId>org.openapitools</groupId>
251 <artifactId>openapi-generator-maven-plugin</artifactId>
252 <version>6.6.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100253 <executions>
254 <execution>
255 <goals>
256 <goal>generate</goal>
257 </goals>
258 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400259 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100260 <generatorName>spring</generatorName>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100261 <generateSupportingFiles>false</generateSupportingFiles>
egernug1118bed2023-06-28 10:57:53 +0100262 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
tragait7c4a9aa2021-07-19 13:46:37 +0100263 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
264 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
egernug1118bed2023-06-28 10:57:53 +0100265 <generateAliasAsModel>true</generateAliasAsModel>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100266 <configOptions>
267 <sourceFolder>src/gen/java</sourceFolder>
268 <dateLibrary>java11</dateLibrary>
269 <interfaceOnly>true</interfaceOnly>
270 <useTags>true</useTags>
egernug1118bed2023-06-28 10:57:53 +0100271 <openApiNullable>false</openApiNullable>
272 <skipDefaultInterface>true</skipDefaultInterface>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100273 </configOptions>
274 </configuration>
275 </execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100276 <execution>
277 <id>openapi-yaml-gen</id>
278 <goals>
279 <goal>generate</goal>
280 </goals>
281 <phase>compile</phase>
282 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400283 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100284 <generatorName>openapi-yaml</generatorName>
shivasubedi3d1579c2021-09-13 16:43:20 +0100285 </configuration>
286 </execution>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100287 </executions>
288 </plugin>
289 <plugin>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000290 <artifactId>maven-resources-plugin</artifactId>
291 <executions>
292 <execution>
293 <id>copy-resources</id>
294 <phase>compile</phase>
295 <goals>
296 <goal>copy-resources</goal>
297 </goals>
298 <configuration>
299 <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory>
300 <resources>
301 <resource>
egernug1118bed2023-06-28 10:57:53 +0100302 <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000303 <includes>
304 <include>openapi.yaml</include>
305 </includes>
306 </resource>
307 </resources>
308 </configuration>
309 </execution>
310 </executions>
311 </plugin>
312 <plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100313 <groupId>org.springframework.boot</groupId>
314 <artifactId>spring-boot-maven-plugin</artifactId>
JosephKeenanbe383b42022-03-23 15:12:53 +0000315 <version>2.6.4</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100316 <executions>
317 <execution>
318 <goals>
319 <goal>build-info</goal>
320 <goal>repackage</goal>
321 </goals>
322 </execution>
323 </executions>
324 </plugin>
325 <plugin>
326 <groupId>org.codehaus.gmavenplus</groupId>
327 <artifactId>gmavenplus-plugin</artifactId>
328 <executions>
329 <execution>
330 <goals>
331 <goal>compileTests</goal>
332 </goals>
333 </execution>
334 </executions>
335 </plugin>
336 <plugin>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-surefire-plugin</artifactId>
339 <configuration>
340 <argLine>${surefireArgLine}</argLine>
341 <includes>
342 <include>**/*Spec.java</include>
343 </includes>
344 <excludes>
345 <exclude>**/IT*.java</exclude>
346 </excludes>
mpriyank78e1d062022-04-08 15:12:22 +0530347 <environmentVariables>
348 <!--
349 Disable privileged container usage to cleanup the test containers;
350 these are removed automatically on jvm termination;
351 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
352 -->
353 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
354 </environmentVariables>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100355 </configuration>
356 </plugin>
shivasubedi55500c32021-06-23 16:31:02 +0100357 <plugin>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-checkstyle-plugin</artifactId>
360 <executions>
361 <execution>
Bruno Sakotoff5f74d2021-07-14 11:15:48 -0400362 <id>onap-license</id>
363 <goals>
364 <goal>check</goal>
365 </goals>
366 <phase>process-sources</phase>
367 <configuration>
368 <configLocation>onap-checkstyle/check-license.xml</configLocation>
369 <includeResources>false</includeResources>
370 <includeTestSourceDirectory>true</includeTestSourceDirectory>
371 <includeTestResources>false</includeTestResources>
372 <sourceDirectories>
373 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
374 </sourceDirectories>
375 <consoleOutput>false</consoleOutput>
376 <violationSeverity>warning</violationSeverity>
377 <failOnViolation>true</failOnViolation>
378 </configuration>
379 </execution>
380 <execution>
381 <id>onap-java-style</id>
382 <goals>
383 <goal>check</goal>
384 </goals>
385 <phase>process-sources</phase>
386 <configuration>
387 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
388 <sourceDirectories>
389 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
390 </sourceDirectories>
391 <includeResources>true</includeResources>
392 <includeTestSourceDirectory>true</includeTestSourceDirectory>
393 <includeTestResources>true</includeTestResources>
394 <consoleOutput>false</consoleOutput>
395 <violationSeverity>warning</violationSeverity>
396 <failOnViolation>true</failOnViolation>
397 </configuration>
398 </execution>
399 <execution>
shivasubedi55500c32021-06-23 16:31:02 +0100400 <id>cps-java-style</id>
401 <goals>
402 <goal>check</goal>
403 </goals>
404 <phase>process-sources</phase>
405 <configuration>
406 <configLocation>cps-java-style.xml</configLocation>
407 <sourceDirectories>
408 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
409 </sourceDirectories>
410 <includeResources>true</includeResources>
411 <includeTestSourceDirectory>true</includeTestSourceDirectory>
412 <includeTestResources>true</includeTestResources>
413 <consoleOutput>true</consoleOutput>
414 <violationSeverity>warning</violationSeverity>
415 <failOnViolation>true</failOnViolation>
416 </configuration>
417 </execution>
418 </executions>
419 <dependencies>
420 <dependency>
421 <groupId>${project.groupId}</groupId>
422 <artifactId>checkstyle</artifactId>
423 <version>${cps.version}</version>
424 </dependency>
425 </dependencies>
426 </plugin>
427 <plugin>
428 <groupId>com.github.spotbugs</groupId>
429 <artifactId>spotbugs-maven-plugin</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100430 <version>4.1.3</version>
shivasubedi55500c32021-06-23 16:31:02 +0100431 <executions>
432 <execution>
433 <id>analyze-compile</id>
434 <phase>compile</phase>
435 <goals>
436 <goal>check</goal>
437 </goals>
438 </execution>
439 </executions>
440 <dependencies>
441 <dependency>
442 <groupId>${project.groupId}</groupId>
443 <artifactId>spotbugs</artifactId>
444 <version>${cps.version}</version>
445 <scope>compile</scope>
446 </dependency>
447 </dependencies>
448 <configuration>
449 <plugins>
450 <plugin>
451 <groupId>jp.skypencil.findbugs.slf4j</groupId>
452 <artifactId>bug-pattern</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100453 <version>1.5.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100454 </plugin>
455 </plugins>
456 <effort>Max</effort>
457 <threshold>Low</threshold>
458 <failOnError>true</failOnError>
459 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
niamhcore4f431882021-09-21 16:08:29 +0100460 <addSourceDirs>true</addSourceDirs>
shivasubedi55500c32021-06-23 16:31:02 +0100461 <xmlOutput>true</xmlOutput>
462 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
463 </configuration>
464 </plugin>
465 <plugin>
466 <groupId>org.jacoco</groupId>
467 <artifactId>jacoco-maven-plugin</artifactId>
shivasubedi55500c32021-06-23 16:31:02 +0100468 <configuration>
469 <excludes>
tragait7c4a9aa2021-07-19 13:46:37 +0100470 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
shivasubedi55500c32021-06-23 16:31:02 +0100471 </excludes>
472 </configuration>
473 <executions>
474 <execution>
475 <id>default-prepare-agent</id>
476 <goals>
477 <goal>prepare-agent</goal>
478 </goals>
479 </execution>
480 <execution>
481 <id>coverage-check</id>
482 <goals>
483 <goal>check</goal>
484 </goals>
485 <configuration>
486 <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile>
487 <rules>
488 <rule>
489 <element>BUNDLE</element>
490 <limits>
491 <limit>
492 <counter>INSTRUCTION</counter>
493 <value>COVEREDRATIO</value>
494 <minimum>${jacoco.minimum.coverage}</minimum>
495 </limit>
496 </limits>
497 </rule>
498 </rules>
499 </configuration>
500 </execution>
501 <execution>
502 <id>report</id>
503 <phase>verify</phase>
504 <goals>
505 <goal>report-aggregate</goal>
506 </goals>
507 <configuration>
508 <dataFileIncludes>
509 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
510 </dataFileIncludes>
511 </configuration>
512 </execution>
513 </executions>
514 </plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100515 </plugins>
shivasubedif4b36ef2021-06-23 16:01:10 +0100516 <pluginManagement>
517 <plugins>
518 <plugin>
519 <groupId>com.google.cloud.tools</groupId>
520 <artifactId>jib-maven-plugin</artifactId>
shivasubedif4b36ef2021-06-23 16:01:10 +0100521 <configuration>
522 <container>
523 <mainClass>${app}</mainClass>
524 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
525 </container>
526 <from>
527 <image>${base.image}</image>
528 </from>
529 <to>
530 <tags>
ToineSiebelink98df7fc2022-10-27 11:06:53 +0100531 <tag>latest</tag>
JosephKeenan371ec2f2021-12-01 09:46:58 +0000532 <tag>${project.version}-latest</tag>
shivasubedif4b36ef2021-06-23 16:01:10 +0100533 </tags>
534 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
535 </to>
536 </configuration>
537 <executions>
538 <execution>
539 <phase>package</phase>
540 <id>build</id>
541 <goals>
542 <goal>dockerBuild</goal>
543 </goals>
544 </execution>
545 <execution>
546 <phase>deploy</phase>
547 <id>buildAndPush</id>
548 <goals>
549 <goal>build</goal>
550 </goals>
551 </execution>
552 </executions>
553 </plugin>
554 </plugins>
555 </pluginManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100556 </build>
shivasubedif4b36ef2021-06-23 16:01:10 +0100557 <profiles>
558 <profile>
puthuparambil.adityaeddb3dd2021-07-27 15:57:19 +0100559 <id>docker</id>
shivasubedif4b36ef2021-06-23 16:01:10 +0100560 <activation>
561 <activeByDefault>true</activeByDefault>
562 </activation>
563 <properties>
564 <image.name>ncmp-dmi-plugin</image.name>
565 </properties>
566 <build>
567 <plugins>
568 <plugin>
569 <groupId>com.google.cloud.tools</groupId>
570 <artifactId>jib-maven-plugin</artifactId>
571 </plugin>
572 </plugins>
573 </build>
574 </profile>
575 </profiles>
lukegleesonb208aeb2021-07-08 16:48:15 +0100576</project>