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