blob: 23fab21e85fe8f51a6aafd2fe1759245d91c61aa [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 * ================================================================================
denilson.l65cb9221b2021-03-24 01:38:53 -07007 * Copyright (C) 2020-2021 Wipro Limited.
Reshmasree59af21d2020-08-03 16:08:41 +05308 * ==============================================================================
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>
Reshmasree59af21d2020-08-03 16:08:41 +053032 <groupId>org.onap.dcaegen2.services.components</groupId>
33 <artifactId>slice-analysis-ms</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000034 <version>1.0.6-SNAPSHOT</version>
Reshmasree59af21d2020-08-03 16:08:41 +053035 <name>dcaegen2-services-slice-analysis-ms</name>
36 <description>Network slice PM analyser</description>
37 <packaging>jar</packaging>
Reshmasree59af21d2020-08-03 16:08:41 +053038 <properties>
39 <java.version>11</java.version>
40 <sdk.version>1.1.4</sdk.version>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <maven.compiler.source>11</maven.compiler.source>
43 <maven.compiler.target>11</maven.compiler.target>
44 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
45 <!-- NEXUS RELATED SETTINGS -->
46 <nexusproxy>https://nexus.onap.org</nexusproxy>
47 <snapshots.path>content/repositories/snapshots/</snapshots.path>
48 <releases.path>content/repositories/releases/</releases.path>
49 <site.path>content/sites/site/org/onap/dcaegen2/services/${project.artifactId}/${project.version}</site.path>
50 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
51 <sonar.coverage.jacoco.xmlReportPaths>
52 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
53 </sonar.coverage.jacoco.xmlReportPaths>
Reshmasree59af21d2020-08-03 16:08:41 +053054 </properties>
Reshmasree59af21d2020-08-03 16:08:41 +053055 <dependencies>
56 <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-util -->
57 <dependency>
58 <groupId>org.apache.tomcat</groupId>
59 <artifactId>tomcat-util</artifactId>
60 <version>9.0.37</version>
61 </dependency>
62 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
63 <dependency>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-autoconfigure</artifactId>
66 <version>2.3.1.RELEASE</version>
67 </dependency>
68 <dependency>
69 <groupId>org.springframework</groupId>
70 <artifactId>spring-webmvc</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000071 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053072 </dependency>
73 <dependency>
74 <groupId>org.springframework</groupId>
75 <artifactId>spring-core</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000076 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053077 </dependency>
78 <dependency>
79 <groupId>org.springframework</groupId>
80 <artifactId>spring-beans</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000081 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053082 </dependency>
83 <dependency>
84 <groupId>org.springframework</groupId>
85 <artifactId>spring-expression</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000086 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053087 </dependency>
88 <dependency>
89 <groupId>org.springframework</groupId>
90 <artifactId>spring-web</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000091 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053092 </dependency>
93 <dependency>
94 <groupId>org.springframework</groupId>
95 <artifactId>spring-tx</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +000096 <version>5.3.7</version>
Reshmasree59af21d2020-08-03 16:08:41 +053097 </dependency>
98 <dependency>
99 <groupId>org.springframework.data</groupId>
100 <artifactId>spring-data-commons</artifactId>
101 <version>2.2.0.RELEASE</version>
102 </dependency>
103 <!-- cbs client -->
104 <dependency>
105 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
106 <artifactId>cbs-client</artifactId>
107 <version>${sdk.version}</version>
108 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530109 <dependency>
110 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
111 <artifactId>crypt-password</artifactId>
112 <version>${sdk.version}</version>
113 </dependency>
114 <dependency>
115 <!-- Import dependency management from Spring Boot -->
116 <groupId>org.springframework.boot</groupId>
117 <artifactId>spring-boot-dependencies</artifactId>
118 <version>2.1.3.RELEASE</version>
119 <type>pom</type>
120 <scope>import</scope>
121 </dependency>
122 <dependency>
123 <groupId>com.att.nsa</groupId>
124 <artifactId>cambriaClient</artifactId>
125 <version>0.0.1</version>
126 </dependency>
127 <dependency>
128 <groupId>junit</groupId>
129 <artifactId>junit</artifactId>
130 <scope>test</scope>
131 </dependency>
132 <dependency>
133 <groupId>com.fasterxml.jackson.core</groupId>
134 <artifactId>jackson-core</artifactId>
135 <version>2.11.0</version>
136 </dependency>
137 <dependency>
dhebeha8882e232020-09-08 13:02:32 +0530138 <groupId>net.javacrumbs.json-unit</groupId>
139 <artifactId>json-unit-assertj</artifactId>
140 <version>2.14.0</version>
141 <scope>test</scope>
142 </dependency>
143 <dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530144 <groupId>com.fasterxml.jackson.core</groupId>
145 <artifactId>jackson-databind</artifactId>
146 <version>2.11.0</version>
147 </dependency>
148 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
149 <dependency>
150 <groupId>javax.json</groupId>
151 <artifactId>javax.json-api</artifactId>
152 <version>1.1.2</version>
153 </dependency>
154 <dependency>
155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-starter-web</artifactId>
157 <version>2.1.3.RELEASE</version>
158 <exclusions>
159 <exclusion>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-tomcat</artifactId>
162 </exclusion>
163 </exclusions>
164 </dependency>
165 <dependency>
166 <groupId>org.postgresql</groupId>
167 <artifactId>postgresql</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +0000168 <version>42.2.13</version>
Reshmasree59af21d2020-08-03 16:08:41 +0530169 </dependency>
170 <dependency>
171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-starter-data-jpa</artifactId>
173 <version>2.1.3.RELEASE</version>
174 </dependency>
175 <dependency>
176 <groupId>org.hibernate.javax.persistence</groupId>
177 <artifactId>hibernate-jpa-2.0-api</artifactId>
178 <version>1.0.1.Final</version>
179 </dependency>
180 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
181 <dependency>
182 <groupId>org.springframework.boot</groupId>
183 <artifactId>spring-boot-starter-test</artifactId>
184 <version>2.1.3.RELEASE</version>
185 <scope>test</scope>
186 <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
187 </exclusion> </exclusions -->
188 </dependency>
189 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
190 <dependency>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-core</artifactId>
193 <version>2.21.0</version>
194 <scope>test</scope>
195 </dependency>
denilson.l65cb9221b2021-03-24 01:38:53 -0700196 <dependency>
197 <groupId>com.openpojo</groupId>
198 <artifactId>openpojo</artifactId>
199 <version>0.8.10</version>
200 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530201 <dependency>
202 <groupId>junit</groupId>
203 <artifactId>junit</artifactId>
204 <version>4.12</version>
205 <scope>test</scope>
206 </dependency>
207 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
208 <dependency>
209 <groupId>org.powermock</groupId>
210 <artifactId>powermock-api-mockito2</artifactId>
211 <version>2.0.2</version>
212 <exclusions>
213 <exclusion>
214 <groupId>org.mockito</groupId>
215 <artifactId>mockito-all</artifactId>
216 </exclusion>
217 </exclusions>
218 </dependency>
219 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
220 <dependency>
221 <groupId>org.powermock</groupId>
222 <artifactId>powermock-module-junit4</artifactId>
223 <version>2.0.2</version>
224 <scope>test</scope>
225 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530226 <dependency>
227 <groupId>org.functionaljava</groupId>
228 <artifactId>functionaljava</artifactId>
229 <version>3.0</version>
denilson.l65cb9221b2021-03-24 01:38:53 -0700230 </dependency>
231 <dependency>
232 <groupId>org.apache.httpcomponents</groupId>
233 <artifactId>httpclient</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +0000234 <version>4.5.13</version>
denilson.l65cb9221b2021-03-24 01:38:53 -0700235 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530236 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
237 <dependency>
238 <groupId>commons-beanutils</groupId>
239 <artifactId>commons-beanutils</artifactId>
240 <version>1.9.4</version>
241 </dependency>
242 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
243 <dependency>
244 <groupId>org.eclipse.jetty</groupId>
245 <artifactId>jetty-server</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +0000246 <version>9.4.41.v20210516</version>
Reshmasree59af21d2020-08-03 16:08:41 +0530247 </dependency>
248 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
249 <dependency>
250 <groupId>org.webjars</groupId>
251 <artifactId>bootstrap</artifactId>
252 <version>4.3.1</version>
253 </dependency>
254 <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
255 <dependency>
256 <groupId>javax.xml.bind</groupId>
257 <artifactId>jaxb-api</artifactId>
258 <version>2.3.0</version>
259 </dependency>
260 <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
261 <dependency>
262 <groupId>org.javassist</groupId>
263 <artifactId>javassist</artifactId>
264 <version>3.24.1-GA</version>
265 </dependency>
266 <dependency>
267 <groupId>org.apache.tomcat.embed</groupId>
268 <artifactId>tomcat-embed-core</artifactId>
Shwetha_Rf99717d2021-06-30 11:37:38 +0000269 <version>9.0.46</version>
Reshmasree59af21d2020-08-03 16:08:41 +0530270 </dependency>
denilson.l65cb9221b2021-03-24 01:38:53 -0700271 <!-- https://mvnrepository.com/artifact/nl.jqno.equalsverifier/equalsverifier -->
272 <dependency>
273 <groupId>nl.jqno.equalsverifier</groupId>
274 <artifactId>equalsverifier</artifactId>
275 <version>3.5.5</version>
276 <scope>test</scope>
277 </dependency>
Reshmasree59af21d2020-08-03 16:08:41 +0530278 </dependencies>
Reshmasree59af21d2020-08-03 16:08:41 +0530279 <build>
280 <plugins>
Reshmasree59af21d2020-08-03 16:08:41 +0530281 <plugin>
282 <groupId>org.springframework.boot</groupId>
283 <artifactId>spring-boot-maven-plugin</artifactId>
284 <version>2.3.1.RELEASE</version>
285 <executions>
286 <execution>
287 <goals>
288 <goal>repackage</goal>
289 </goals>
290 </execution>
291 </executions>
292 </plugin>
293 <plugin>
294 <groupId>com.spotify</groupId>
295 <artifactId>docker-maven-plugin</artifactId>
296 <configuration>
297 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
Reshmasree59af21d2020-08-03 16:08:41 +0530298 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
299 <imageTags>
300 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
301 <imageTag>${project.version}</imageTag>
302 <imageTag>latest</imageTag>
303 </imageTags>
304 <baseImage>openjdk:11.0.6-jre-slim</baseImage>
305 <user>sliceanalysis</user>
306 <resources>
307 <resource>
308 <targetPath>/bin</targetPath>
309 <directory>${project.build.directory}</directory>
310 <include>${project.artifactId}-${project.version}.jar</include>
311 </resource>
dhebehafadaccd2020-10-13 21:24:08 +0530312 <resource>
313 <targetPath>/bin</targetPath>
314 <directory>${project.basedir}</directory>
315 <include>entry.sh</include>
316 </resource>
Reshmasree59af21d2020-08-03 16:08:41 +0530317 </resources>
318 <runs>
319 <!-- Maven is loosing file permissions during artifacts copy -->
320 <run>adduser --disabled-password sliceanalysis </run>
321 <run>mv /bin/*.jar /bin/application.jar</run>
322 <run>chmod -R 777 /bin</run>
dhebehafadaccd2020-10-13 21:24:08 +0530323 <run>chmod +x /bin/entry.sh</run>
Reshmasree59af21d2020-08-03 16:08:41 +0530324 </runs>
325 <exposes>
326 <expose>8080</expose>
327 </exposes>
dhebehafadaccd2020-10-13 21:24:08 +0530328 <entryPoint>./bin/entry.sh</entryPoint>
Reshmasree59af21d2020-08-03 16:08:41 +0530329 </configuration>
330 </plugin>
331 </plugins>
332 </build>
Reshmasree59af21d2020-08-03 16:08:41 +0530333</project>