[DCAEMOD/runtime] Fix job failures on missing snapshot
[dcaegen2/platform.git] / mod / runtimeapi / runtime-web / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START=======================================================
4 Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
5 ================================================================================
6 Modifications Copyright (c) 2020 Nokia
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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24         <parent>
25                 <groupId>org.onap.dcaegen2.platform.mod</groupId>
26                 <artifactId>runtimeapi</artifactId>
27                 <version>1.3.2</version>
28         </parent>
29         <artifactId>runtime-web</artifactId>
30         <version>1.3.2-SNAPSHOT</version>
31         <packaging>jar</packaging>
32         <name>runtime-web</name>
33         <description>MOD Runtime Web Module</description>
34         <dependencies>
35                 <dependency>
36                         <groupId>org.onap.dcaegen2.platform.mod</groupId>
37                         <artifactId>runtime-core</artifactId>
38                         <version>1.3.2</version>
39                 </dependency>
40                 <dependency>
41                         <groupId>org.springframework.boot</groupId>
42                         <artifactId>spring-boot-starter-actuator</artifactId>
43                 </dependency>
44                 <dependency>
45                         <groupId>org.springframework.boot</groupId>
46                         <artifactId>spring-boot-starter-web</artifactId>
47                 </dependency>
48
49                 <dependency>
50                         <groupId>org.springframework.boot</groupId>
51                         <artifactId>spring-boot-devtools</artifactId>
52                         <scope>runtime</scope>
53                         <optional>true</optional>
54                 </dependency>
55                 <dependency>
56                         <groupId>org.springframework.boot</groupId>
57                         <artifactId>spring-boot-starter-test</artifactId>
58                         <scope>test</scope>
59                 </dependency>
60                 <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
61                 <dependency>
62                         <groupId>com.google.guava</groupId>
63                         <artifactId>guava</artifactId>
64                         <version>28.0-jre</version>
65                 </dependency>
66                 <dependency>
67                         <groupId>io.springfox</groupId>
68                         <artifactId>springfox-boot-starter</artifactId>
69                         <version>3.0.0</version>
70                 </dependency>
71                 <dependency>
72                         <groupId>io.springfox</groupId>
73                         <artifactId>springfox-swagger-ui</artifactId>
74                         <version>3.0.0</version>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.apache.httpcomponents</groupId>
78                         <artifactId>httpclient</artifactId>
79                         <version>4.5.8</version>
80                         <scope>test</scope>
81                 </dependency>
82         </dependencies>
83
84         <build>
85                 <plugins>
86                         <plugin>
87                                 <groupId>org.springframework.boot</groupId>
88                                 <artifactId>spring-boot-maven-plugin</artifactId>
89                                 <executions>
90                                         <execution>
91                                                 <goals>
92                                                         <goal>repackage</goal>
93                                                 </goals>
94                                         </execution>
95                                 </executions>
96                         </plugin>
97                         <plugin>
98                                 <groupId>io.fabric8</groupId>
99                                 <artifactId>docker-maven-plugin</artifactId>
100                                 <configuration>
101                                         <verbose>true</verbose>
102                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
103                                         <pushRegistry>${docker.push.registry}</pushRegistry>
104                                         <images>
105                                                 <image>
106                                                         <name>onap/${project.groupId}.${project.artifactId}</name>
107                                                         <registry>${onap.nexus.dockerregistry.daily}</registry>
108                                                         <build>
109                                                                 <from>openjdk:11-jre-slim</from>
110                                                                 <tags>
111                                                                         <tag>latest</tag>
112                                                                         <tag>${project.version}</tag>
113                                                                         <tag>${project.version}-${maven.build.timestamp}Z</tag>
114                                                                 </tags>
115                                                                 <assembly>
116                                                                         <descriptorRef>artifact</descriptorRef>
117                                                                 </assembly>
118                                                                 <runCmds>
119                                                                         <runCmd>apt-get update &amp;&amp; apt-get install -y wget</runCmd>
120                                                                         <runCmd>wget https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz &amp;&amp; tar xvf helm-v3.5.4-linux-amd64.tar.gz &amp;&amp; mv linux-amd64/helm /usr/local/bin/</runCmd>
121                                                                         <runCmd>groupadd -r dcaemod &amp;&amp; useradd -ms /bin/bash dcaemod -g dcaemod &amp;&amp; mkdir -p /maven/data &amp;&amp; chown -R dcaemod:dcaemod /maven/data</runCmd>
122                                                                 </runCmds>
123                                                                 <workdir>/maven</workdir>
124                                                                 <volumes>
125                                                                         <volume>/tmp</volume>
126                                                                 </volumes>
127                                                                 <ports>
128                                                                         <port>9090</port>
129                                                                 </ports>
130                                                                 <user>dcaemod</user>
131                                                                 <entryPoint>
132                                                                         <exec>
133                                                                                 <arg>java</arg>
134                                                                                 <arg>-Djava.security.egd=file:/dev/./urandom</arg>
135                                                                                 <arg>-jar</arg>
136                                                                                 <arg>${project.artifactId}-${project.version}.${project.packaging}</arg>
137                                                                         </exec>
138                                                                 </entryPoint>
139                                                         </build>
140                                                 </image>
141                                         </images>
142                                 </configuration>
143                                 <executions>
144                                         <execution>
145                                                 <goals>
146                                                         <goal>build</goal>
147                                                         <goal>push</goal>
148                                                 </goals>
149                                         </execution>
150                                 </executions>
151                         </plugin>
152                 </plugins>
153         </build>
154
155 </project>