Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ Copyright (c) 2021 China Mobile. All rights reserved. |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 5 | ~ Copyright (c) 2021 Wipro Limited. |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 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 |
| 10 | ~ |
| 11 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | ~ |
| 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========================================================= |
| 19 | --> |
| 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> |
| 24 | <parent> |
| 25 | <groupId>org.onap.oparent</groupId> |
| 26 | <artifactId>oparent</artifactId> |
| 27 | <version>2.0.0</version> |
| 28 | </parent> |
| 29 | |
| 30 | <groupId>org.onap.dcaegen2.services.components</groupId> |
| 31 | <artifactId>kpi-ms</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 32 | <version>1.0.1-SNAPSHOT</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 33 | <name>dcaegen2-services-kpi-computation-ms</name> |
| 34 | <description>Kpi ms</description> |
| 35 | <packaging>jar</packaging> |
| 36 | |
| 37 | <properties> |
| 38 | <java.version>11</java.version> |
Hariharan | 5daea7c | 2021-08-18 14:55:48 +0530 | [diff] [blame] | 39 | <sdk.version>1.8.7</sdk.version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 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> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 54 | <undertow.version>2.2.8.Final</undertow.version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 55 | <xml.version>2.3.1</xml.version> |
| 56 | <jaxb.version>2.3.0.1</jaxb.version> |
vv770d | 609abb2 | 2021-02-22 20:30:10 +0000 | [diff] [blame] | 57 | <docker.repository>nexus3.onap.org:10003</docker.repository> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 58 | <spring.version>5.3.7</spring.version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 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> |
| 65 | </properties> |
| 66 | |
| 67 | <dependencies> |
| 68 | <dependency> |
| 69 | <groupId>org.springframework.boot</groupId> |
| 70 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 71 | <version>2.3.1.RELEASE</version> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.springframework</groupId> |
| 75 | <artifactId>spring-webmvc</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 76 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.springframework</groupId> |
| 80 | <artifactId>spring-core</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 81 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.springframework</groupId> |
| 85 | <artifactId>spring-beans</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 86 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.springframework</groupId> |
| 90 | <artifactId>spring-expression</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 91 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>org.springframework</groupId> |
| 95 | <artifactId>spring-web</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 96 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.springframework</groupId> |
| 100 | <artifactId>spring-context</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 101 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>org.springframework</groupId> |
| 105 | <artifactId>spring-tx</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 106 | <version>${spring.version}</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 107 | </dependency> |
| 108 | <!-- cbs client --> |
| 109 | <dependency> |
| 110 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 111 | <artifactId>cbs-client</artifactId> |
| 112 | <version>${sdk.version}</version> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
| 116 | <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId> |
| 117 | <artifactId>crypt-password</artifactId> |
| 118 | <version>${sdk.version}</version> |
| 119 | </dependency> |
| 120 | <dependency> |
| 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>com.fasterxml.jackson.core</groupId> |
| 134 | <artifactId>jackson-core</artifactId> |
| 135 | <version>2.11.0</version> |
| 136 | </dependency> |
| 137 | <dependency> |
| 138 | <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> |
| 144 | <groupId>com.fasterxml.jackson.core</groupId> |
| 145 | <artifactId>jackson-databind</artifactId> |
| 146 | <version>2.11.0</version> |
| 147 | </dependency> |
| 148 | <dependency> |
| 149 | <groupId>javax.json</groupId> |
| 150 | <artifactId>javax.json-api</artifactId> |
| 151 | <version>1.1.2</version> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.springframework.boot</groupId> |
| 155 | <artifactId>spring-boot-starter-web</artifactId> |
| 156 | <version>2.2.0.RELEASE</version> |
| 157 | <exclusions> |
| 158 | <exclusion> |
| 159 | <groupId>org.springframework.boot</groupId> |
| 160 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 161 | </exclusion> |
| 162 | </exclusions> |
| 163 | </dependency> |
| 164 | |
| 165 | <dependency> |
| 166 | <groupId>org.functionaljava</groupId> |
| 167 | <artifactId>functionaljava</artifactId> |
| 168 | <version>3.0</version> |
| 169 | </dependency> |
| 170 | |
| 171 | <dependency> |
| 172 | <groupId>org.apache.httpcomponents</groupId> |
| 173 | <artifactId>httpclient</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 174 | <version>4.5.13</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 175 | </dependency> |
| 176 | |
| 177 | <dependency> |
| 178 | <groupId>org.eclipse.jetty</groupId> |
| 179 | <artifactId>jetty-server</artifactId> |
denilson.l65 | 1a970e9 | 2021-07-06 19:52:35 -0700 | [diff] [blame] | 180 | <version>9.4.41.v20210516</version> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 181 | </dependency> |
| 182 | <dependency> |
| 183 | <groupId>javax.xml.bind</groupId> |
| 184 | <artifactId>jaxb-api</artifactId> |
| 185 | <version>2.3.0</version> |
| 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>org.javassist</groupId> |
| 189 | <artifactId>javassist</artifactId> |
| 190 | <version>3.24.1-GA</version> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>org.json</groupId> |
| 194 | <artifactId>json</artifactId> |
| 195 | <version>20190722</version> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>org.projectlombok</groupId> |
| 199 | <artifactId>lombok</artifactId> |
| 200 | <version>${lombok.version}</version> |
| 201 | <scope>provided</scope> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>io.undertow</groupId> |
| 205 | <artifactId>undertow-core</artifactId> |
| 206 | <version>${undertow.version}</version> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>io.undertow</groupId> |
| 210 | <artifactId>undertow-servlet</artifactId> |
| 211 | <version>${undertow.version}</version> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>commons-lang</groupId> |
| 215 | <artifactId>commons-lang</artifactId> |
| 216 | <version>2.6</version> |
| 217 | </dependency> |
| 218 | <dependency> |
| 219 | <groupId>javax.xml.bind</groupId> |
| 220 | <artifactId>jaxb-api</artifactId> |
| 221 | <version>${xml.version}</version> |
| 222 | </dependency> |
| 223 | <dependency> |
| 224 | <groupId>com.sun.xml.bind</groupId> |
| 225 | <artifactId>jaxb-core</artifactId> |
| 226 | <version>${jaxb.version}</version> |
| 227 | </dependency> |
| 228 | <dependency> |
| 229 | <groupId>com.sun.xml.bind</groupId> |
| 230 | <artifactId>jaxb-impl</artifactId> |
| 231 | <version>${xml.version}</version> |
| 232 | </dependency> |
| 233 | <dependency> |
| 234 | <groupId>org.apache.commons</groupId> |
| 235 | <artifactId>commons-lang3</artifactId> |
| 236 | <version>3.7</version> |
| 237 | </dependency> |
| 238 | |
| 239 | <dependency> |
| 240 | <groupId>org.junit.jupiter</groupId> |
| 241 | <artifactId>junit-jupiter-engine</artifactId> |
| 242 | <version>${junit.version}</version> |
| 243 | <scope>test</scope> |
| 244 | </dependency> |
| 245 | <dependency> |
| 246 | <groupId>org.mockito</groupId> |
| 247 | <artifactId>mockito-junit-jupiter</artifactId> |
| 248 | <version>${mockito-ju5-ext.version}</version> |
| 249 | <scope>test</scope> |
| 250 | </dependency> |
| 251 | |
| 252 | <dependency> |
| 253 | <groupId>org.mockito</groupId> |
| 254 | <artifactId>mockito-core</artifactId> |
| 255 | <version>${mockito.version}</version> |
| 256 | <scope>test</scope> |
| 257 | </dependency> |
| 258 | <dependency> |
| 259 | <groupId>org.powermock</groupId> |
| 260 | <artifactId>powermock-module-junit4</artifactId> |
| 261 | <version>${powermock.version}</version> |
| 262 | <scope>test</scope> |
| 263 | </dependency> |
| 264 | <dependency> |
| 265 | <groupId>org.junit.vintage</groupId> |
| 266 | <artifactId>junit-vintage-engine</artifactId> |
| 267 | <version>${junit.version}</version> |
| 268 | <scope>test</scope> |
| 269 | </dependency> |
| 270 | <dependency> |
| 271 | <groupId>org.powermock</groupId> |
| 272 | <artifactId>powermock-api-mockito2</artifactId> |
| 273 | <version>${powermock.version}</version> |
| 274 | <scope>test</scope> |
| 275 | </dependency> |
| 276 | <dependency> |
| 277 | <groupId>org.junit.jupiter</groupId> |
| 278 | <artifactId>junit-jupiter-params</artifactId> |
| 279 | <version>${junit.version}</version> |
| 280 | <scope>test</scope> |
| 281 | </dependency> |
| 282 | <dependency> |
| 283 | <groupId>org.springframework.boot</groupId> |
| 284 | <artifactId>spring-boot-starter-test</artifactId> |
| 285 | <version>2.1.3.RELEASE</version> |
| 286 | <scope>test</scope> |
| 287 | </dependency> |
| 288 | <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core --> |
| 289 | <dependency> |
| 290 | <groupId>junit</groupId> |
| 291 | <artifactId>junit</artifactId> |
| 292 | <version>4.12</version> |
| 293 | <scope>test</scope> |
| 294 | </dependency> |
| 295 | <dependency> |
| 296 | <groupId>com.openpojo</groupId> |
| 297 | <artifactId>openpojo</artifactId> |
| 298 | <version>0.8.10</version> |
| 299 | </dependency> |
| 300 | </dependencies> |
| 301 | |
| 302 | <build> |
| 303 | <plugins> |
| 304 | |
| 305 | <plugin> |
| 306 | <groupId>org.springframework.boot</groupId> |
| 307 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 308 | <version>2.3.1.RELEASE</version> |
| 309 | <executions> |
| 310 | <execution> |
| 311 | <goals> |
| 312 | <goal>repackage</goal> |
| 313 | </goals> |
| 314 | </execution> |
| 315 | </executions> |
| 316 | </plugin> |
| 317 | <plugin> |
| 318 | <groupId>com.spotify</groupId> |
| 319 | <artifactId>docker-maven-plugin</artifactId> |
| 320 | <version>1.2.2</version> |
| 321 | <configuration> |
| 322 | <serverId>${docker.repository}</serverId> |
| 323 | <imageName>${docker.repository}/${docker.image.name}</imageName> |
| 324 | <imageTags> |
| 325 | <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag> |
| 326 | <imageTag>${project.version}</imageTag> |
| 327 | <imageTag>latest</imageTag> |
| 328 | </imageTags> |
| 329 | <baseImage>onap/integration-java11:8.0.0</baseImage> |
| 330 | <user>onap</user> |
| 331 | <resources> |
| 332 | <resource> |
| 333 | <targetPath>/home/onap</targetPath> |
| 334 | <directory>${project.build.directory}</directory> |
| 335 | <include>${project.artifactId}-${project.version}.jar</include> |
| 336 | </resource> |
| 337 | <resource> |
Kai | d900241 | 2021-02-23 13:51:18 +0800 | [diff] [blame] | 338 | <targetPath>/app</targetPath> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 339 | <directory>${project.basedir}</directory> |
Kai | 0927204 | 2021-01-21 10:19:18 +0800 | [diff] [blame] | 340 | </resource> |
| 341 | </resources> |
| 342 | |
| 343 | <runs> |
| 344 | <!-- Maven is loosing file permissions during artifacts copy --> |
| 345 | <run>export trustpass=`cat /opt/app/kpims/etc/cert/trust.pass`</run> |
| 346 | <run>mv /home/onap/*.jar /app/app.jar</run> |
| 347 | </runs> |
| 348 | <exposes> |
| 349 | <expose>8080</expose> |
| 350 | </exposes> |
| 351 | <entryPoint>exec java -Djavax.net.ssl.trustStore=/opt/app/kpims/etc/cert/trust.jks -Djavax.net.ssl.trustStorePassword=$trustpass -jar /app/app.jar</entryPoint> |
| 352 | </configuration> |
| 353 | </plugin> |
| 354 | </plugins> |
| 355 | </build> |
| 356 | |
| 357 | </project> |
| 358 | |