blob: 00457f4458f0156779d612269def0158ff20d7f6 [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (c) 2021 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=========================================================
shivasubedi3d1579c2021-09-13 16:43:20 +010020--><!DOCTYPE project [
21 <!ELEMENT project (modelVersion|parent|organization|groupId|artifactId|version|name|description|properties|dependencyManagement|dependencies|build|pluginManagement)*>
22 <!ATTLIST project
23 xmlns CDATA #REQUIRED
24 xmlns:xsi CDATA #REQUIRED
25 xsi:schemaLocation CDATA #REQUIRED>
26 <!ELEMENT modelVersion (#PCDATA)>
27 <!ELEMENT parent (groupId|artifactId|version|relativePath)*>
28 <!ELEMENT groupId (#PCDATA)>
29 <!ELEMENT artifactId (#PCDATA)>
30 <!ELEMENT version (#PCDATA)>
31 <!ELEMENT relativePath (#PCDATA)>
32 <!ELEMENT organization (name|url)*>
33 <!ELEMENT name (#PCDATA)>
34 <!ELEMENT url (#PCDATA)>
35 <!ELEMENT description (#PCDATA)>
36 <!ELEMENT properties (app|base.image|cps.version|image.tag|jacoco.minimum.coverage|maven.build.timestamp.format|project.build.sourceEncoding|image.name)*>
37 <!ELEMENT app (#PCDATA)>
38 <!ELEMENT base.image (#PCDATA)>
39 <!ELEMENT cps.version (#PCDATA)>
40 <!ELEMENT image.tag (#PCDATA)>
41 <!ELEMENT jacoco.minimum.coverage (#PCDATA)>
42 <!ELEMENT maven.build.timestamp.format (#PCDATA)>
43 <!ELEMENT project.build.sourceEncoding (#PCDATA)>
44 <!ELEMENT dependencyManagement (dependencies)*>
45 <!ELEMENT dependencies (dependency)*>
46 <!ELEMENT dependency (groupId|artifactId|version|type|scope|exclusions)*>
47 <!ELEMENT type (#PCDATA)>
48 <!ELEMENT scope (#PCDATA)>
49 <!ELEMENT exclusions (exclusion)*>
50 <!ELEMENT exclusion (groupId|artifactId)*>
51 <!ELEMENT build (resources|plugins|plugin)*>
52 <!ELEMENT resources (resource)*>
53 <!ELEMENT resource (directory|filtering|includes|targetPath)*>
54 <!ELEMENT directory (#PCDATA)>
55 <!ELEMENT filtering (#PCDATA)>
56 <!ELEMENT includes (include)*>
57 <!ELEMENT include (#PCDATA)>
58 <!ELEMENT targetPath (#PCDATA)>
59 <!ELEMENT plugins (plugin)*>
60 <!ELEMENT plugin (groupId|artifactId|version|executions|configuration|dependencies)*>
61 <!ELEMENT executions (execution)*>
62 <!ELEMENT execution (goals|configuration|id|phase)*>
63 <!ELEMENT goals (goal)*>
64 <!ELEMENT goal (#PCDATA)>
65 <!ELEMENT configuration (inputSpec|language|generateSupportingFiles|apiPackage|modelPackage|configOptions|argLine|includes|excludes|configLocation|includeResources|includeTestSourceDirectory|includeTestResources|sourceDirectories|consoleOutput|violationSeverity|failOnViolation|plugins|effort|threshold|failOnError|excludeFilterFile|xmlOutput|xmlOutputDirectory|dataFile|rules|dataFileIncludes|container|from|to)*>
66 <!ELEMENT inputSpec (#PCDATA)>
67 <!ELEMENT language (#PCDATA)>
68 <!ELEMENT generateSupportingFiles (#PCDATA)>
69 <!ELEMENT apiPackage (#PCDATA)>
70 <!ELEMENT modelPackage (#PCDATA)>
71 <!ELEMENT configOptions (sourceFolder|dateLibrary|interfaceOnly|useTags)*>
72 <!ELEMENT sourceFolder (#PCDATA)>
73 <!ELEMENT dateLibrary (#PCDATA)>
74 <!ELEMENT interfaceOnly (#PCDATA)>
75 <!ELEMENT useTags (#PCDATA)>
76 <!ELEMENT id (#PCDATA)>
77 <!ELEMENT phase (#PCDATA)>
78 <!ELEMENT argLine (#PCDATA)>
79 <!ELEMENT excludes (exclude)*>
80 <!ELEMENT exclude (#PCDATA)>
81 <!ELEMENT configLocation (#PCDATA)>
82 <!ELEMENT includeResources (#PCDATA)>
83 <!ELEMENT includeTestSourceDirectory (#PCDATA)>
84 <!ELEMENT includeTestResources (#PCDATA)>
85 <!ELEMENT sourceDirectories (sourceDirectory)*>
86 <!ELEMENT sourceDirectory (#PCDATA)>
87 <!ELEMENT consoleOutput (#PCDATA)>
88 <!ELEMENT violationSeverity (#PCDATA)>
89 <!ELEMENT failOnViolation (#PCDATA)>
90 <!ELEMENT effort (#PCDATA)>
91 <!ELEMENT threshold (#PCDATA)>
92 <!ELEMENT failOnError (#PCDATA)>
93 <!ELEMENT excludeFilterFile (#PCDATA)>
94 <!ELEMENT xmlOutput (#PCDATA)>
95 <!ELEMENT xmlOutputDirectory (#PCDATA)>
96 <!ELEMENT dataFile (#PCDATA)>
97 <!ELEMENT rules (rule)*>
98 <!ELEMENT rule (element|limits)*>
99 <!ELEMENT element (#PCDATA)>
100 <!ELEMENT limits (limit)*>
101 <!ELEMENT limit (counter|value|minimum)*>
102 <!ELEMENT counter (#PCDATA)>
103 <!ELEMENT value (#PCDATA)>
104 <!ELEMENT minimum (#PCDATA)>
105 <!ELEMENT dataFileIncludes (fileInclude)*>
106 <!ELEMENT fileInclude (#PCDATA)>
107 <!ELEMENT pluginManagement (plugins)*>
108 <!ELEMENT container (mainClass|creationTime)*>
109 <!ELEMENT mainClass (#PCDATA)>
110 <!ELEMENT creationTime (#PCDATA)>
111 <!ELEMENT from (image)*>
112 <!ELEMENT image (#PCDATA)>
113 <!ELEMENT to (tags|image)*>
114 <!ELEMENT tags (tag)*>
115 <!ELEMENT tag (#PCDATA)>
116 <!ELEMENT profiles (profile)*>
117 <!ELEMENT profile (id|activation|properties|build)*>
118 <!ELEMENT activation (activeByDefault)*>
119 <!ELEMENT activeByDefault (#PCDATA)>
120 <!ELEMENT image.name (#PCDATA)>
121 ]>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100122<project xmlns="http://maven.apache.org/POM/4.0.0"
puthuparambil.aditya08fe9712021-07-13 11:52:13 +0100123 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
124 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 +0100125 <modelVersion>4.0.0</modelVersion>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100126 <parent>
127 <groupId>org.onap.oparent</groupId>
128 <artifactId>oparent</artifactId>
129 <version>3.2.0</version>
130 <relativePath/>
131 </parent>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100132 <organization>
133 <name>ONAP - CPS</name>
134 <url>http://www.onap.org/</url>
135 </organization>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100136 <groupId>org.onap.cps</groupId>
137 <artifactId>ncmp-dmi-plugin</artifactId>
Bruno Sakotoc77e4622021-09-14 10:07:15 -0400138 <version>1.0.0-SNAPSHOT</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100139 <name>ncmp-dmi-plugin</name>
140 <description>DMI Plugin Service</description>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100141 <properties>
niamhcore71a61bb2021-07-06 10:32:17 +0100142 <app>org.onap.cps.ncmp.dmi.Application</app>
shivasubedif4b36ef2021-06-23 16:01:10 +0100143 <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
Renu Kumari6efb16e2021-09-13 13:41:17 -0400144 <cps.version>2.0.0</cps.version>
shivasubedif4b36ef2021-06-23 16:01:10 +0100145 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
shivasubedi55500c32021-06-23 16:31:02 +0100146 <jacoco.minimum.coverage>0.7</jacoco.minimum.coverage>
shivasubedif4b36ef2021-06-23 16:01:10 +0100147 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100148 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100149 </properties>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100150 <dependencyManagement>
151 <dependencies>
152 <dependency>
153 <groupId>org.springframework.boot</groupId>
154 <artifactId>spring-boot-dependencies</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100155 <version>2.5.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100156 <type>pom</type>
157 <scope>import</scope>
158 </dependency>
159 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100160 <groupId>org.spockframework</groupId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100161 <artifactId>spock-bom</artifactId>
162 <version>2.0-M5-groovy-3.0</version>
163 <type>pom</type>
164 <scope>import</scope>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100165 </dependency>
166 </dependencies>
167 </dependencyManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100168 <dependencies>
169 <dependency>
170 <groupId>org.springframework.boot</groupId>
171 <artifactId>spring-boot-starter-web</artifactId>
172 </dependency>
173 <dependency>
174 <groupId>org.springframework.boot</groupId>
175 <artifactId>spring-boot-starter-validation</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.codehaus.groovy</groupId>
179 <artifactId>groovy</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100180 </dependency>
181 <dependency>
182 <groupId>org.springframework.boot</groupId>
183 <artifactId>spring-boot-starter-test</artifactId>
184 <scope>test</scope>
185 <exclusions>
186 <exclusion>
187 <groupId>org.junit.vintage</groupId>
188 <artifactId>junit-vintage-engine</artifactId>
189 </exclusion>
190 </exclusions>
191 </dependency>
192 <dependency>
193 <groupId>org.spockframework</groupId>
194 <artifactId>spock-core</artifactId>
195 <scope>test</scope>
196 </dependency>
197 <dependency>
198 <groupId>org.spockframework</groupId>
199 <artifactId>spock-spring</artifactId>
200 <scope>test</scope>
201 </dependency>
202 <dependency>
203 <groupId>io.swagger</groupId>
204 <artifactId>swagger-annotations</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100205 <version>1.6.2</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100206 </dependency>
shivasubedi55500c32021-06-23 16:31:02 +0100207 <dependency>
208 <groupId>io.springfox</groupId>
209 <artifactId>springfox-boot-starter</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100210 <version>3.0.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100211 </dependency>
212 <dependency>
213 <groupId>org.springframework.boot</groupId>
214 <artifactId>spring-boot-starter-security</artifactId>
215 </dependency>
216 <dependency>
217 <groupId>org.springframework.boot</groupId>
218 <artifactId>spring-boot-starter-actuator</artifactId>
219 </dependency>
puthuparambil.aditya08fe9712021-07-13 11:52:13 +0100220 <dependency>
niamhcore71a61bb2021-07-06 10:32:17 +0100221 <groupId>org.projectlombok</groupId>
222 <artifactId>lombok</artifactId>
223 </dependency>
224 <dependency>
puthuparambil.aditya08fe9712021-07-13 11:52:13 +0100225 <groupId>io.micrometer</groupId>
226 <artifactId>micrometer-registry-prometheus</artifactId>
227 </dependency>
niamhcore3139ece2021-07-30 16:25:16 +0100228 <dependency>
229 <groupId>net.minidev</groupId>
230 <artifactId>json-smart</artifactId>
231 </dependency>
niamhcore6d7e3042021-08-30 09:31:53 +0100232 <dependency>
233 <groupId>com.google.code.gson</groupId>
234 <artifactId>gson</artifactId>
235 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100236 </dependencies>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100237 <build>
238 <resources>
239 <resource>
240 <directory>src/main/resources</directory>
241 <filtering>true</filtering>
242 </resource>
243 <resource>
244 <directory>target/generated-sources/license</directory>
245 <includes>
246 <include>third-party-licenses.txt</include>
247 </includes>
248 </resource>
249 <resource>
250 <directory>target/generated-resources/licenses</directory>
251 <includes>
252 <include>*.*</include>
253 </includes>
254 <targetPath>third-party-licenses</targetPath>
255 </resource>
256 </resources>
257 <plugins>
258 <plugin>
259 <groupId>io.swagger.codegen.v3</groupId>
260 <artifactId>swagger-codegen-maven-plugin</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100261 <version>3.0.18</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100262 <executions>
263 <execution>
264 <goals>
265 <goal>generate</goal>
266 </goals>
267 <configuration>
268 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
269 <language>spring</language>
270 <generateSupportingFiles>false</generateSupportingFiles>
tragait7c4a9aa2021-07-19 13:46:37 +0100271 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
272 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100273 <configOptions>
274 <sourceFolder>src/gen/java</sourceFolder>
275 <dateLibrary>java11</dateLibrary>
276 <interfaceOnly>true</interfaceOnly>
277 <useTags>true</useTags>
278 </configOptions>
279 </configuration>
280 </execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100281 <execution>
282 <id>openapi-yaml-gen</id>
283 <goals>
284 <goal>generate</goal>
285 </goals>
286 <phase>compile</phase>
287 <configuration>
288 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
289 <language>openapi-yaml</language>
290 </configuration>
291 </execution>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100292 </executions>
293 </plugin>
294 <plugin>
295 <groupId>org.springframework.boot</groupId>
296 <artifactId>spring-boot-maven-plugin</artifactId>
shivasubedi7e340a82021-08-20 12:10:10 +0100297 <version>2.3.3.RELEASE</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100298 <executions>
299 <execution>
300 <goals>
301 <goal>build-info</goal>
302 <goal>repackage</goal>
303 </goals>
304 </execution>
305 </executions>
306 </plugin>
307 <plugin>
308 <groupId>org.codehaus.gmavenplus</groupId>
309 <artifactId>gmavenplus-plugin</artifactId>
310 <executions>
311 <execution>
312 <goals>
313 <goal>compileTests</goal>
314 </goals>
315 </execution>
316 </executions>
317 </plugin>
318 <plugin>
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-surefire-plugin</artifactId>
321 <configuration>
322 <argLine>${surefireArgLine}</argLine>
323 <includes>
324 <include>**/*Spec.java</include>
325 </includes>
326 <excludes>
327 <exclude>**/IT*.java</exclude>
328 </excludes>
329 </configuration>
330 </plugin>
shivasubedi55500c32021-06-23 16:31:02 +0100331 <plugin>
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-checkstyle-plugin</artifactId>
334 <executions>
335 <execution>
Bruno Sakotoff5f74d2021-07-14 11:15:48 -0400336 <id>onap-license</id>
337 <goals>
338 <goal>check</goal>
339 </goals>
340 <phase>process-sources</phase>
341 <configuration>
342 <configLocation>onap-checkstyle/check-license.xml</configLocation>
343 <includeResources>false</includeResources>
344 <includeTestSourceDirectory>true</includeTestSourceDirectory>
345 <includeTestResources>false</includeTestResources>
346 <sourceDirectories>
347 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
348 </sourceDirectories>
349 <consoleOutput>false</consoleOutput>
350 <violationSeverity>warning</violationSeverity>
351 <failOnViolation>true</failOnViolation>
352 </configuration>
353 </execution>
354 <execution>
355 <id>onap-java-style</id>
356 <goals>
357 <goal>check</goal>
358 </goals>
359 <phase>process-sources</phase>
360 <configuration>
361 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
362 <sourceDirectories>
363 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
364 </sourceDirectories>
365 <includeResources>true</includeResources>
366 <includeTestSourceDirectory>true</includeTestSourceDirectory>
367 <includeTestResources>true</includeTestResources>
368 <consoleOutput>false</consoleOutput>
369 <violationSeverity>warning</violationSeverity>
370 <failOnViolation>true</failOnViolation>
371 </configuration>
372 </execution>
373 <execution>
shivasubedi55500c32021-06-23 16:31:02 +0100374 <id>cps-java-style</id>
375 <goals>
376 <goal>check</goal>
377 </goals>
378 <phase>process-sources</phase>
379 <configuration>
380 <configLocation>cps-java-style.xml</configLocation>
381 <sourceDirectories>
382 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
383 </sourceDirectories>
384 <includeResources>true</includeResources>
385 <includeTestSourceDirectory>true</includeTestSourceDirectory>
386 <includeTestResources>true</includeTestResources>
387 <consoleOutput>true</consoleOutput>
388 <violationSeverity>warning</violationSeverity>
389 <failOnViolation>true</failOnViolation>
390 </configuration>
391 </execution>
392 </executions>
393 <dependencies>
394 <dependency>
395 <groupId>${project.groupId}</groupId>
396 <artifactId>checkstyle</artifactId>
397 <version>${cps.version}</version>
398 </dependency>
399 </dependencies>
400 </plugin>
401 <plugin>
402 <groupId>com.github.spotbugs</groupId>
403 <artifactId>spotbugs-maven-plugin</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100404 <version>4.1.3</version>
shivasubedi55500c32021-06-23 16:31:02 +0100405 <executions>
406 <execution>
407 <id>analyze-compile</id>
408 <phase>compile</phase>
409 <goals>
410 <goal>check</goal>
411 </goals>
412 </execution>
413 </executions>
414 <dependencies>
415 <dependency>
416 <groupId>${project.groupId}</groupId>
417 <artifactId>spotbugs</artifactId>
418 <version>${cps.version}</version>
419 <scope>compile</scope>
420 </dependency>
421 </dependencies>
422 <configuration>
423 <plugins>
424 <plugin>
425 <groupId>jp.skypencil.findbugs.slf4j</groupId>
426 <artifactId>bug-pattern</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100427 <version>1.5.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100428 </plugin>
429 </plugins>
430 <effort>Max</effort>
431 <threshold>Low</threshold>
432 <failOnError>true</failOnError>
433 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
434 <xmlOutput>true</xmlOutput>
435 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
436 </configuration>
437 </plugin>
438 <plugin>
439 <groupId>org.jacoco</groupId>
440 <artifactId>jacoco-maven-plugin</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100441 <version>0.8.5</version>
shivasubedi55500c32021-06-23 16:31:02 +0100442 <configuration>
443 <excludes>
tragait7c4a9aa2021-07-19 13:46:37 +0100444 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
445 <exclude>org/onap/cps/ncmp/dmi/config/*</exclude>
shivasubedi55500c32021-06-23 16:31:02 +0100446 </excludes>
447 </configuration>
448 <executions>
449 <execution>
450 <id>default-prepare-agent</id>
451 <goals>
452 <goal>prepare-agent</goal>
453 </goals>
454 </execution>
455 <execution>
456 <id>coverage-check</id>
457 <goals>
458 <goal>check</goal>
459 </goals>
460 <configuration>
461 <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile>
462 <rules>
463 <rule>
464 <element>BUNDLE</element>
465 <limits>
466 <limit>
467 <counter>INSTRUCTION</counter>
468 <value>COVEREDRATIO</value>
469 <minimum>${jacoco.minimum.coverage}</minimum>
470 </limit>
471 </limits>
472 </rule>
473 </rules>
474 </configuration>
475 </execution>
476 <execution>
477 <id>report</id>
478 <phase>verify</phase>
479 <goals>
480 <goal>report-aggregate</goal>
481 </goals>
482 <configuration>
483 <dataFileIncludes>
484 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
485 </dataFileIncludes>
486 </configuration>
487 </execution>
488 </executions>
489 </plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100490 </plugins>
shivasubedif4b36ef2021-06-23 16:01:10 +0100491 <pluginManagement>
492 <plugins>
493 <plugin>
494 <groupId>com.google.cloud.tools</groupId>
495 <artifactId>jib-maven-plugin</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100496 <version>2.8.0</version>
shivasubedif4b36ef2021-06-23 16:01:10 +0100497 <configuration>
498 <container>
499 <mainClass>${app}</mainClass>
500 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
501 </container>
502 <from>
503 <image>${base.image}</image>
504 </from>
505 <to>
506 <tags>
507 <tag>latest</tag>
508 </tags>
509 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
510 </to>
511 </configuration>
512 <executions>
513 <execution>
514 <phase>package</phase>
515 <id>build</id>
516 <goals>
517 <goal>dockerBuild</goal>
518 </goals>
519 </execution>
520 <execution>
521 <phase>deploy</phase>
522 <id>buildAndPush</id>
523 <goals>
524 <goal>build</goal>
525 </goals>
526 </execution>
527 </executions>
528 </plugin>
shivasubedi3d1579c2021-09-13 16:43:20 +0100529 <plugin>
530 <artifactId>maven-resources-plugin</artifactId>
531 <executions>
532 <execution>
533 <id>copy-resources</id>
534 <phase>compile</phase>
535 <goals>
536 <goal>copy-resources</goal>
537 </goals>
538 <configuration>
539 <outputDirectory>${project.basedir}/docs/openapi/</outputDirectory>
540 <resources>
541 <resource>
542 <directory>${project.basedir}/target/generated-sources/swagger/</directory>
543 <includes>
544 <include>openapi.yaml</include>
545 </includes>
546 </resource>
547 </resources>
548 </configuration>
549 </execution>
550 </executions>
551 </plugin>
shivasubedif4b36ef2021-06-23 16:01:10 +0100552 </plugins>
553 </pluginManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100554 </build>
shivasubedif4b36ef2021-06-23 16:01:10 +0100555 <profiles>
556 <profile>
puthuparambil.adityaeddb3dd2021-07-27 15:57:19 +0100557 <id>docker</id>
shivasubedif4b36ef2021-06-23 16:01:10 +0100558 <activation>
559 <activeByDefault>true</activeByDefault>
560 </activation>
561 <properties>
562 <image.name>ncmp-dmi-plugin</image.name>
563 </properties>
564 <build>
565 <plugins>
566 <plugin>
567 <groupId>com.google.cloud.tools</groupId>
568 <artifactId>jib-maven-plugin</artifactId>
569 </plugin>
570 </plugins>
571 </build>
572 </profile>
573 </profiles>
lukegleesonb208aeb2021-07-08 16:48:15 +0100574</project>