blob: 11ecca77f173f311379afececd9652e1e0da756f [file] [log] [blame]
egernuge703e342024-07-08 10:59:08 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2023-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
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>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000022
egernuge703e342024-07-08 10:59:08 +010023 <parent>
24 <groupId>org.onap.cps</groupId>
25 <artifactId>dmi-plugin-demo-and-csit-stub</artifactId>
sourabh_sourabh33f9afa2024-11-19 13:36:26 +000026 <version>3.5.5-SNAPSHOT</version>
egernuge703e342024-07-08 10:59:08 +010027 </parent>
28
29 <artifactId>dmi-plugin-demo-and-csit-stub-app</artifactId>
sourabh_sourabhd7ed9f02024-11-18 13:22:35 +000030 <packaging>jar</packaging>
egernuge703e342024-07-08 10:59:08 +010031
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000032 <properties>
33 <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app>
34 </properties>
35
egernuge703e342024-07-08 10:59:08 +010036 <dependencies>
egernugeef4efe2024-07-17 07:41:44 +010037 <dependency>
38 <groupId>org.springframework.boot</groupId>
39 <artifactId>spring-boot-starter-web</artifactId>
40 <exclusions>
41 <exclusion>
42 <groupId>org.slf4j</groupId>
43 <artifactId>slf4j-api</artifactId>
44 </exclusion></exclusions>
45 </dependency>
46 <dependency>
47 <groupId>ch.qos.logback</groupId>
48 <artifactId>logback-classic</artifactId>
49 <exclusions>
50 <exclusion>
51 <groupId>org.slf4j</groupId>
52 <artifactId>slf4j-api</artifactId>
53 </exclusion></exclusions>
54 </dependency>
egernuge703e342024-07-08 10:59:08 +010055 <dependency>
56 <groupId>org.onap.cps</groupId>
57 <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId>
58 <version>${project.version}</version>
59 <exclusions>
60 <exclusion>
61 <groupId>junit</groupId>
62 <artifactId>junit</artifactId>
63 </exclusion>
64 </exclusions>
65 </dependency>
egernuge703e342024-07-08 10:59:08 +010066 </dependencies>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000067
68 <build>
69 <pluginManagement>
70 <plugins>
71 <plugin>
72 <groupId>com.google.cloud.tools</groupId>
73 <artifactId>jib-maven-plugin</artifactId>
74 <configuration>
75 <container>
76 <mainClass>${app}</mainClass>
77 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
78 </container>
79 <from>
80 <image>${base.image}</image>
81 </from>
82 <to>
83 <tags>
84 <tag>latest</tag>
85 </tags>
86 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
87 </to>
88 </configuration>
89 <executions>
90 <execution>
91 <phase>package</phase>
92 <id>build</id>
93 <goals>
94 <goal>dockerBuild</goal>
95 </goals>
96 </execution>
97 <execution>
98 <phase>deploy</phase>
99 <id>buildAndPush</id>
100 <goals>
101 <goal>build</goal>
102 </goals>
103 </execution>
104 </executions>
105 </plugin>
106 </plugins>
107 </pluginManagement>
108 </build>
109
110 <profiles>
111 <profile>
sourabh_sourabhd31e2772024-11-18 15:41:26 +0000112 <id>stub-docker</id>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000113 <activation>
114 <activeByDefault>true</activeByDefault>
115 </activation>
116 <properties>
117 <image.name>dmi-plugin-demo-and-csit-stub</image.name>
118 </properties>
119 <build>
120 <plugins>
121 <plugin>
122 <groupId>com.google.cloud.tools</groupId>
123 <artifactId>jib-maven-plugin</artifactId>
124 <version>3.3.2</version>
125 </plugin>
126 </plugins>
127 </build>
128 </profile>
129 </profiles>
egernuge703e342024-07-08 10:59:08 +0100130</project>