blob: 0c52a123307d99bafec0f23817ac79f9636058f9 [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 -->
35 <version>1.0.0-SNAPSHOT</version>
36 <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>
42 <properties>
43 <!-- Update this when a new version of the dependency jar shall be included -->
44 <policy-clamp-participant-impl-kubernetes.version>6.1.2-SNAPSHOT</policy-clamp-participant-impl-kubernetes.version>
45 <docker-maven-plugin.version>0.36.0</docker-maven-plugin.version>
46 <maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
47 </properties>
48 <dependencies>
49 <dependency>
50 <groupId>org.onap.policy.clamp.participant</groupId>
51 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
52 <version>${policy-clamp-participant-impl-kubernetes.version}</version>
53 </dependency>
54 </dependencies>
55 <build>
56 <plugins>
57 <plugin>
58 <!-- Make the jar file of the dependency available as a file for inclusion in the docker image-->
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-dependency-plugin</artifactId>
61 <version>${maven-dependency-plugin.version}</version>
62 <executions>
63 <execution>
64 <id>copy</id>
65 <phase>package</phase>
66 <goals>
67 <goal>copy</goal>
68 </goals>
69 <configuration>
70 <artifactItems>
71 <artifactItem>
72 <groupId>org.onap.policy.clamp.participant</groupId>
73 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
74 <version>${policy-clamp-participant-impl-kubernetes.version}</version>
75 <type>jar</type>
76 <overWrite>true</overWrite>
77 <outputDirectory>${basedir}/target</outputDirectory>
78 <destFileName>app.jar</destFileName>
79 </artifactItem>
80 </artifactItems>
81 </configuration>
82 </execution>
83 </executions>
84 </plugin>
85 <plugin>
86 <groupId>io.fabric8</groupId>
87 <artifactId>docker-maven-plugin</artifactId>
88 <version>${docker-maven-plugin.version}</version>
89 <inherited>false</inherited>
90 <executions>
91 <execution>
92 <id>generate-helm-manager-image</id>
93 <phase>package</phase>
94 <goals>
95 <goal>build</goal>
96 </goals>
97 <configuration>
98 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
99 <images>
100 <image>
101 <name>o-ran-sc/nonrtric-helm-manager:${project.version}</name>
102 <build>
103 <cleanup>try</cleanup>
104 <contextDir>${basedir}</contextDir>
105 <dockerFile>Dockerfile</dockerFile>
106 <tags>
107 <tag>${project.version}</tag>
108 </tags>
109 </build>
110 </image>
111 </images>
112 </configuration>
113 </execution>
114 <execution>
115 <id>push-helm-manager-image</id>
116 <goals>
117 <goal>build</goal>
118 <goal>push</goal>
119 </goals>
120 <configuration>
121 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
122 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
123 <images>
124 <image>
125 <name>o-ran-sc/nonrtric-helm-manager:${project.version}</name>
126 <build>
127 <contextDir>${basedir}</contextDir>
128 <dockerFile>Dockerfile</dockerFile>
129 <tags>
130 <tag>${project.version}</tag>
131 <tag>latest</tag>
132 </tags>
133 </build>
134 </image>
135 </images>
136 </configuration>
137 </execution>
138 </executions>
139 </plugin>
140 </plugins>
141 </build>
142 <issueManagement>
143 <system>JIRA</system>
144 <url>https://jira.o-ran-sc.org/</url>
145 </issueManagement>
146</project>