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