blob: e513d9291fe5b685e9adf448ec30acf59eb95b17 [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>
sourabh_sourabh38becbc2024-11-20 10:37:59 +000034
35 <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
36
37 <!-- ONAP Nexus Repository Configuration -->
38 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
40 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000041 </properties>
42
egernuge703e342024-07-08 10:59:08 +010043 <dependencies>
egernugeef4efe2024-07-17 07:41:44 +010044 <dependency>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-web</artifactId>
47 <exclusions>
48 <exclusion>
49 <groupId>org.slf4j</groupId>
50 <artifactId>slf4j-api</artifactId>
51 </exclusion></exclusions>
52 </dependency>
53 <dependency>
54 <groupId>ch.qos.logback</groupId>
55 <artifactId>logback-classic</artifactId>
56 <exclusions>
57 <exclusion>
58 <groupId>org.slf4j</groupId>
59 <artifactId>slf4j-api</artifactId>
60 </exclusion></exclusions>
61 </dependency>
egernuge703e342024-07-08 10:59:08 +010062 <dependency>
63 <groupId>org.onap.cps</groupId>
64 <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId>
65 <version>${project.version}</version>
66 <exclusions>
67 <exclusion>
68 <groupId>junit</groupId>
69 <artifactId>junit</artifactId>
70 </exclusion>
71 </exclusions>
72 </dependency>
egernuge703e342024-07-08 10:59:08 +010073 </dependencies>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000074
75 <build>
76 <pluginManagement>
77 <plugins>
78 <plugin>
79 <groupId>com.google.cloud.tools</groupId>
80 <artifactId>jib-maven-plugin</artifactId>
81 <configuration>
82 <container>
83 <mainClass>${app}</mainClass>
84 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
85 </container>
86 <from>
87 <image>${base.image}</image>
88 </from>
89 <to>
90 <tags>
91 <tag>latest</tag>
92 </tags>
93 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
94 </to>
95 </configuration>
96 <executions>
97 <execution>
98 <phase>package</phase>
99 <id>build</id>
100 <goals>
101 <goal>dockerBuild</goal>
102 </goals>
103 </execution>
104 <execution>
105 <phase>deploy</phase>
106 <id>buildAndPush</id>
107 <goals>
108 <goal>build</goal>
109 </goals>
110 </execution>
111 </executions>
112 </plugin>
sourabh_sourabh38becbc2024-11-20 10:37:59 +0000113 <plugin>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-deploy-plugin</artifactId>
116 <version>${maven.deploy.plugin.version}</version>
117 </plugin>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000118 </plugins>
119 </pluginManagement>
120 </build>
121
122 <profiles>
123 <profile>
sourabh_sourabhd31e2772024-11-18 15:41:26 +0000124 <id>stub-docker</id>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000125 <activation>
126 <activeByDefault>true</activeByDefault>
127 </activation>
128 <properties>
sourabh_sourabh38becbc2024-11-20 10:37:59 +0000129 <image.name>dmi-plugin-demo-and-csit-stub</image.name>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000130 </properties>
131 <build>
132 <plugins>
133 <plugin>
134 <groupId>com.google.cloud.tools</groupId>
135 <artifactId>jib-maven-plugin</artifactId>
136 <version>3.3.2</version>
137 </plugin>
138 </plugins>
139 </build>
140 </profile>
141 </profiles>
sourabh_sourabh38becbc2024-11-20 10:37:59 +0000142
143 <distributionManagement>
144 <repository>
145 <id>ecomp-releases</id>
146 <name>ECOMP Release Repository</name>
147 <url>${onap.nexus.url}${releaseNexusPath}</url>
148 </repository>
149 <snapshotRepository>
150 <id>ecomp-snapshots</id>
151 <name>ECOMP Snapshot Repository</name>
152 <url>${onap.nexus.url}${snapshotNexusPath}</url>
153 </snapshotRepository>
154 </distributionManagement>
155
egernuge703e342024-07-08 10:59:08 +0100156</project>