blob: 3a678f6ddbf184147838c1706abda54a389caa67 [file] [log] [blame]
sourabh_sourabh7cda5e92023-07-05 00:56:05 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
emacleeea7d1b42024-03-24 19:05:34 +00004 Copyright (C) 2023-2024 Nordix Foundation
sourabh_sourabh7cda5e92023-07-05 00:56:05 +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
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
19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.onap.cps</groupId>
24 <artifactId>dmi-plugin-demo-and-csit-stub</artifactId>
mpriyankf582c462024-06-20 15:22:14 +010025 <version>3.5.1-SNAPSHOT</version>
sourabh_sourabh7cda5e92023-07-05 00:56:05 +010026 </parent>
27
28 <artifactId>dmi-plugin-demo-and-csit-stub-app</artifactId>
29
30 <properties>
31 <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app>
32 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
egernug6c9621a2023-07-19 11:05:00 +010033 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
sourabh_sourabh7cda5e92023-07-05 00:56:05 +010034 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 </properties>
37
38 <build>
39 <pluginManagement>
40 <plugins>
41 <plugin>
42 <groupId>com.google.cloud.tools</groupId>
43 <artifactId>jib-maven-plugin</artifactId>
44 <configuration>
45 <container>
46 <mainClass>${app}</mainClass>
47 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
48 </container>
49 <from>
50 <image>${base.image}</image>
51 </from>
52 <to>
53 <tags>
54 <tag>latest</tag>
55 </tags>
56 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
57 </to>
58 </configuration>
59 <executions>
60 <execution>
61 <phase>package</phase>
62 <id>build</id>
63 <goals>
64 <goal>dockerBuild</goal>
65 </goals>
66 </execution>
67 <execution>
68 <phase>deploy</phase>
69 <id>buildAndPush</id>
70 <goals>
71 <goal>build</goal>
72 </goals>
73 </execution>
74 </executions>
75 </plugin>
76 </plugins>
77 </pluginManagement>
78 </build>
79
80 <profiles>
81 <profile>
82 <id>docker</id>
83 <activation>
84 <activeByDefault>true</activeByDefault>
85 </activation>
86 <properties>
87 <image.name>dmi-plugin-demo-and-csit-stub</image.name>
88 </properties>
89 <build>
90 <plugins>
91 <plugin>
92 <groupId>com.google.cloud.tools</groupId>
93 <artifactId>jib-maven-plugin</artifactId>
egernug477bd462023-09-21 17:51:21 +010094 <version>3.3.2</version>
sourabh_sourabh7cda5e92023-07-05 00:56:05 +010095 </plugin>
96 </plugins>
97 </build>
98 </profile>
99 </profiles>
100 <dependencies>
101 <dependency>
102 <groupId>org.onap.cps</groupId>
103 <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId>
104 <version>${project.version}</version>
emacleeea7d1b42024-03-24 19:05:34 +0000105 <exclusions>
106 <exclusion>
107 <groupId>junit</groupId>
108 <artifactId>junit</artifactId>
109 </exclusion>
110 </exclusions>
mpriyanka7f35682024-02-28 14:10:54 +0000111 </dependency>
sourabh_sourabh7cda5e92023-07-05 00:56:05 +0100112 </dependencies>
113</project>