blob: 7ca6291998e3baf4f4be1b88c73d9c7713f4cd1a [file] [log] [blame]
BjornMagnussonXA31b09882021-06-02 01:56:26 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3* ========================LICENSE_START=================================
4* O-RAN-SC
5* %%
6* Copyright (C) 2021 Nordix Foundation
7* %%
8* Licensed under the Apache License, Version 2.0 (the "License");
9* you may not use this file except in compliance with the License.
10* You may obtain a copy of the License at
11*
12* http://www.apache.org/licenses/LICENSE-2.0
13*
14* Unless required by applicable law or agreed to in writing, software
15* distributed under the License is distributed on an "AS IS" BASIS,
16* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17* See the License for the specific language governing permissions and
18* limitations under the License.
19* ========================LICENSE_END===================================
20-->
21<project
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.3.8.RELEASE</version>
30 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>helm-manager</artifactId>
34 <!-- Update this when stepping version of the helm-manager -->
elinuxhenrik0e96b9e2021-06-23 23:58:56 +020035 <version>1.1.0-SNAPSHOT</version>
BjornMagnussonXA31b09882021-06-02 01:56:26 +020036 <licenses>
37 <license>
38 <name>The Apache Software License, Version 2.0</name>
39 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
40 </license>
41 </licenses>
RehanRazada5d41f2021-06-16 15:34:17 +020042 <repositories>
43 <repository>
44 <id>onap-releases</id>
45 <name>onap-releases</name>
46 <url>https://nexus.onap.org/content/repositories/releases/</url>
47 </repository>
48 <repository>
49 <id>onap-snapshots</id>
50 <name>onap-snapshots</name>
51 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
52 </repository>
elinuxhenrik8e8176d2021-06-22 14:16:21 +020053 <repository>
54 <id>nordix</id>
55 <name>39bf7eabe020-releases</name>
56 <url>https://artifactory.nordix.org/artifactory/onap-policy-clamp-participant-maven-local</url>
57 </repository>
RehanRazada5d41f2021-06-16 15:34:17 +020058 </repositories>
BjornMagnussonXA31b09882021-06-02 01:56:26 +020059 <properties>
60 <!-- Update this when a new version of the dependency jar shall be included -->
elinuxhenrik8e8176d2021-06-22 14:16:21 +020061 <policy-clamp-participant-impl-kubernetes.version>6.1.2</policy-clamp-participant-impl-kubernetes.version>
BjornMagnussonXA31b09882021-06-02 01:56:26 +020062 <docker-maven-plugin.version>0.36.0</docker-maven-plugin.version>
BjornMagnussonXA31b09882021-06-02 01:56:26 +020063 </properties>
64 <dependencies>
65 <dependency>
66 <groupId>org.onap.policy.clamp.participant</groupId>
67 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
68 <version>${policy-clamp-participant-impl-kubernetes.version}</version>
69 </dependency>
70 </dependencies>
71 <build>
72 <plugins>
73 <plugin>
74 <!-- Make the jar file of the dependency available as a file for inclusion in the docker image-->
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-dependency-plugin</artifactId>
BjornMagnussonXA31b09882021-06-02 01:56:26 +020077 <executions>
78 <execution>
79 <id>copy</id>
80 <phase>package</phase>
81 <goals>
82 <goal>copy</goal>
83 </goals>
84 <configuration>
85 <artifactItems>
86 <artifactItem>
87 <groupId>org.onap.policy.clamp.participant</groupId>
88 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
89 <version>${policy-clamp-participant-impl-kubernetes.version}</version>
90 <type>jar</type>
91 <overWrite>true</overWrite>
92 <outputDirectory>${basedir}/target</outputDirectory>
93 <destFileName>app.jar</destFileName>
94 </artifactItem>
95 </artifactItems>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 <plugin>
101 <groupId>io.fabric8</groupId>
102 <artifactId>docker-maven-plugin</artifactId>
103 <version>${docker-maven-plugin.version}</version>
104 <inherited>false</inherited>
105 <executions>
106 <execution>
107 <id>generate-helm-manager-image</id>
108 <phase>package</phase>
109 <goals>
110 <goal>build</goal>
111 </goals>
112 <configuration>
113 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
114 <images>
115 <image>
116 <name>o-ran-sc/nonrtric-helm-manager:${project.version}</name>
117 <build>
118 <cleanup>try</cleanup>
119 <contextDir>${basedir}</contextDir>
120 <dockerFile>Dockerfile</dockerFile>
121 <tags>
122 <tag>${project.version}</tag>
123 </tags>
124 </build>
125 </image>
126 </images>
127 </configuration>
128 </execution>
129 <execution>
130 <id>push-helm-manager-image</id>
131 <goals>
132 <goal>build</goal>
133 <goal>push</goal>
134 </goals>
135 <configuration>
136 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
137 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
138 <images>
139 <image>
140 <name>o-ran-sc/nonrtric-helm-manager:${project.version}</name>
141 <build>
142 <contextDir>${basedir}</contextDir>
143 <dockerFile>Dockerfile</dockerFile>
144 <tags>
145 <tag>${project.version}</tag>
146 <tag>latest</tag>
147 </tags>
148 </build>
149 </image>
150 </images>
151 </configuration>
152 </execution>
153 </executions>
154 </plugin>
155 </plugins>
156 </build>
157 <issueManagement>
158 <system>JIRA</system>
159 <url>https://jira.o-ran-sc.org/</url>
160 </issueManagement>
161</project>