BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | * ============LICENSE_START======================================================= |
| 4 | * ONAP : CCSDK.apps |
| 5 | * ================================================================================ |
| 6 | * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 7 | * ================================================================================ |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 25 | <groupId>org.onap.ccsdk.apps</groupId> |
| 26 | <artifactId>ccsdk-apps-ms-neng</artifactId> |
| 27 | <version>0.3.0-SNAPSHOT</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 28 | |
| 29 | <properties> |
| 30 | <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory> |
| 31 | <icd.file>service.json</icd.file> |
| 32 | <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package> |
| 33 | <java.version>1.8</java.version> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 34 | <spring.version>4.3.8.RELEASE</spring.version> |
| 35 | <springboot.version>1.5.3.RELEASE</springboot.version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 36 | <docker.registry>TBD:5100</docker.registry> |
| 37 | <build.number>local</build.number> |
| 38 | <kube.namespace>TBD</kube.namespace> |
| 39 | <service.account>TBD</service.account> |
| 40 | <namespace>org.onap.ccsdk.apps.ms.neng</namespace> |
| 41 | <maven.compiler.source>1.8</maven.compiler.source> |
| 42 | <maven.compiler.target>1.8</maven.compiler.target> |
| 43 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 44 | <sdk.java.rest>6.2.0.11</sdk.java.rest> |
| 45 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 46 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 47 | <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath> |
| 48 | <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath> |
| 49 | <jacoco.path>${basedir}/target/jacoco_report</jacoco.path> |
| 50 | <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath> |
| 51 | <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 52 | <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 53 | <sonar.language>java</sonar.language> |
| 54 | <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName> |
| 55 | </properties> |
| 56 | |
| 57 | <profiles> |
| 58 | <profile> |
| 59 | <id>all-tests</id> |
| 60 | <properties> |
| 61 | <build.profile.id>all-tests</build.profile.id> |
| 62 | <skip.integration.tests>false</skip.integration.tests> |
| 63 | <skip.unit.tests>false</skip.unit.tests> |
| 64 | </properties> |
| 65 | </profile> |
| 66 | <profile> |
| 67 | <id>dev</id> |
| 68 | </profile> |
| 69 | <profile> |
| 70 | <id>integration-test</id> |
| 71 | <properties> |
| 72 | <build.profile.id>integration-test</build.profile.id> |
| 73 | <skip.integration.tests>false</skip.integration.tests> |
| 74 | <skip.unit.tests>true</skip.unit.tests> |
| 75 | </properties> |
| 76 | </profile> |
| 77 | </profiles> |
| 78 | |
| 79 | <developers> |
| 80 | <developer> |
| 81 | <id>${userId}</id> |
| 82 | </developer> |
| 83 | </developers> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 84 | |
| 85 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 86 | <parent> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 87 | <groupId>org.onap.ccsdk.parent</groupId> |
| 88 | <artifactId>odlparent-lite</artifactId> |
| 89 | <version>1.1.0-SNAPSHOT</version> |
| 90 | <relativePath /> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 91 | </parent> |
| 92 | |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 93 | <dependencyManagement> |
| 94 | <dependencies> |
| 95 | <dependency> |
| 96 | <groupId>org.springframework.boot</groupId> |
| 97 | <artifactId>spring-boot-starter-parent</artifactId> |
| 98 | <version>${springboot.version}</version> |
| 99 | <type>pom</type> |
| 100 | <scope>import</scope> |
| 101 | </dependency> |
| 102 | </dependencies> |
| 103 | </dependencyManagement> |
| 104 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 105 | <dependencies> |
| 106 | <dependency> |
| 107 | <groupId>io.swagger</groupId> |
| 108 | <artifactId>swagger-core</artifactId> |
| 109 | <version>1.5.20</version> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>org.springframework.boot</groupId> |
| 113 | <artifactId>spring-boot-starter-web</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 114 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.springframework.boot</groupId> |
| 118 | <artifactId>spring-boot-starter-jersey</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 119 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>org.springframework.boot</groupId> |
| 123 | <artifactId>spring-boot-starter-actuator</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 124 | <version>${springboot.version}</version> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.springframework.boot</groupId> |
| 128 | <artifactId>spring-boot-loader-tools</artifactId> |
| 129 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.springframework.boot</groupId> |
| 133 | <artifactId>spring-boot-starter-test</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 134 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 135 | <scope>test</scope> |
| 136 | </dependency> |
| 137 | <dependency> |
| 138 | <groupId>org.springframework.boot</groupId> |
| 139 | <artifactId>spring-boot-starter-tomcat</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 140 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 141 | <scope>compile</scope> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>org.springframework.boot</groupId> |
| 145 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 146 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 147 | <scope>compile</scope> |
| 148 | </dependency> |
| 149 | <dependency> |
| 150 | <groupId>org.apache.httpcomponents</groupId> |
| 151 | <artifactId>httpclient</artifactId> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>javax.ws.rs</groupId> |
| 155 | <artifactId>javax.ws.rs-api</artifactId> |
| 156 | <version>2.1</version> |
| 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>commons-lang</groupId> |
| 160 | <artifactId>commons-lang</artifactId> |
| 161 | <version>2.6</version> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>org.liquibase</groupId> |
| 165 | <artifactId>liquibase-core</artifactId> |
| 166 | </dependency> |
| 167 | <dependency> |
| 168 | <groupId>org.wisdom-framework</groupId> |
| 169 | <artifactId>mysql-connector-java</artifactId> |
| 170 | <version>5.1.34_1</version> |
| 171 | </dependency> |
| 172 | <dependency> |
| 173 | <groupId>com.h2database</groupId> |
| 174 | <artifactId>h2</artifactId> |
| 175 | </dependency> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 176 | <dependency> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 177 | <groupId>org.springframework.boot</groupId> |
| 178 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 179 | <version>${springboot.version}</version> |
| 180 | <optional>true</optional> |
| 181 | </dependency> |
| 182 | <dependency> |
| 183 | <groupId>org.springframework</groupId> |
| 184 | <artifactId>spring-test</artifactId> |
| 185 | <version>${spring.version}</version> |
| 186 | <scope>test</scope> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>org.springframework</groupId> |
| 190 | <artifactId>spring-aop</artifactId> |
| 191 | <version>${spring.version}</version> |
| 192 | <scope>test</scope> |
| 193 | </dependency> |
| 194 | <dependency> |
| 195 | <groupId>org.springframework</groupId> |
| 196 | <artifactId>spring-beans</artifactId> |
| 197 | <version>${spring.version}</version> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>org.springframework</groupId> |
| 201 | <artifactId>spring-beans</artifactId> |
| 202 | <version>${spring.version}</version> |
| 203 | </dependency> |
| 204 | <dependency> |
| 205 | <groupId>org.springframework</groupId> |
| 206 | <artifactId>spring-context</artifactId> |
| 207 | <version>${spring.version}</version> |
| 208 | </dependency> |
| 209 | <dependency> |
| 210 | <groupId>org.springframework</groupId> |
| 211 | <artifactId>spring-core</artifactId> |
| 212 | <version>${spring.version}</version> |
| 213 | </dependency> |
| 214 | <dependency> |
| 215 | <groupId>org.springframework</groupId> |
| 216 | <artifactId>spring-expression</artifactId> |
| 217 | <version>${spring.version}</version> |
| 218 | </dependency> |
| 219 | <dependency> |
| 220 | <groupId>org.springframework</groupId> |
| 221 | <artifactId>spring-web</artifactId> |
| 222 | <version>${spring.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 223 | </dependency> |
| 224 | </dependencies> |
| 225 | |
| 226 | <build> |
| 227 | <finalName>NetworkElementNameGen</finalName> |
| 228 | <plugins> |
| 229 | <plugin> |
| 230 | <groupId>org.jacoco</groupId> |
| 231 | <artifactId>jacoco-maven-plugin</artifactId> |
| 232 | <version>0.7.5.201505241946</version> |
| 233 | <executions> |
| 234 | <execution> |
| 235 | <id>pre-unit-test</id> |
| 236 | <goals> |
| 237 | <goal>prepare-agent</goal> |
| 238 | </goals> |
| 239 | <configuration> |
| 240 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 241 | <propertyName>surefireArgLine</propertyName> |
| 242 | </configuration> |
| 243 | </execution> |
| 244 | <execution> |
| 245 | <id>post-unit-test</id> |
| 246 | <phase>test</phase> |
| 247 | <goals> |
| 248 | <goal>report</goal> |
| 249 | </goals> |
| 250 | <configuration> |
| 251 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 252 | <outputDirectory>${jacoco.path}</outputDirectory> |
| 253 | </configuration> |
| 254 | </execution> |
| 255 | <execution> |
| 256 | <id>pre-integration-test</id> |
| 257 | <phase>pre-integration-test</phase> |
| 258 | <goals> |
| 259 | <goal>prepare-agent</goal> |
| 260 | </goals> |
| 261 | <configuration> |
| 262 | <destFile>${sonar.jacoco.itReportPath}</destFile> |
| 263 | <propertyName>failsafeArgLine</propertyName> |
| 264 | </configuration> |
| 265 | </execution> |
| 266 | <execution> |
| 267 | <id>post-integration-test</id> |
| 268 | <phase>post-integration-test</phase> |
| 269 | <goals> |
| 270 | <goal>report</goal> |
| 271 | </goals> |
| 272 | <configuration> |
| 273 | <dataFile>${sonar.jacoco.itReportPath}/</dataFile> |
| 274 | <outputDirectory>${jacoco.itPath}</outputDirectory> |
| 275 | </configuration> |
| 276 | </execution> |
| 277 | </executions> |
| 278 | </plugin> |
| 279 | <plugin> |
| 280 | <groupId>org.apache.maven.plugins</groupId> |
| 281 | <artifactId>maven-surefire-plugin</artifactId> |
| 282 | <configuration> |
| 283 | <argLine>${surefireArgLine}</argLine> |
| 284 | <skipTests>${skip.unit.tests}</skipTests> |
| 285 | <excludes> |
| 286 | <exclude>**/IT*.java</exclude> |
| 287 | </excludes> |
| 288 | </configuration> |
| 289 | </plugin> |
| 290 | <plugin> |
| 291 | <groupId>org.apache.maven.plugins</groupId> |
| 292 | <artifactId>maven-failsafe-plugin</artifactId> |
| 293 | <executions> |
| 294 | <execution> |
| 295 | <id>integration-tests</id> |
| 296 | <goals> |
| 297 | <goal>integration-test</goal> |
| 298 | <goal>verify</goal> |
| 299 | </goals> |
| 300 | <configuration> |
| 301 | <argLine>${failsafeArgLine}</argLine> |
| 302 | <skipTests>${skip.integration.tests}</skipTests> |
| 303 | </configuration> |
| 304 | </execution> |
| 305 | </executions> |
| 306 | </plugin> |
| 307 | <plugin> |
| 308 | <artifactId>maven-dependency-plugin</artifactId> |
| 309 | </plugin> |
| 310 | <plugin> |
| 311 | <groupId>com.github.kongchen</groupId> |
| 312 | <artifactId>swagger-maven-plugin</artifactId> |
| 313 | <version>3.1.3</version> |
| 314 | <configuration> |
| 315 | <apiSources> |
| 316 | <apiSource> |
| 317 | <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations> |
| 318 | <basePath>/web</basePath> |
| 319 | <info> |
| 320 | <title>${project.artifactId} Service</title> |
| 321 | <version>${project.version}</version> |
| 322 | </info> |
| 323 | <swaggerDirectory>${swagger.directory}</swaggerDirectory> |
| 324 | </apiSource> |
| 325 | </apiSources> |
| 326 | </configuration> |
| 327 | <executions> |
| 328 | <execution> |
| 329 | <phase>package</phase> |
| 330 | <goals> |
| 331 | <goal>generate</goal> |
| 332 | </goals> |
| 333 | </execution> |
| 334 | </executions> |
| 335 | </plugin> |
| 336 | |
| 337 | <plugin> |
| 338 | <artifactId>exec-maven-plugin</artifactId> |
| 339 | <groupId>org.codehaus.mojo</groupId> |
| 340 | </plugin> |
| 341 | <plugin> |
| 342 | <groupId>com.spotify</groupId> |
| 343 | <artifactId>docker-maven-plugin</artifactId> |
| 344 | <version>0.4.11</version> |
| 345 | <configuration> |
| 346 | <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName> |
| 347 | <dockerDirectory>src/main/docker</dockerDirectory> |
| 348 | <serverId>docker-hub</serverId> |
| 349 | <registryUrl>https://${docker.registry}</registryUrl> |
| 350 | <imageTags> |
| 351 | <imageTag>${project.version}</imageTag> |
| 352 | <imageTag>latest</imageTag> |
| 353 | </imageTags> |
| 354 | <forceTags>true</forceTags> |
| 355 | <resources> |
| 356 | <resource> |
| 357 | <targetPath>/</targetPath> |
| 358 | <directory>${project.build.directory}</directory> |
| 359 | <include>${project.build.finalName}.jar</include> |
| 360 | </resource> |
| 361 | <resource> |
| 362 | <targetPath>/</targetPath> |
| 363 | <directory>${project.build.directory}</directory> |
| 364 | <include>opt/etc/config/*</include> |
| 365 | </resource> |
| 366 | <resource> |
| 367 | <targetPath>/</targetPath> |
| 368 | <directory>${project.build.directory}</directory> |
| 369 | <include>opt/etc/keystore/*</include> |
| 370 | </resource> |
| 371 | <resource> |
| 372 | <targetPath>/</targetPath> |
| 373 | <directory>${project.build.directory}</directory> |
| 374 | <include>opt/etc/truststore/*</include> |
| 375 | </resource> |
| 376 | <resource> |
| 377 | <targetPath>/</targetPath> |
| 378 | <directory>${project.build.directory}</directory> |
| 379 | <include>opt/aai/keystore/*</include> |
| 380 | </resource> |
| 381 | <resource> |
| 382 | <targetPath>/</targetPath> |
| 383 | <directory>${project.build.directory}</directory> |
| 384 | <include>etc/*</include> |
| 385 | </resource> |
| 386 | </resources> |
| 387 | </configuration> |
| 388 | </plugin> |
| 389 | <plugin> |
| 390 | <groupId>org.springframework.boot</groupId> |
| 391 | <artifactId>spring-boot-maven-plugin</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 392 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 393 | <executions> |
| 394 | <execution> |
| 395 | <goals> |
| 396 | <goal>repackage</goal> |
| 397 | </goals> |
| 398 | </execution> |
| 399 | </executions> |
| 400 | </plugin> |
| 401 | </plugins> |
| 402 | <resources> |
| 403 | <resource> |
| 404 | <directory>src/main/resources</directory> |
| 405 | <filtering>true</filtering> |
| 406 | <includes> |
| 407 | <include>**/*</include> |
| 408 | </includes> |
| 409 | </resource> |
| 410 | <resource> |
| 411 | <directory>opt/aai/keystore</directory> |
| 412 | <targetPath>../opt/aai/keystore</targetPath> |
| 413 | <filtering>false</filtering> |
| 414 | <includes> |
| 415 | <include>**/*</include> |
| 416 | </includes> |
| 417 | </resource> |
| 418 | |
| 419 | <resource> |
| 420 | <directory>opt/etc/config</directory> |
| 421 | <targetPath>../opt/etc/config</targetPath> |
| 422 | <filtering>true</filtering> |
| 423 | <includes> |
| 424 | <include>**/*</include> |
| 425 | </includes> |
| 426 | </resource> |
| 427 | <resource> |
| 428 | <directory>opt/etc/keystore</directory> |
| 429 | <targetPath>../opt/etc/keystore</targetPath> |
| 430 | <filtering>false</filtering> |
| 431 | <includes> |
| 432 | <include>**/*</include> |
| 433 | </includes> |
| 434 | </resource> |
| 435 | <resource> |
| 436 | <directory>opt/etc/truststore</directory> |
| 437 | <targetPath>../opt/etc/truststore</targetPath> |
| 438 | <filtering>false</filtering> |
| 439 | <includes> |
| 440 | <include>**/*</include> |
| 441 | </includes> |
| 442 | </resource> |
| 443 | </resources> |
| 444 | </build> |
| 445 | </project> |
| 446 | |