b47c0d013d566f94153b7c06ea66460742597e24
[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 Copyright (c) 2020 Nokia
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.dcaegen2.platform.mod</groupId>
25         <artifactId>runtimeapi</artifactId>
26         <version>1.2.4</version>
27     </parent>
28     <artifactId>runtime-web</artifactId>
29     <version>1.2.4-SNAPSHOT</version>
30     <packaging>jar</packaging>
31     <name>runtime-web</name>
32     <description>MOD Runtime Web Module</description>
33     <dependencies>
34         <dependency>
35             <groupId>org.onap.dcaegen2.platform.mod</groupId>
36             <artifactId>runtime-core</artifactId>
37             <version>1.2.4</version>
38         </dependency>
39         <dependency>
40             <groupId>org.springframework.boot</groupId>
41             <artifactId>spring-boot-starter-actuator</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.springframework.boot</groupId>
45             <artifactId>spring-boot-starter-web</artifactId>
46         </dependency>
47
48         <dependency>
49             <groupId>org.springframework.boot</groupId>
50             <artifactId>spring-boot-devtools</artifactId>
51             <scope>runtime</scope>
52             <optional>true</optional>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-test</artifactId>
57             <scope>test</scope>
58         </dependency>
59         <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
60         <dependency>
61             <groupId>com.google.guava</groupId>
62             <artifactId>guava</artifactId>
63             <version>28.0-jre</version>
64         </dependency>
65         <dependency>
66             <groupId>io.springfox</groupId>
67             <artifactId>springfox-boot-starter</artifactId>
68             <version>3.0.0</version>
69         </dependency>
70         <dependency>
71             <groupId>io.springfox</groupId>
72             <artifactId>springfox-swagger-ui</artifactId>
73             <version>3.0.0</version>
74         </dependency>
75         <dependency>
76             <groupId>org.json</groupId>
77             <artifactId>json</artifactId>
78             <version>20190722</version>
79         </dependency>
80         <dependency>
81             <groupId>org.apache.httpcomponents</groupId>
82             <artifactId>httpclient</artifactId>
83             <version>4.5.8</version>
84             <scope>test</scope>
85         </dependency>
86     </dependencies>
87
88     <build>
89         <plugins>
90             <plugin>
91                 <groupId>org.springframework.boot</groupId>
92                 <artifactId>spring-boot-maven-plugin</artifactId>
93                     <version>2.6.2</version>
94                 <executions>
95                     <execution>
96                         <goals>
97                             <goal>repackage</goal>
98                         </goals>
99                     </execution>
100                 </executions>
101             </plugin>
102             <plugin>
103                 <groupId>io.fabric8</groupId>
104                 <artifactId>docker-maven-plugin</artifactId>
105                 <configuration>
106                     <verbose>true</verbose>
107                     <pullRegistry>${docker.pull.registry}</pullRegistry>
108                     <pushRegistry>${docker.push.registry}</pushRegistry>
109                     <images>
110                         <image>
111                             <name>onap/${project.groupId}.${project.artifactId}</name>
112                             <registry>${onap.nexus.dockerregistry.daily}</registry>
113                             <build>
114                                 <from>openjdk:11-jre-slim</from>
115                                 <tags>
116                                     <tag>latest</tag>
117                                     <tag>${project.version}</tag>
118                                     <tag>${project.version}-${maven.build.timestamp}Z</tag>
119                                 </tags>
120                                 <assembly>
121                                     <descriptorRef>artifact</descriptorRef>
122                                 </assembly>
123                                 <runCmds>
124                                   <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>
125                                 </runCmds>
126                                 <workdir>/maven</workdir>
127                                 <volumes>
128                                     <volume>/tmp</volume>
129                                 </volumes>
130                                 <ports>
131                                     <port>9090</port>
132                                 </ports>
133                                 <user>dcaemod</user>
134                                 <entryPoint>
135                                     <exec>
136                                         <arg>java</arg>
137                                         <arg>-Djava.security.egd=file:/dev/./urandom</arg>
138                                         <arg>-jar</arg>
139                                         <arg>${project.artifactId}-${project.version}.${project.packaging}</arg>
140                                     </exec>
141                                 </entryPoint>
142                             </build>
143                         </image>
144                     </images>
145                 </configuration>
146                 <executions>
147                     <execution>
148                         <goals>
149                             <goal>build</goal>
150                             <goal>push</goal>
151                         </goals>
152                     </execution>
153                 </executions>
154             </plugin>
155         </plugins>
156     </build>
157
158 </project>