Update runtime-api with bpgen 1.7.3
[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-2020 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.2.3</version>
28         </parent>
29         <artifactId>runtime-web</artifactId>
30         <version>1.2.3-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.2.3</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.json</groupId>
78                         <artifactId>json</artifactId>
79                         <version>20190722</version>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.apache.httpcomponents</groupId>
83                         <artifactId>httpclient</artifactId>
84                         <version>4.5.8</version>
85                         <scope>test</scope>
86                 </dependency>
87         </dependencies>
88
89         <build>
90                 <plugins>
91                         <plugin>
92                                 <groupId>org.springframework.boot</groupId>
93                                 <artifactId>spring-boot-maven-plugin</artifactId>
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>