blob: 08028404d61d1daf35184b2fb2d4415cc1c9ad17 [file] [log] [blame]
Reshmasree59af21d2020-08-03 16:08:41 +05301<?xml version="1.0" encoding="UTF-8"?>
2<!--
3/*******************************************************************************
4 * ============LICENSE_START=======================================================
5 * slice-analysis-ms
6 * ================================================================================
7 * Copyright (C) 2020 Wipro Limited.
8 * ==============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
21 *
22 *******************************************************************************/
23 -->
24<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.oparent</groupId>
29 <artifactId>oparent</artifactId>
30 <version>2.0.0</version>
31 </parent>
32
33 <groupId>org.onap.dcaegen2.services.components</groupId>
34 <artifactId>slice-analysis-ms</artifactId>
35 <version>1.0.0-SNAPSHOT</version>
36 <name>dcaegen2-services-slice-analysis-ms</name>
37 <description>Network slice PM analyser</description>
38 <packaging>jar</packaging>
39
40 <properties>
41 <java.version>11</java.version>
42 <sdk.version>1.1.4</sdk.version>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <maven.compiler.source>11</maven.compiler.source>
45 <maven.compiler.target>11</maven.compiler.target>
46 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
47 <!-- NEXUS RELATED SETTINGS -->
48 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50 <releases.path>content/repositories/releases/</releases.path>
51 <site.path>content/sites/site/org/onap/dcaegen2/services/${project.artifactId}/${project.version}</site.path>
52 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
53 <sonar.coverage.jacoco.xmlReportPaths>
54 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
55 </sonar.coverage.jacoco.xmlReportPaths>
56
57 </properties>
58
59 <dependencies>
60 <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-util -->
61 <dependency>
62 <groupId>org.apache.tomcat</groupId>
63 <artifactId>tomcat-util</artifactId>
64 <version>9.0.37</version>
65 </dependency>
66 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
67 <dependency>
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-autoconfigure</artifactId>
70 <version>2.3.1.RELEASE</version>
71 </dependency>
72 <dependency>
73 <groupId>org.springframework</groupId>
74 <artifactId>spring-webmvc</artifactId>
75 <version>5.2.7.RELEASE</version>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework</groupId>
79 <artifactId>spring-core</artifactId>
80 <version>5.2.7.RELEASE</version>
81 </dependency>
82 <dependency>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-beans</artifactId>
85 <version>5.2.7.RELEASE</version>
86 </dependency>
87 <dependency>
88 <groupId>org.springframework</groupId>
89 <artifactId>spring-expression</artifactId>
90 <version>5.2.7.RELEASE</version>
91 </dependency>
92 <dependency>
93 <groupId>org.springframework</groupId>
94 <artifactId>spring-web</artifactId>
95 <version>5.2.7.RELEASE</version>
96 </dependency>
97 <dependency>
98 <groupId>org.springframework</groupId>
99 <artifactId>spring-tx</artifactId>
100 <version>5.2.7.RELEASE</version>
101 </dependency>
102 <dependency>
103 <groupId>org.springframework.data</groupId>
104 <artifactId>spring-data-commons</artifactId>
105 <version>2.2.0.RELEASE</version>
106 </dependency>
107 <!-- cbs client -->
108 <dependency>
109 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
110 <artifactId>cbs-client</artifactId>
111 <version>${sdk.version}</version>
112 </dependency>
113
114 <dependency>
115 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
116 <artifactId>crypt-password</artifactId>
117 <version>${sdk.version}</version>
118 </dependency>
119 <dependency>
120 <!-- Import dependency management from Spring Boot -->
121 <groupId>org.springframework.boot</groupId>
122 <artifactId>spring-boot-dependencies</artifactId>
123 <version>2.1.3.RELEASE</version>
124 <type>pom</type>
125 <scope>import</scope>
126 </dependency>
127 <dependency>
128 <groupId>com.att.nsa</groupId>
129 <artifactId>cambriaClient</artifactId>
130 <version>0.0.1</version>
131 </dependency>
132 <dependency>
133 <groupId>junit</groupId>
134 <artifactId>junit</artifactId>
135 <scope>test</scope>
136 </dependency>
137 <dependency>
138 <groupId>com.fasterxml.jackson.core</groupId>
139 <artifactId>jackson-core</artifactId>
140 <version>2.11.0</version>
141 </dependency>
142 <dependency>
dhebeha8882e232020-09-08 13:02:32 +0530143 <groupId>net.javacrumbs.json-unit</groupId>
144 <artifactId>json-unit-assertj</artifactId>
145 <version>2.14.0</version>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530149 <groupId>com.fasterxml.jackson.core</groupId>
150 <artifactId>jackson-databind</artifactId>
151 <version>2.11.0</version>
152 </dependency>
153 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
154 <dependency>
155 <groupId>javax.json</groupId>
156 <artifactId>javax.json-api</artifactId>
157 <version>1.1.2</version>
158 </dependency>
159 <dependency>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-web</artifactId>
162 <version>2.1.3.RELEASE</version>
163 <exclusions>
164 <exclusion>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-starter-tomcat</artifactId>
167 </exclusion>
168 </exclusions>
169 </dependency>
170 <dependency>
171 <groupId>org.postgresql</groupId>
172 <artifactId>postgresql</artifactId>
173 <version>42.2.5</version>
174 </dependency>
175 <dependency>
176 <groupId>org.springframework.boot</groupId>
177 <artifactId>spring-boot-starter-data-jpa</artifactId>
178 <version>2.1.3.RELEASE</version>
179 </dependency>
180 <dependency>
181 <groupId>org.hibernate.javax.persistence</groupId>
182 <artifactId>hibernate-jpa-2.0-api</artifactId>
183 <version>1.0.1.Final</version>
184 </dependency>
185 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
186 <dependency>
187 <groupId>org.springframework.boot</groupId>
188 <artifactId>spring-boot-starter-test</artifactId>
189 <version>2.1.3.RELEASE</version>
190 <scope>test</scope>
191 <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
192 </exclusion> </exclusions -->
193 </dependency>
194 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
195 <dependency>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
198 <version>2.21.0</version>
199 <scope>test</scope>
200 </dependency>
dhebeha8882e232020-09-08 13:02:32 +0530201 <dependency>
202 <groupId>com.openpojo</groupId>
203 <artifactId>openpojo</artifactId>
204 <version>0.8.10</version>
205 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530206 <dependency>
207 <groupId>junit</groupId>
208 <artifactId>junit</artifactId>
209 <version>4.12</version>
210 <scope>test</scope>
211 </dependency>
212 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
213 <dependency>
214 <groupId>org.powermock</groupId>
215 <artifactId>powermock-api-mockito2</artifactId>
216 <version>2.0.2</version>
217 <exclusions>
218 <exclusion>
219 <groupId>org.mockito</groupId>
220 <artifactId>mockito-all</artifactId>
221 </exclusion>
222 </exclusions>
223 </dependency>
224 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
225 <dependency>
226 <groupId>org.powermock</groupId>
227 <artifactId>powermock-module-junit4</artifactId>
228 <version>2.0.2</version>
229 <scope>test</scope>
230 </dependency>
231
232 <dependency>
233 <groupId>org.functionaljava</groupId>
234 <artifactId>functionaljava</artifactId>
235 <version>3.0</version>
236 </dependency>
237
238 <dependency>
239 <groupId>org.apache.httpcomponents</groupId>
240 <artifactId>httpclient</artifactId>
241 <version>4.5.7</version>
242 </dependency>
243
244 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
245 <dependency>
246 <groupId>commons-beanutils</groupId>
247 <artifactId>commons-beanutils</artifactId>
248 <version>1.9.4</version>
249 </dependency>
250 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
251 <dependency>
252 <groupId>org.eclipse.jetty</groupId>
253 <artifactId>jetty-server</artifactId>
254 <version>9.4.17.v20190418</version>
255 </dependency>
256 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
257 <dependency>
258 <groupId>org.webjars</groupId>
259 <artifactId>bootstrap</artifactId>
260 <version>4.3.1</version>
261 </dependency>
262 <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
263 <dependency>
264 <groupId>javax.xml.bind</groupId>
265 <artifactId>jaxb-api</artifactId>
266 <version>2.3.0</version>
267 </dependency>
268 <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
269 <dependency>
270 <groupId>org.javassist</groupId>
271 <artifactId>javassist</artifactId>
272 <version>3.24.1-GA</version>
273 </dependency>
274 <dependency>
275 <groupId>org.apache.tomcat.embed</groupId>
276 <artifactId>tomcat-embed-core</artifactId>
277 <version>9.0.36</version>
278 </dependency>
279 </dependencies>
280
281 <build>
282 <plugins>
283
284 <plugin>
285 <groupId>org.springframework.boot</groupId>
286 <artifactId>spring-boot-maven-plugin</artifactId>
287 <version>2.3.1.RELEASE</version>
288 <executions>
289 <execution>
290 <goals>
291 <goal>repackage</goal>
292 </goals>
293 </execution>
294 </executions>
295 </plugin>
296 <plugin>
297 <groupId>com.spotify</groupId>
298 <artifactId>docker-maven-plugin</artifactId>
299 <configuration>
300 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
301
302 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
303 <imageTags>
304 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
305 <imageTag>${project.version}</imageTag>
306 <imageTag>latest</imageTag>
307 </imageTags>
308 <baseImage>openjdk:11.0.6-jre-slim</baseImage>
309 <user>sliceanalysis</user>
310 <resources>
311 <resource>
312 <targetPath>/bin</targetPath>
313 <directory>${project.build.directory}</directory>
314 <include>${project.artifactId}-${project.version}.jar</include>
315 </resource>
316 </resources>
317 <runs>
318 <!-- Maven is loosing file permissions during artifacts copy -->
319 <run>adduser --disabled-password sliceanalysis </run>
320 <run>mv /bin/*.jar /bin/application.jar</run>
321 <run>chmod -R 777 /bin</run>
322 </runs>
323 <exposes>
324 <expose>8080</expose>
325 </exposes>
326 <entryPoint>java -jar /bin/application.jar</entryPoint>
327 </configuration>
328 </plugin>
329 </plugins>
330 </build>
331
332</project>