blob: dd21d574539bb603d225dbb83da39f0ed1739a96 [file] [log] [blame]
RehanRaza553523f2019-11-12 13:39:40 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2019 Nordix Foundation.
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
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
Lathish1279d192019-10-10 13:30:07 +010021<project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.oran.nearric</groupId>
27 <artifactId>nearric-simulator</artifactId>
28 <version>1.0.0-SNAPSHOT</version>
29 </parent>
30 <artifactId>nearric-service</artifactId>
31 <name>${project.artifactId}</name>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lathish1279d192019-10-10 13:30:07 +010035 <okhttp-version>2.7.5</okhttp-version>
36 <gson-version>2.8.1</gson-version>
BjornMagnussonXA37d37852019-10-15 08:42:08 +020037 <dockerfile-maven-version>1.4.2</dockerfile-maven-version>
Lathish1279d192019-10-10 13:30:07 +010038 </properties>
39 <dependencies>
40 <dependency>
41 <groupId>org.oran.nearric</groupId>
42 <artifactId>a1-med-api</artifactId>
BjornMagnussonXA37d37852019-10-15 08:42:08 +020043 <version>1.0.0-SNAPSHOT</version>
Lathish1279d192019-10-10 13:30:07 +010044 </dependency>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-web</artifactId>
BjornMagnussonXA37d37852019-10-15 08:42:08 +020048 <exclusions>
49 <exclusion>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-logging</artifactId>
52 </exclusion>
53 </exclusions>
Lathish1279d192019-10-10 13:30:07 +010054 </dependency>
55 <dependency>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-data-jpa</artifactId>
58 </dependency>
59 <dependency>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-actuator</artifactId>
62 </dependency>
63 <dependency>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-test</artifactId>
66 <scope>test</scope>
67 </dependency>
68 <dependency>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-devtools</artifactId>
71 <scope>runtime</scope>
72 </dependency>
73 <dependency>
74 <groupId>junit</groupId>
75 <artifactId>junit</artifactId>
76 <scope>test</scope>
77 </dependency>
78 <dependency>
79 <groupId>io.swagger</groupId>
80 <artifactId>swagger-jaxrs</artifactId>
81 <version>1.5.0</version>
82 </dependency>
83 <dependency>
84 <groupId>org.apache.directory.studio</groupId>
85 <artifactId>org.apache.commons.io</artifactId>
86 <version>2.4</version>
87 </dependency>
88 <dependency>
89 <groupId>com.googlecode.json-simple</groupId>
90 <artifactId>json-simple</artifactId>
91 <version>1.1.1</version>
92 </dependency>
93
94 <dependency>
95 <groupId>io.springfox</groupId>
96 <artifactId>springfox-swagger-ui</artifactId>
97 <version>2.6.1</version>
98 <scope>compile</scope>
99 </dependency>
100 <dependency>
101 <groupId>io.springfox</groupId>
102 <artifactId>springfox-swagger2</artifactId>
103 <version>2.6.1</version>
104 <scope>compile</scope>
105 </dependency>
106 <dependency>
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
109 </dependency>
110 <dependency>
111 <groupId>com.h2database</groupId>
112 <artifactId>h2</artifactId>
113 </dependency>
114 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
115 <dependency>
116 <groupId>commons-beanutils</groupId>
117 <artifactId>commons-beanutils</artifactId>
118 <version>1.9.3</version>
119 </dependency>
120 <dependency>
121 <groupId>org.modelmapper</groupId>
122 <artifactId>modelmapper</artifactId>
123 <version>2.3.0</version>
124 </dependency>
125 <dependency>
126 <groupId>com.squareup.okio</groupId>
127 <artifactId>okio</artifactId>
128 <version>1.13.0</version>
129 </dependency>
130 <dependency>
131 <groupId>com.squareup.okhttp</groupId>
132 <artifactId>okhttp</artifactId>
133 <version>${okhttp-version}</version>
134 </dependency>
135 <dependency>
136 <groupId>com.squareup.okhttp</groupId>
137 <artifactId>logging-interceptor</artifactId>
138 <version>${okhttp-version}</version>
139 </dependency>
140 <dependency>
141 <groupId>com.google.code.gson</groupId>
142 <artifactId>gson</artifactId>
143 <version>${gson-version}</version>
144 </dependency>
145 <dependency>
146 <groupId>com.github.java-json-tools</groupId>
147 <artifactId>json-schema-validator</artifactId>
148 <version>2.2.11</version>
149 </dependency>
150 </dependencies>
151 <build>
152 <plugins>
153 <plugin>
154 <groupId>org.springframework.boot</groupId>
155 <artifactId>spring-boot-maven-plugin</artifactId>
156 <configuration>
157 <mainClass>org.onap.nearric.simulator.config.NearRicApplication</mainClass>
158 </configuration>
159 <executions>
160 <execution>
161 <goals>
162 <goal>repackage</goal>
163 </goals>
164 </execution>
165 </executions>
166 </plugin>
RehanRaza8274ad72019-11-13 15:29:17 +0100167 <plugin>
168 <groupId>io.fabric8</groupId>
169 <artifactId>docker-maven-plugin</artifactId>
170 <version>0.30.0</version>
171 <configuration>
172 <verbose>true</verbose>
173 <!-- environment variables supplied by Jenkins -->
174 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
175 <images>
176 <image>
177 <!-- Specify a tag to avoid default tag "latest" -->
178 <!-- Avoid maven artifact name here -->
elinuxhenrikb033eaf2020-02-03 16:02:21 +0100179 <name>o-ran-sc/nonrtric-nearric-simulator:${project.version}</name>
RehanRaza8274ad72019-11-13 15:29:17 +0100180 <build>
181 <from>openjdk:11-jre-slim</from>
182 <tags>
183 <!-- Add tag with build number -->
184 <tag>${project.version}</tag>
185 </tags>
186 <assembly>
187 <descriptorRef>artifact</descriptorRef>
188 </assembly>
189 <cmd>
190 <!-- Include maven dir on classpath for prop files -->
191 <exec>
192 <arg>java</arg>
193 <arg>-Xms128m</arg>
194 <arg>-Xmx256m</arg>
195 <arg>-cp</arg>
196 <arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg>
197 <arg>-Dloader.main=org.onap.nearric.simulator.config.NearRicApplication</arg>
198 <arg>-Djava.security.egd=file:/dev/./urandom</arg>
199 <arg>org.springframework.boot.loader.PropertiesLauncher</arg>
200 </exec>
201 </cmd>
202 </build>
203 </image>
204 </images>
205 </configuration>
206 <!-- build Docker images in install phase, push in deploy phase -->
207 <executions>
208 <execution>
209 <goals>
210 <goal>build</goal>
211 <goal>push</goal>
212 </goals>
213 </execution>
214 </executions>
RehanRaza49a8fd42019-11-11 18:02:32 +0100215 <dependencies>
216 <dependency>
217 <groupId>javax.activation</groupId>
218 <artifactId>activation</artifactId>
219 <version>1.1.1</version>
220 </dependency>
221 </dependencies>
RehanRaza8274ad72019-11-13 15:29:17 +0100222 </plugin>
Lathish1279d192019-10-10 13:30:07 +0100223 </plugins>
224 </build>
225</project>