blob: 210eb5c9dfb22271efa0bc97dd5ca6133c8453aa [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>
sourabh_sourabh9ad11f22024-11-20 14:43:25 +000025 <artifactId>dmi-stub</artifactId>
26 <version>1.6.0-SNAPSHOT</version>
egernuge703e342024-07-08 10:59:08 +010027 </parent>
28
sourabh_sourabh9ad11f22024-11-20 14:43:25 +000029 <artifactId>dmi-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>
sourabh_sourabh9ad11f22024-11-20 14:43:25 +000033 <!-- Application Configuration -->
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000034 <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app>
sourabh_sourabh38becbc2024-11-20 10:37:59 +000035
sourabh_sourabh9ad11f22024-11-20 14:43:25 +000036 <!-- Global properties for version management -->
sourabh_sourabh38becbc2024-11-20 10:37:59 +000037 <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
38
39 <!-- ONAP Nexus Repository Configuration -->
40 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
41 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
42 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000043 </properties>
44
egernuge703e342024-07-08 10:59:08 +010045 <dependencies>
egernugeef4efe2024-07-17 07:41:44 +010046 <dependency>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-web</artifactId>
49 <exclusions>
50 <exclusion>
51 <groupId>org.slf4j</groupId>
52 <artifactId>slf4j-api</artifactId>
53 </exclusion></exclusions>
54 </dependency>
55 <dependency>
56 <groupId>ch.qos.logback</groupId>
57 <artifactId>logback-classic</artifactId>
58 <exclusions>
59 <exclusion>
60 <groupId>org.slf4j</groupId>
61 <artifactId>slf4j-api</artifactId>
62 </exclusion></exclusions>
63 </dependency>
egernuge703e342024-07-08 10:59:08 +010064 <dependency>
65 <groupId>org.onap.cps</groupId>
sourabh_sourabh9ad11f22024-11-20 14:43:25 +000066 <artifactId>dmi-stub-service</artifactId>
egernuge703e342024-07-08 10:59:08 +010067 <version>${project.version}</version>
68 <exclusions>
69 <exclusion>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 </exclusion>
73 </exclusions>
74 </dependency>
egernuge703e342024-07-08 10:59:08 +010075 </dependencies>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000076
77 <build>
78 <pluginManagement>
79 <plugins>
80 <plugin>
81 <groupId>com.google.cloud.tools</groupId>
82 <artifactId>jib-maven-plugin</artifactId>
83 <configuration>
84 <container>
85 <mainClass>${app}</mainClass>
86 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
87 </container>
88 <from>
89 <image>${base.image}</image>
90 </from>
91 <to>
92 <tags>
93 <tag>latest</tag>
94 </tags>
95 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
96 </to>
97 </configuration>
98 <executions>
99 <execution>
100 <phase>package</phase>
101 <id>build</id>
102 <goals>
103 <goal>dockerBuild</goal>
104 </goals>
105 </execution>
106 <execution>
107 <phase>deploy</phase>
108 <id>buildAndPush</id>
109 <goals>
110 <goal>build</goal>
111 </goals>
112 </execution>
113 </executions>
114 </plugin>
sourabh_sourabh38becbc2024-11-20 10:37:59 +0000115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-deploy-plugin</artifactId>
118 <version>${maven.deploy.plugin.version}</version>
119 </plugin>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000120 </plugins>
121 </pluginManagement>
122 </build>
123
124 <profiles>
125 <profile>
sourabh_sourabhd31e2772024-11-18 15:41:26 +0000126 <id>stub-docker</id>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000127 <activation>
128 <activeByDefault>true</activeByDefault>
129 </activation>
130 <properties>
sourabh_sourabh9ad11f22024-11-20 14:43:25 +0000131 <image.name>dmi-stub</image.name>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000132 </properties>
133 <build>
134 <plugins>
135 <plugin>
136 <groupId>com.google.cloud.tools</groupId>
137 <artifactId>jib-maven-plugin</artifactId>
138 <version>3.3.2</version>
139 </plugin>
140 </plugins>
141 </build>
142 </profile>
143 </profiles>
sourabh_sourabh38becbc2024-11-20 10:37:59 +0000144
145 <distributionManagement>
146 <repository>
147 <id>ecomp-releases</id>
148 <name>ECOMP Release Repository</name>
149 <url>${onap.nexus.url}${releaseNexusPath}</url>
150 </repository>
151 <snapshotRepository>
152 <id>ecomp-snapshots</id>
153 <name>ECOMP Snapshot Repository</name>
154 <url>${onap.nexus.url}${snapshotNexusPath}</url>
155 </snapshotRepository>
156 </distributionManagement>
157
egernuge703e342024-07-08 10:59:08 +0100158</project>