Reshmasree | 59af21d | 2020-08-03 16:08:41 +0530 | [diff] [blame] | 1 | <?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> |
| 143 | <groupId>com.fasterxml.jackson.core</groupId> |
| 144 | <artifactId>jackson-databind</artifactId> |
| 145 | <version>2.11.0</version> |
| 146 | </dependency> |
| 147 | <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api --> |
| 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.1.3.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 | <dependency> |
| 165 | <groupId>org.postgresql</groupId> |
| 166 | <artifactId>postgresql</artifactId> |
| 167 | <version>42.2.5</version> |
| 168 | </dependency> |
| 169 | <dependency> |
| 170 | <groupId>org.springframework.boot</groupId> |
| 171 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 172 | <version>2.1.3.RELEASE</version> |
| 173 | </dependency> |
| 174 | <dependency> |
| 175 | <groupId>org.hibernate.javax.persistence</groupId> |
| 176 | <artifactId>hibernate-jpa-2.0-api</artifactId> |
| 177 | <version>1.0.1.Final</version> |
| 178 | </dependency> |
| 179 | <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans --> |
| 180 | <dependency> |
| 181 | <groupId>org.springframework.boot</groupId> |
| 182 | <artifactId>spring-boot-starter-test</artifactId> |
| 183 | <version>2.1.3.RELEASE</version> |
| 184 | <scope>test</scope> |
| 185 | <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> |
| 186 | </exclusion> </exclusions --> |
| 187 | </dependency> |
| 188 | <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core --> |
| 189 | <dependency> |
| 190 | <groupId>org.mockito</groupId> |
| 191 | <artifactId>mockito-core</artifactId> |
| 192 | <version>2.21.0</version> |
| 193 | <scope>test</scope> |
| 194 | </dependency> |
| 195 | <dependency> |
| 196 | <groupId>junit</groupId> |
| 197 | <artifactId>junit</artifactId> |
| 198 | <version>4.12</version> |
| 199 | <scope>test</scope> |
| 200 | </dependency> |
| 201 | <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 --> |
| 202 | <dependency> |
| 203 | <groupId>org.powermock</groupId> |
| 204 | <artifactId>powermock-api-mockito2</artifactId> |
| 205 | <version>2.0.2</version> |
| 206 | <exclusions> |
| 207 | <exclusion> |
| 208 | <groupId>org.mockito</groupId> |
| 209 | <artifactId>mockito-all</artifactId> |
| 210 | </exclusion> |
| 211 | </exclusions> |
| 212 | </dependency> |
| 213 | <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 --> |
| 214 | <dependency> |
| 215 | <groupId>org.powermock</groupId> |
| 216 | <artifactId>powermock-module-junit4</artifactId> |
| 217 | <version>2.0.2</version> |
| 218 | <scope>test</scope> |
| 219 | </dependency> |
| 220 | |
| 221 | <dependency> |
| 222 | <groupId>org.functionaljava</groupId> |
| 223 | <artifactId>functionaljava</artifactId> |
| 224 | <version>3.0</version> |
| 225 | </dependency> |
| 226 | |
| 227 | <dependency> |
| 228 | <groupId>org.apache.httpcomponents</groupId> |
| 229 | <artifactId>httpclient</artifactId> |
| 230 | <version>4.5.7</version> |
| 231 | </dependency> |
| 232 | |
| 233 | <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --> |
| 234 | <dependency> |
| 235 | <groupId>commons-beanutils</groupId> |
| 236 | <artifactId>commons-beanutils</artifactId> |
| 237 | <version>1.9.4</version> |
| 238 | </dependency> |
| 239 | <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server --> |
| 240 | <dependency> |
| 241 | <groupId>org.eclipse.jetty</groupId> |
| 242 | <artifactId>jetty-server</artifactId> |
| 243 | <version>9.4.17.v20190418</version> |
| 244 | </dependency> |
| 245 | <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap --> |
| 246 | <dependency> |
| 247 | <groupId>org.webjars</groupId> |
| 248 | <artifactId>bootstrap</artifactId> |
| 249 | <version>4.3.1</version> |
| 250 | </dependency> |
| 251 | <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api --> |
| 252 | <dependency> |
| 253 | <groupId>javax.xml.bind</groupId> |
| 254 | <artifactId>jaxb-api</artifactId> |
| 255 | <version>2.3.0</version> |
| 256 | </dependency> |
| 257 | <!-- https://mvnrepository.com/artifact/org.javassist/javassist --> |
| 258 | <dependency> |
| 259 | <groupId>org.javassist</groupId> |
| 260 | <artifactId>javassist</artifactId> |
| 261 | <version>3.24.1-GA</version> |
| 262 | </dependency> |
| 263 | <dependency> |
| 264 | <groupId>org.apache.tomcat.embed</groupId> |
| 265 | <artifactId>tomcat-embed-core</artifactId> |
| 266 | <version>9.0.36</version> |
| 267 | </dependency> |
| 268 | </dependencies> |
| 269 | |
| 270 | <build> |
| 271 | <plugins> |
| 272 | |
| 273 | <plugin> |
| 274 | <groupId>org.springframework.boot</groupId> |
| 275 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 276 | <version>2.3.1.RELEASE</version> |
| 277 | <executions> |
| 278 | <execution> |
| 279 | <goals> |
| 280 | <goal>repackage</goal> |
| 281 | </goals> |
| 282 | </execution> |
| 283 | </executions> |
| 284 | </plugin> |
| 285 | <plugin> |
| 286 | <groupId>com.spotify</groupId> |
| 287 | <artifactId>docker-maven-plugin</artifactId> |
| 288 | <configuration> |
| 289 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 290 | |
| 291 | <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName> |
| 292 | <imageTags> |
| 293 | <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag> |
| 294 | <imageTag>${project.version}</imageTag> |
| 295 | <imageTag>latest</imageTag> |
| 296 | </imageTags> |
| 297 | <baseImage>openjdk:11.0.6-jre-slim</baseImage> |
| 298 | <user>sliceanalysis</user> |
| 299 | <resources> |
| 300 | <resource> |
| 301 | <targetPath>/bin</targetPath> |
| 302 | <directory>${project.build.directory}</directory> |
| 303 | <include>${project.artifactId}-${project.version}.jar</include> |
| 304 | </resource> |
| 305 | </resources> |
| 306 | <runs> |
| 307 | <!-- Maven is loosing file permissions during artifacts copy --> |
| 308 | <run>adduser --disabled-password sliceanalysis </run> |
| 309 | <run>mv /bin/*.jar /bin/application.jar</run> |
| 310 | <run>chmod -R 777 /bin</run> |
| 311 | </runs> |
| 312 | <exposes> |
| 313 | <expose>8080</expose> |
| 314 | </exposes> |
| 315 | <entryPoint>java -jar /bin/application.jar</entryPoint> |
| 316 | </configuration> |
| 317 | </plugin> |
| 318 | </plugins> |
| 319 | </build> |
| 320 | |
| 321 | </project> |