blob: 6e740e8d7e8a8d925cba4c03db992d9158fed1df [file] [log] [blame]
egernug5e4eb8c2024-06-21 12:53:06 +01001<?xml version="1.0" encoding="UTF-8"?>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +01002<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2024 Nordix Foundation
5 ================================================================================
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
9 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 SPDX-License-Identifier: Apache-2.0
16 ============LICENSE_END=========================================================
17-->
18
egernug5e4eb8c2024-06-21 12:53:06 +010019<project xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000023
egernug5e4eb8c2024-06-21 12:53:06 +010024 <parent>
25 <groupId>org.onap.cps</groupId>
26 <artifactId>ncmp-dmi-plugin</artifactId>
27 <version>1.6.0-SNAPSHOT</version>
28 </parent>
29
30 <artifactId>dmi-service</artifactId>
31
32 <properties>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000033 <!-- Application Configuration -->
34 <app>org.onap.cps.ncmp.dmi.Application</app>
35
36 <image.name>ncmp-dmi-plugin</image.name>
37 <!-- Encoding Configuration -->
38 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39
40 <!-- Checkstyle Configuration -->
41 <checkstyle.config.location>${project.parent.basedir}</checkstyle.config.location>
42
43 <!-- Global properties for version management -->
44 <bug.pattern.version>1.5.0</bug.pattern.version>
45 <gmavenplus.plugin.version>4.0.1</gmavenplus.plugin.version>
46 <maven.surefire.plugin.version>3.3.1</maven.surefire.plugin.version>
47 <openapi.generator.maven.plugin.version>6.6.0</openapi.generator.maven.plugin.version>
48 <spring.boot.maven.plugin.version>3.1.2</spring.boot.maven.plugin.version>
49 <spotbugs.maven.plugin.version>4.4.2</spotbugs.maven.plugin.version>
50
51 <!-- Code Coverage Configuration -->
52 <jacoco.execFile>${basedir}/target/code-coverage/jacoco-ut.exec</jacoco.execFile>
egernug5e4eb8c2024-06-21 12:53:06 +010053 <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000054 <jacoco.outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</jacoco.outputDirectory>
55 <jacoco.version>0.8.11</jacoco.version>
egernug5e4eb8c2024-06-21 12:53:06 +010056 </properties>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +000057
egernug5e4eb8c2024-06-21 12:53:06 +010058 <dependencyManagement>
59 <dependencies>
60 <dependency>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-dependencies</artifactId>
63 <version>3.1.2</version>
64 <type>pom</type>
65 <scope>import</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.springframework.cloud</groupId>
69 <artifactId>spring-cloud-dependencies</artifactId>
70 <version>2022.0.3</version>
71 <type>pom</type>
72 <scope>import</scope>
73 </dependency>
74 <dependency>
mpriyank77fd0882024-09-05 15:10:58 +010075 <groupId>org.springframework.kafka</groupId>
76 <artifactId>spring-kafka</artifactId>
77 <version>3.2.1</version>
78 </dependency>
79 <dependency>
egernug5e4eb8c2024-06-21 12:53:06 +010080 <groupId>com.google.code.gson</groupId>
81 <artifactId>gson</artifactId>
82 <version>2.8.9</version>
83 </dependency>
84 <dependency>
85 <groupId>io.swagger.core.v3</groupId>
86 <artifactId>swagger-annotations</artifactId>
leventecsanyiaa4d6e22024-07-18 13:45:35 +020087 <version>2.2.22</version>
egernug5e4eb8c2024-06-21 12:53:06 +010088 </dependency>
89 <dependency>
90 <groupId>io.cloudevents</groupId>
91 <artifactId>cloudevents-json-jackson</artifactId>
92 <version>2.5.0</version>
93 </dependency>
94 <dependency>
95 <groupId>io.cloudevents</groupId>
96 <artifactId>cloudevents-kafka</artifactId>
97 <version>2.5.0</version>
98 </dependency>
99 <dependency>
100 <groupId>io.cloudevents</groupId>
101 <artifactId>cloudevents-spring</artifactId>
102 <version>2.5.0</version>
103 </dependency>
104 <dependency>
105 <groupId>net.logstash.logback</groupId>
106 <artifactId>logstash-logback-encoder</artifactId>
107 <version>7.0.1</version>
108 </dependency>
109 <dependency>
110 <groupId>net.minidev</groupId>
111 <artifactId>json-smart</artifactId>
112 <version>2.5.0</version>
113 </dependency>
114 <dependency>
115 <groupId>org.apache.httpcomponents</groupId>
116 <artifactId>httpclient</artifactId>
117 <version>4.5.13</version>
118 </dependency>
119 <dependency>
120 <groupId>org.codehaus.groovy</groupId>
121 <artifactId>groovy</artifactId>
122 <version>3.0.18</version>
123 </dependency>
124 <dependency>
125 <groupId>org.spockframework</groupId>
126 <artifactId>spock-core</artifactId>
127 <version>2.4-M1-groovy-3.0</version>
128 </dependency>
129 <dependency>
130 <groupId>org.spockframework</groupId>
131 <artifactId>spock-spring</artifactId>
132 <version>2.4-M1-groovy-3.0</version>
133 </dependency>
134 <dependency>
135 <groupId>org.springdoc</groupId>
136 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
137 <version>2.0.2</version>
138 </dependency>
139 <dependency>
140 <groupId>org.testcontainers</groupId>
141 <artifactId>testcontainers-bom</artifactId>
142 <version>1.18.3</version>
143 <type>pom</type>
144 <scope>import</scope>
145 </dependency>
146 <dependency>
147 <groupId>org.codehaus.janino</groupId>
148 <artifactId>janino</artifactId>
149 <version>3.1.10</version>
150 </dependency>
151 <dependency>
152 <groupId>org.projectlombok</groupId>
153 <artifactId>lombok</artifactId>
154 <version>1.18.24</version>
155 </dependency>
156 <dependency>
157 <groupId>org.onap.cps</groupId>
158 <artifactId>cps-ncmp-events</artifactId>
159 <version>${cps.version}</version>
160 </dependency>
161 <dependency>
162 <groupId>org.apache.httpcomponents.client5</groupId>
163 <artifactId>httpclient5</artifactId>
164 <version>5.2.1</version>
165 </dependency>
mpriyank77fd0882024-09-05 15:10:58 +0100166 <dependency>
167 <groupId>com.jayway.jsonpath</groupId>
168 <artifactId>json-path</artifactId>
169 <version>2.9.0</version>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.kafka</groupId>
173 <artifactId>spring-kafka-test</artifactId>
174 <version>3.2.1</version>
175 </dependency>
egernug5e4eb8c2024-06-21 12:53:06 +0100176 </dependencies>
177 </dependencyManagement>
178 <dependencies>
179 <dependency>
180 <groupId>org.springframework.boot</groupId>
181 <artifactId>spring-boot-starter-web</artifactId>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-validation</artifactId>
186 </dependency>
187 <dependency>
188 <groupId>org.springdoc</groupId>
189 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
190 </dependency>
191 <dependency>
192 <groupId>org.springframework.boot</groupId>
193 <artifactId>spring-boot-starter-security</artifactId>
194 </dependency>
195 <dependency>
196 <groupId>org.springframework.boot</groupId>
197 <artifactId>spring-boot-starter-actuator</artifactId>
198 </dependency>
199 <dependency>
200 <groupId>org.springframework.kafka</groupId>
201 <artifactId>spring-kafka</artifactId>
202 </dependency>
203 <dependency>
204 <groupId>com.google.code.gson</groupId>
205 <artifactId>gson</artifactId>
206 </dependency>
207 <dependency>
208 <groupId>com.jayway.jsonpath</groupId>
209 <artifactId>json-path</artifactId>
210 </dependency>
211 <dependency>
212 <groupId>io.micrometer</groupId>
213 <artifactId>micrometer-registry-prometheus</artifactId>
214 </dependency>
215 <dependency>
216 <groupId>io.swagger.core.v3</groupId>
217 <artifactId>swagger-annotations</artifactId>
218 </dependency>
219 <dependency>
220 <groupId>io.cloudevents</groupId>
221 <artifactId>cloudevents-json-jackson</artifactId>
222 </dependency>
223 <dependency>
224 <groupId>io.cloudevents</groupId>
225 <artifactId>cloudevents-kafka</artifactId>
226 </dependency>
227 <dependency>
228 <groupId>io.cloudevents</groupId>
229 <artifactId>cloudevents-spring</artifactId>
230 </dependency>
231 <dependency>
232 <groupId>net.logstash.logback</groupId>
233 <artifactId>logstash-logback-encoder</artifactId>
234 </dependency>
235 <dependency>
236 <groupId>net.minidev</groupId>
237 <artifactId>json-smart</artifactId>
238 </dependency>
239 <dependency>
240 <groupId>org.apache.httpcomponents</groupId>
241 <artifactId>httpclient</artifactId>
242 </dependency>
243
244 <dependency>
245 <groupId>org.codehaus.groovy</groupId>
246 <artifactId>groovy</artifactId>
247 </dependency>
248 <dependency>
249 <groupId>org.codehaus.janino</groupId>
250 <artifactId>janino</artifactId>
251 </dependency>
252 <dependency>
253 <groupId>org.eclipse.jetty</groupId>
254 <artifactId>jetty-server</artifactId>
255 </dependency>
256 <dependency>
257 <groupId>org.eclipse.jetty</groupId>
258 <artifactId>jetty-http</artifactId>
259 </dependency>
260 <dependency>
261 <groupId>org.onap.cps</groupId>
262 <artifactId>cps-ncmp-events</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000263 <version>${cps.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100264 </dependency>
265 <dependency>
266 <groupId>org.projectlombok</groupId>
267 <artifactId>lombok</artifactId>
268 </dependency>
269 <dependency>
270 <groupId>org.apache.httpcomponents.client5</groupId>
271 <artifactId>httpclient5</artifactId>
272 </dependency>
273 <!-- T E S T - D E P E N D E N C I E S -->
274 <dependency>
275 <groupId>org.spockframework</groupId>
276 <artifactId>spock-core</artifactId>
277 <scope>test</scope>
278 </dependency>
279 <dependency>
280 <groupId>org.spockframework</groupId>
281 <artifactId>spock-spring</artifactId>
282 <scope>test</scope>
283 </dependency>
284 <dependency>
285 <groupId>org.springframework.boot</groupId>
286 <artifactId>spring-boot-starter-test</artifactId>
287 <scope>test</scope>
288 <exclusions>
289 <exclusion>
290 <groupId>org.junit.vintage</groupId>
291 <artifactId>junit-vintage-engine</artifactId>
292 </exclusion>
293 </exclusions>
294 </dependency>
295 <dependency>
296 <groupId>org.springframework.kafka</groupId>
297 <artifactId>spring-kafka-test</artifactId>
298 <scope>test</scope>
299 </dependency>
300 <dependency>
301 <groupId>org.springframework.security</groupId>
302 <artifactId>spring-security-test</artifactId>
303 <scope>test</scope>
304 </dependency>
305 <dependency>
306 <groupId>org.testcontainers</groupId>
307 <artifactId>spock</artifactId>
308 <scope>test</scope>
309 </dependency>
310 <dependency>
311 <groupId>org.testcontainers</groupId>
312 <artifactId>kafka</artifactId>
313 <scope>test</scope>
314 </dependency>
315 </dependencies>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000316
egernug5e4eb8c2024-06-21 12:53:06 +0100317 <build>
318 <resources>
319 <resource>
320 <directory>src/main/resources</directory>
321 <filtering>true</filtering>
322 </resource>
323 <resource>
324 <directory>target/generated-sources/license</directory>
325 <includes>
326 <include>third-party-licenses.txt</include>
327 </includes>
328 </resource>
329 <resource>
330 <directory>target/generated-resources/licenses</directory>
331 <includes>
332 <include>*.*</include>
333 </includes>
334 <targetPath>third-party-licenses</targetPath>
335 </resource>
336 </resources>
337 <plugins>
338 <plugin>
339 <groupId>org.openapitools</groupId>
340 <artifactId>openapi-generator-maven-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000341 <version>${openapi.generator.maven.plugin.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100342 <executions>
343 <execution>
344 <id>dmi-code-gen</id>
345 <goals>
346 <goal>generate</goal>
347 </goals>
348 <configuration>
egernug0900a1e2024-09-09 12:05:52 +0100349 <inputSpec>${project.basedir}/../docs/api/swagger/openapi.yaml</inputSpec>
egernug5e4eb8c2024-06-21 12:53:06 +0100350 <generatorName>spring</generatorName>
351 <generateSupportingFiles>false</generateSupportingFiles>
352 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
353 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
354 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
355 <generateAliasAsModel>true</generateAliasAsModel>
356 <configOptions>
357 <sourceFolder>src/gen/java</sourceFolder>
358 <dateLibrary>java11</dateLibrary>
359 <interfaceOnly>true</interfaceOnly>
360 <useTags>true</useTags>
361 <useSpringBoot3>true</useSpringBoot3>
362 <openApiNullable>false</openApiNullable>
363 <skipDefaultInterface>true</skipDefaultInterface>
364 </configOptions>
365 </configuration>
366 </execution>
367 <execution>
368 <id>dmi-datajob-code-gen</id>
369 <goals>
370 <goal>generate</goal>
371 </goals>
372 <configuration>
egernug0900a1e2024-09-09 12:05:52 +0100373 <inputSpec>${project.basedir}/../docs/api/swagger/openapi-datajob.yaml</inputSpec>
egernug5e4eb8c2024-06-21 12:53:06 +0100374 <generatorName>spring</generatorName>
375 <generateSupportingFiles>false</generateSupportingFiles>
376 <invokerPackage>org.onap.cps.ncmp.dmi.datajobs.rest.controller</invokerPackage>
377 <apiPackage>org.onap.cps.ncmp.dmi.datajobs.rest.api</apiPackage>
378 <modelPackage>org.onap.cps.ncmp.dmi.datajobs.model</modelPackage>
379 <generateAliasAsModel>true</generateAliasAsModel>
380 <configOptions>
381 <sourceFolder>src/gen/java</sourceFolder>
382 <dateLibrary>java11</dateLibrary>
383 <interfaceOnly>true</interfaceOnly>
384 <useTags>true</useTags>
385 <useSpringBoot3>true</useSpringBoot3>
386 <openApiNullable>false</openApiNullable>
387 <skipDefaultInterface>true</skipDefaultInterface>
388 </configOptions>
389 </configuration>
390 </execution>
391 <execution>
392 <id>openapi-yaml-gen</id>
393 <goals>
394 <goal>generate</goal>
395 </goals>
396 <phase>compile</phase>
397 <configuration>
egernug0900a1e2024-09-09 12:05:52 +0100398 <inputSpec>${project.basedir}/../docs/api/swagger/openapi.yaml</inputSpec>
egernug5e4eb8c2024-06-21 12:53:06 +0100399 <generatorName>openapi-yaml</generatorName>
400 <configOptions>
401 <outputFile>openapi/openapi.yaml</outputFile>
402 </configOptions>
403 </configuration>
404 </execution>
405 <execution>
406 <id>openapi-datajob-yaml-gen</id>
407 <goals>
408 <goal>generate</goal>
409 </goals>
410 <phase>compile</phase>
411 <configuration>
egernug0900a1e2024-09-09 12:05:52 +0100412 <inputSpec>${project.basedir}/../docs/api/swagger/openapi-datajob.yaml</inputSpec>
egernug5e4eb8c2024-06-21 12:53:06 +0100413 <generatorName>openapi-yaml</generatorName>
414 <configOptions>
415 <outputFile>openapi/openapi-datajob.yaml</outputFile>
416 </configOptions>
417 </configuration>
418 </execution>
419 </executions>
420 </plugin>
421 <plugin>
egernug5e4eb8c2024-06-21 12:53:06 +0100422 <groupId>org.springframework.boot</groupId>
423 <artifactId>spring-boot-maven-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000424 <version>${spring.boot.maven.plugin.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100425 <executions>
426 <execution>
427 <goals>
428 <goal>build-info</goal>
429 <goal>repackage</goal>
430 </goals>
431 </execution>
432 </executions>
433 </plugin>
434 <plugin>
435 <groupId>org.codehaus.gmavenplus</groupId>
436 <artifactId>gmavenplus-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000437 <version>${gmavenplus.plugin.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100438 <executions>
439 <execution>
440 <goals>
441 <goal>compileTests</goal>
442 </goals>
443 </execution>
444 </executions>
445 </plugin>
446 <plugin>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-surefire-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000449 <version>${maven.surefire.plugin.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100450 <configuration>
451 <argLine>${surefireArgLine}</argLine>
452 <includes>
453 <include>**/*Spec.java</include>
454 </includes>
455 <excludes>
456 <exclude>**/IT*.java</exclude>
457 </excludes>
458 <environmentVariables>
459 <!--
460 Disable privileged container usage to cleanup the test containers;
461 these are removed automatically on jvm termination;
462 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
463 -->
464 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
465 </environmentVariables>
466 </configuration>
467 </plugin>
468 <plugin>
egernug5e4eb8c2024-06-21 12:53:06 +0100469 <groupId>com.github.spotbugs</groupId>
470 <artifactId>spotbugs-maven-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000471 <version>${spotbugs.maven.plugin.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100472 <executions>
473 <execution>
474 <id>analyze-compile</id>
475 <phase>compile</phase>
476 <goals>
477 <goal>check</goal>
478 </goals>
479 </execution>
480 </executions>
481 <dependencies>
482 <dependency>
483 <groupId>${project.groupId}</groupId>
484 <artifactId>spotbugs</artifactId>
485 <version>${cps.version}</version>
486 <scope>compile</scope>
487 </dependency>
488 </dependencies>
489 <configuration>
490 <plugins>
491 <plugin>
492 <groupId>jp.skypencil.findbugs.slf4j</groupId>
493 <artifactId>bug-pattern</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000494 <version>${bug.pattern.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100495 </plugin>
496 </plugins>
497 <effort>Max</effort>
498 <threshold>Low</threshold>
499 <failOnError>true</failOnError>
500 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
501 <addSourceDirs>true</addSourceDirs>
502 <xmlOutput>true</xmlOutput>
503 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
504 </configuration>
505 </plugin>
506 <plugin>
507 <groupId>org.jacoco</groupId>
508 <artifactId>jacoco-maven-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000509 <version>${jacoco.version}</version>
egernug5e4eb8c2024-06-21 12:53:06 +0100510 <configuration>
511 <excludes>
512 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
513 <exclude>org/onap/cps/ncmp/dmi/datajobs/model/*</exclude>
514 </excludes>
515 </configuration>
516 <executions>
517 <execution>
518 <id>default-prepare-agent</id>
519 <goals>
520 <goal>prepare-agent</goal>
521 </goals>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000522 <configuration>
523 <destFile>${jacoco.execFile}</destFile>
524 <propertyName>surefireArgLine</propertyName>
525 </configuration>
egernug5e4eb8c2024-06-21 12:53:06 +0100526 </execution>
527 <execution>
528 <id>coverage-check</id>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000529 <phase>test</phase>
egernug5e4eb8c2024-06-21 12:53:06 +0100530 <goals>
531 <goal>check</goal>
532 </goals>
533 <configuration>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000534 <dataFile>${jacoco.execFile}</dataFile>
egernug5e4eb8c2024-06-21 12:53:06 +0100535 <rules>
536 <rule>
537 <element>BUNDLE</element>
538 <limits>
539 <limit>
540 <counter>INSTRUCTION</counter>
541 <value>COVEREDRATIO</value>
542 <minimum>${jacoco.minimum.coverage}</minimum>
543 </limit>
544 </limits>
545 </rule>
546 </rules>
547 </configuration>
548 </execution>
549 <execution>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000550 <id>post-unit-test</id>
551 <phase>test</phase>
egernug5e4eb8c2024-06-21 12:53:06 +0100552 <goals>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000553 <goal>report</goal>
egernug5e4eb8c2024-06-21 12:53:06 +0100554 </goals>
555 <configuration>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000556 <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
557 <!-- Sets the path to the file which contains the execution data. -->
558 <dataFile>${jacoco.execFile}</dataFile>
559 <!-- Sets the output directory for the code coverage report. -->
560 <outputDirectory>${jacoco.outputDirectory}</outputDirectory>
egernug5e4eb8c2024-06-21 12:53:06 +0100561 </configuration>
562 </execution>
563 </executions>
564 </plugin>
565 </plugins>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000566 <pluginManagement>
567 <plugins>
568 <plugin>
569 <groupId>com.google.cloud.tools</groupId>
570 <artifactId>jib-maven-plugin</artifactId>
571 <version>3.3.2</version>
572 <configuration>
573 <container>
574 <mainClass>${app}</mainClass>
575 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
576 </container>
577 <from>
578 <image>${base.image}</image>
579 </from>
580 <to>
581 <tags>
582 <tag>latest</tag>
583 <tag>${project.version}-latest</tag>
584 </tags>
585 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
586 </to>
587 </configuration>
588 <executions>
589 <execution>
590 <phase>package</phase>
591 <id>build</id>
592 <goals>
593 <goal>dockerBuild</goal>
594 </goals>
595 </execution>
596 <execution>
597 <phase>deploy</phase>
598 <id>buildAndPush</id>
599 <goals>
600 <goal>build</goal>
601 </goals>
602 </execution>
603 </executions>
604 </plugin>
605 </plugins>
606 </pluginManagement>
egernug5e4eb8c2024-06-21 12:53:06 +0100607 </build>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000608 <profiles>
609 <profile>
610 <id>docker</id>
611 <activation>
612 <activeByDefault>true</activeByDefault>
613 </activation>
614 <properties>
615 <image.name>ncmp-dmi-plugin</image.name>
616 </properties>
617 <build>
618 <plugins>
619 <plugin>
620 <groupId>com.google.cloud.tools</groupId>
621 <artifactId>jib-maven-plugin</artifactId>
622 </plugin>
623 </plugins>
624 </build>
625 </profile>
626 </profiles>
egernug5e4eb8c2024-06-21 12:53:06 +0100627</project>