1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
4 ~ Copyright (c) 2021 China Mobile. All rights reserved.
5 ~ Copyright (c) 2021-2022 Wipro Limited.
6 ~ ================================================================================
7 ~ Licensed under the Apache License, Version 2.0 (the "License");
8 ~ you may not use this file except in compliance with the License.
9 ~ You may obtain a copy of the License at
11 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~ Unless required by applicable law or agreed to in writing, software
14 ~ distributed under the License is distributed on an "AS IS" BASIS,
15 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ~ See the License for the specific language governing permissions and
17 ~ limitations under the License.
18 ~ ============LICENSE_END=========================================================
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.oparent</groupId>
26 <artifactId>oparent</artifactId>
27 <version>2.0.0</version>
30 <groupId>org.onap.dcaegen2.services.components</groupId>
31 <artifactId>kpi-ms</artifactId>
32 <version>1.0.9-SNAPSHOT</version>
33 <name>dcaegen2-services-kpi-computation-ms</name>
34 <description>Kpi ms</description>
35 <packaging>jar</packaging>
38 <java.version>11</java.version>
39 <sdk.version>1.8.7</sdk.version>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <maven.compiler.source>11</maven.compiler.source>
42 <maven.compiler.target>11</maven.compiler.target>
43 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
44 <!-- NEXUS RELATED SETTINGS -->
45 <nexusproxy>https://nexus.onap.org</nexusproxy>
46 <snapshots.path>content/repositories/snapshots/</snapshots.path>
47 <releases.path>content/repositories/releases/</releases.path>
48 <site.path>content/sites/site/org/onap/dcaegen2/services/${project.artifactId}/${project.version}</site.path>
49 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
50 <sonar.coverage.jacoco.xmlReportPaths>
51 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
52 </sonar.coverage.jacoco.xmlReportPaths>
53 <lombok.version>1.18.4</lombok.version>
54 <undertow.version>2.2.17.Final</undertow.version>
55 <xml.version>2.3.1</xml.version>
56 <jaxb.version>2.3.0.1</jaxb.version>
57 <docker.repository>nexus3.onap.org:10003</docker.repository>
58 <spring.version>5.3.20</spring.version>
59 <junit.version>5.3.2</junit.version>
60 <mockito.version>2.23.4</mockito.version>
61 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
62 <powermock.version>2.0.7</powermock.version>
63 <mockserver.version>3.10.8</mockserver.version>
64 <junit4.version>4.12</junit4.version>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-autoconfigure</artifactId>
71 <version>2.3.1.RELEASE</version>
74 <groupId>org.springframework</groupId>
75 <artifactId>spring-webmvc</artifactId>
76 <version>${spring.version}</version>
79 <groupId>org.springframework</groupId>
80 <artifactId>spring-core</artifactId>
81 <version>${spring.version}</version>
84 <groupId>org.springframework</groupId>
85 <artifactId>spring-beans</artifactId>
86 <version>${spring.version}</version>
89 <groupId>org.springframework</groupId>
90 <artifactId>spring-expression</artifactId>
91 <version>${spring.version}</version>
94 <groupId>org.springframework</groupId>
95 <artifactId>spring-web</artifactId>
96 <version>${spring.version}</version>
99 <groupId>org.springframework</groupId>
100 <artifactId>spring-context</artifactId>
101 <version>${spring.version}</version>
104 <groupId>org.springframework</groupId>
105 <artifactId>spring-tx</artifactId>
106 <version>${spring.version}</version>
110 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
111 <artifactId>cbs-client</artifactId>
112 <version>${sdk.version}</version>
115 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
116 <artifactId>crypt-password</artifactId>
117 <version>${sdk.version}</version>
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-dependencies</artifactId>
122 <version>2.1.3.RELEASE</version>
124 <scope>import</scope>
127 <groupId>com.fasterxml.jackson.core</groupId>
128 <artifactId>jackson-core</artifactId>
129 <version>2.13.3</version>
132 <groupId>net.javacrumbs.json-unit</groupId>
133 <artifactId>json-unit-assertj</artifactId>
134 <version>2.14.0</version>
138 <groupId>com.fasterxml.jackson.core</groupId>
139 <artifactId>jackson-databind</artifactId>
140 <version>2.13.3</version>
143 <groupId>javax.json</groupId>
144 <artifactId>javax.json-api</artifactId>
145 <version>1.1.2</version>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-web</artifactId>
150 <version>2.2.0.RELEASE</version>
153 <groupId>org.springframework.boot</groupId>
154 <artifactId>spring-boot-starter-tomcat</artifactId>
159 <groupId>org.functionaljava</groupId>
160 <artifactId>functionaljava</artifactId>
161 <version>3.0</version>
164 <groupId>org.apache.httpcomponents</groupId>
165 <artifactId>httpclient</artifactId>
166 <version>4.5.13</version>
169 <groupId>org.eclipse.jetty</groupId>
170 <artifactId>jetty-server</artifactId>
171 <version>9.4.41.v20210516</version>
174 <groupId>javax.xml.bind</groupId>
175 <artifactId>jaxb-api</artifactId>
176 <version>2.3.0</version>
179 <groupId>org.javassist</groupId>
180 <artifactId>javassist</artifactId>
181 <version>3.24.1-GA</version>
184 <groupId>org.json</groupId>
185 <artifactId>json</artifactId>
186 <version>20190722</version>
189 <groupId>org.projectlombok</groupId>
190 <artifactId>lombok</artifactId>
191 <version>${lombok.version}</version>
192 <scope>provided</scope>
195 <groupId>io.undertow</groupId>
196 <artifactId>undertow-core</artifactId>
197 <version>${undertow.version}</version>
200 <groupId>io.undertow</groupId>
201 <artifactId>undertow-servlet</artifactId>
202 <version>${undertow.version}</version>
205 <groupId>commons-lang</groupId>
206 <artifactId>commons-lang</artifactId>
207 <version>2.6</version>
210 <groupId>javax.xml.bind</groupId>
211 <artifactId>jaxb-api</artifactId>
212 <version>${xml.version}</version>
215 <groupId>com.sun.xml.bind</groupId>
216 <artifactId>jaxb-core</artifactId>
217 <version>${jaxb.version}</version>
220 <groupId>com.sun.xml.bind</groupId>
221 <artifactId>jaxb-impl</artifactId>
222 <version>${xml.version}</version>
225 <groupId>org.apache.commons</groupId>
226 <artifactId>commons-lang3</artifactId>
227 <version>3.7</version>
230 <groupId>org.junit.jupiter</groupId>
231 <artifactId>junit-jupiter-engine</artifactId>
232 <version>${junit.version}</version>
236 <groupId>org.mockito</groupId>
237 <artifactId>mockito-junit-jupiter</artifactId>
238 <version>${mockito-ju5-ext.version}</version>
242 <groupId>org.mockito</groupId>
243 <artifactId>mockito-core</artifactId>
244 <version>${mockito.version}</version>
248 <groupId>org.powermock</groupId>
249 <artifactId>powermock-module-junit4</artifactId>
250 <version>${powermock.version}</version>
254 <groupId>org.junit.vintage</groupId>
255 <artifactId>junit-vintage-engine</artifactId>
256 <version>${junit.version}</version>
260 <groupId>org.powermock</groupId>
261 <artifactId>powermock-api-mockito2</artifactId>
262 <version>${powermock.version}</version>
266 <groupId>org.junit.jupiter</groupId>
267 <artifactId>junit-jupiter-params</artifactId>
268 <version>${junit.version}</version>
272 <groupId>org.springframework.boot</groupId>
273 <artifactId>spring-boot-starter-test</artifactId>
274 <version>2.1.3.RELEASE</version>
277 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
279 <groupId>junit</groupId>
280 <artifactId>junit</artifactId>
281 <version>4.12</version>
285 <groupId>com.openpojo</groupId>
286 <artifactId>openpojo</artifactId>
287 <version>0.8.10</version>
289 <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-core -->
291 <groupId>ch.qos.logback</groupId>
292 <artifactId>logback-core</artifactId>
293 <version>1.2.11</version>
296 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
297 <artifactId>dmaap-client</artifactId>
298 <version>${sdk.version}</version>
306 <groupId>org.springframework.boot</groupId>
307 <artifactId>spring-boot-maven-plugin</artifactId>
308 <version>2.3.1.RELEASE</version>
312 <goal>repackage</goal>
318 <groupId>com.spotify</groupId>
319 <artifactId>docker-maven-plugin</artifactId>
320 <version>1.2.2</version>
322 <serverId>${docker.repository}</serverId>
323 <imageName>${docker.repository}/${docker.image.name}</imageName>
325 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
326 <imageTag>${project.version}</imageTag>
327 <imageTag>latest</imageTag>
329 <baseImage>onap/integration-java11:8.0.0</baseImage>
333 <targetPath>/home/onap</targetPath>
334 <directory>${project.build.directory}</directory>
335 <include>${project.artifactId}-${project.version}.jar</include>
338 <targetPath>/app</targetPath>
339 <directory>${project.basedir}</directory>
343 <!-- Maven is loosing file permissions during artifacts copy -->
344 <run>export trustpass=`cat /opt/app/kpims/etc/cert/trust.pass`</run>
345 <run>mv /home/onap/*.jar /app/app.jar</run>
348 <expose>8080</expose>
350 <entryPoint>exec java -Djavax.net.ssl.trustStore=/opt/app/kpims/etc/cert/trust.jks -Djavax.net.ssl.trustStorePassword=$trustpass -jar /app/app.jar</entryPoint>