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