BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 2 | <!-- |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 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 |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 11 | * |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 13 | * |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 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" |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 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> |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 35 | <springboot.version>1.5.6.RELEASE</springboot.version> |
BT2983 | 9783a8b | 2018-09-16 21:30:20 -0600 | [diff] [blame] | 36 | <docker.registry>nexus3.onap.org:10001</docker.registry> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 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> |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 55 | <project.version>0.3.0</project.version> |
| 56 | <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version> |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 57 | <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 58 | <docker.push.phase>deploy</docker.push.phase> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 59 | <docker.verbose>true</docker.verbose> |
| 60 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 61 | <image.name>onap/ccsdk-apps-ms-neng</image.name> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 62 | </properties> |
| 63 | |
| 64 | <profiles> |
| 65 | <profile> |
| 66 | <id>all-tests</id> |
| 67 | <properties> |
| 68 | <build.profile.id>all-tests</build.profile.id> |
| 69 | <skip.integration.tests>false</skip.integration.tests> |
| 70 | <skip.unit.tests>false</skip.unit.tests> |
| 71 | </properties> |
| 72 | </profile> |
| 73 | <profile> |
| 74 | <id>dev</id> |
| 75 | </profile> |
| 76 | <profile> |
| 77 | <id>integration-test</id> |
| 78 | <properties> |
| 79 | <build.profile.id>integration-test</build.profile.id> |
| 80 | <skip.integration.tests>false</skip.integration.tests> |
| 81 | <skip.unit.tests>true</skip.unit.tests> |
| 82 | </properties> |
| 83 | </profile> |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 84 | |
| 85 | <profile> |
| 86 | <id>blackduck</id> |
| 87 | <activation> |
| 88 | <property> |
| 89 | <name>blackduck-scan</name> |
| 90 | </property> |
| 91 | </activation> |
| 92 | <build> |
| 93 | <plugins> |
| 94 | <plugin> |
| 95 | <groupId>com.blackducksoftware.integration</groupId> |
| 96 | <artifactId>hub-maven-plugin</artifactId> |
| 97 | <version>1.4.0</version> |
| 98 | <inherited>false</inherited> |
| 99 | <configuration> |
| 100 | <hubProjectName>${project.name}</hubProjectName> |
| 101 | <outputDirectory>${project.basedir}</outputDirectory> |
| 102 | </configuration> |
| 103 | <executions> |
| 104 | <execution> |
| 105 | <id>create-bdio-file</id> |
| 106 | <phase>package</phase> |
| 107 | <goals> |
| 108 | <goal>createHubOutput</goal> |
| 109 | </goals> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | </plugin> |
| 113 | </plugins> |
| 114 | </build> |
| 115 | </profile> |
| 116 | |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 117 | <profile> |
| 118 | <id>docker</id> |
| 119 | <build> |
| 120 | <plugins> |
| 121 | <plugin> |
| 122 | <artifactId>maven-resources-plugin</artifactId> |
| 123 | <version>2.6</version> |
| 124 | <executions> |
| 125 | <execution> |
| 126 | <id>copy-dockerfile</id> |
| 127 | <goals> |
| 128 | <goal>copy-resources</goal> |
| 129 | </goals> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 130 | <phase>validate</phase> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 131 | <configuration> |
| 132 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 133 | <resources> |
| 134 | <resource> |
| 135 | <directory>src/main/docker</directory> |
| 136 | <includes> |
| 137 | <include>startService.sh</include> |
| 138 | <include>Dockerfile</include> |
| 139 | </includes> |
| 140 | <filtering>true</filtering> |
| 141 | </resource> |
| 142 | </resources> |
| 143 | </configuration> |
| 144 | </execution> |
| 145 | <execution> |
| 146 | <id>copy-app-jar</id> |
| 147 | <goals> |
| 148 | <goal>copy-resources</goal> |
| 149 | </goals> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 150 | <phase>validate</phase> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 151 | <configuration> |
| 152 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 153 | <resources> |
| 154 | <resource> |
| 155 | <directory>${basedir}/target/</directory> |
| 156 | <includes> |
| 157 | <include>NetworkElementNameGen.jar</include> |
| 158 | </includes> |
| 159 | <filtering>false</filtering> |
| 160 | </resource> |
| 161 | </resources> |
| 162 | </configuration> |
| 163 | </execution> |
| 164 | <execution> |
| 165 | <id>copy-config</id> |
| 166 | <goals> |
| 167 | <goal>copy-resources</goal> |
| 168 | </goals> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 169 | <phase>validate</phase> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 170 | <configuration> |
| 171 | <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory> |
| 172 | <resources> |
| 173 | <resource> |
| 174 | <directory>${basedir}/opt/etc/config</directory> |
| 175 | <includes> |
| 176 | <include>*</include> |
| 177 | </includes> |
| 178 | <filtering>true</filtering> |
| 179 | </resource> |
| 180 | </resources> |
| 181 | </configuration> |
| 182 | </execution> |
| 183 | </executions> |
| 184 | </plugin> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 185 | |
| 186 | |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 187 | <plugin> |
| 188 | <groupId>io.fabric8</groupId> |
| 189 | <artifactId>docker-maven-plugin</artifactId> |
| 190 | <version>0.26.1</version> |
| 191 | <inherited>false</inherited> |
| 192 | <configuration> |
| 193 | <images> |
| 194 | <image> |
| 195 | <name>${image.name}</name> |
| 196 | <build> |
| 197 | <cleanup>try</cleanup> |
| 198 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 199 | <tags> |
| 200 | <tag>${project.version}</tag> |
| 201 | <tag>${project.docker.latesttag.version}</tag> |
| 202 | </tags> |
| 203 | </build> |
| 204 | </image> |
| 205 | </images> |
| 206 | <verbose>true</verbose> |
| 207 | </configuration> |
| 208 | <executions> |
| 209 | <execution> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 210 | <id>generate-images</id> |
| 211 | <phase>package</phase> |
| 212 | <goals> |
| 213 | <goal>build</goal> |
| 214 | </goals> |
| 215 | </execution> |
| 216 | <execution> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 217 | <id>push-images</id> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 218 | <phase>${docker.push.phase}</phase> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 219 | <goals> |
| 220 | <goal>build</goal> |
| 221 | <goal>push</goal> |
| 222 | </goals> |
| 223 | </execution> |
| 224 | </executions> |
| 225 | </plugin> |
| 226 | </plugins> |
| 227 | </build> |
| 228 | </profile> |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 229 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 230 | </profiles> |
| 231 | |
| 232 | <developers> |
| 233 | <developer> |
| 234 | <id>${userId}</id> |
| 235 | </developer> |
| 236 | </developers> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 237 | |
| 238 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 239 | <parent> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 240 | <groupId>org.onap.ccsdk.parent</groupId> |
| 241 | <artifactId>odlparent-lite</artifactId> |
| 242 | <version>1.1.0-SNAPSHOT</version> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 243 | <relativePath/> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 244 | </parent> |
| 245 | |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 246 | <dependencyManagement> |
| 247 | <dependencies> |
| 248 | <dependency> |
| 249 | <groupId>org.springframework.boot</groupId> |
| 250 | <artifactId>spring-boot-starter-parent</artifactId> |
| 251 | <version>${springboot.version}</version> |
| 252 | <type>pom</type> |
| 253 | <scope>import</scope> |
| 254 | </dependency> |
| 255 | </dependencies> |
| 256 | </dependencyManagement> |
| 257 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 258 | <dependencies> |
| 259 | <dependency> |
| 260 | <groupId>io.swagger</groupId> |
| 261 | <artifactId>swagger-core</artifactId> |
| 262 | <version>1.5.20</version> |
| 263 | </dependency> |
| 264 | <dependency> |
| 265 | <groupId>org.springframework.boot</groupId> |
| 266 | <artifactId>spring-boot-starter-web</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 267 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 268 | </dependency> |
| 269 | <dependency> |
| 270 | <groupId>org.springframework.boot</groupId> |
| 271 | <artifactId>spring-boot-starter-jersey</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 272 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 273 | </dependency> |
| 274 | <dependency> |
| 275 | <groupId>org.springframework.boot</groupId> |
| 276 | <artifactId>spring-boot-starter-actuator</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 277 | <version>${springboot.version}</version> |
| 278 | </dependency> |
| 279 | <dependency> |
| 280 | <groupId>org.springframework.boot</groupId> |
| 281 | <artifactId>spring-boot-loader-tools</artifactId> |
| 282 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 283 | </dependency> |
| 284 | <dependency> |
| 285 | <groupId>org.springframework.boot</groupId> |
| 286 | <artifactId>spring-boot-starter-test</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 287 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 288 | <scope>test</scope> |
| 289 | </dependency> |
| 290 | <dependency> |
| 291 | <groupId>org.springframework.boot</groupId> |
| 292 | <artifactId>spring-boot-starter-tomcat</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 293 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 294 | <scope>compile</scope> |
| 295 | </dependency> |
| 296 | <dependency> |
| 297 | <groupId>org.springframework.boot</groupId> |
| 298 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 299 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 300 | <scope>compile</scope> |
| 301 | </dependency> |
| 302 | <dependency> |
| 303 | <groupId>org.apache.httpcomponents</groupId> |
| 304 | <artifactId>httpclient</artifactId> |
| 305 | </dependency> |
| 306 | <dependency> |
| 307 | <groupId>javax.ws.rs</groupId> |
| 308 | <artifactId>javax.ws.rs-api</artifactId> |
| 309 | <version>2.1</version> |
| 310 | </dependency> |
| 311 | <dependency> |
| 312 | <groupId>commons-lang</groupId> |
| 313 | <artifactId>commons-lang</artifactId> |
| 314 | <version>2.6</version> |
| 315 | </dependency> |
| 316 | <dependency> |
| 317 | <groupId>org.liquibase</groupId> |
| 318 | <artifactId>liquibase-core</artifactId> |
| 319 | </dependency> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 320 | <dependency> |
| 321 | <groupId>org.mariadb.jdbc</groupId> |
| 322 | <artifactId>mariadb-java-client</artifactId> |
| 323 | <version>${mariadb.connector.version}</version> |
| 324 | </dependency> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 325 | <dependency> |
| 326 | <groupId>com.h2database</groupId> |
| 327 | <artifactId>h2</artifactId> |
| 328 | </dependency> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 329 | <dependency> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 330 | <groupId>org.springframework.boot</groupId> |
| 331 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 332 | <version>${springboot.version}</version> |
| 333 | <optional>true</optional> |
| 334 | </dependency> |
| 335 | <dependency> |
| 336 | <groupId>org.springframework</groupId> |
| 337 | <artifactId>spring-test</artifactId> |
| 338 | <version>${spring.version}</version> |
| 339 | <scope>test</scope> |
| 340 | </dependency> |
| 341 | <dependency> |
| 342 | <groupId>org.springframework</groupId> |
| 343 | <artifactId>spring-aop</artifactId> |
| 344 | <version>${spring.version}</version> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 345 | </dependency> |
| 346 | <dependency> |
| 347 | <groupId>org.springframework</groupId> |
| 348 | <artifactId>spring-beans</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 349 | </dependency> |
| 350 | <dependency> |
| 351 | <groupId>org.springframework</groupId> |
| 352 | <artifactId>spring-beans</artifactId> |
| 353 | <version>${spring.version}</version> |
| 354 | </dependency> |
| 355 | <dependency> |
| 356 | <groupId>org.springframework</groupId> |
| 357 | <artifactId>spring-context</artifactId> |
| 358 | <version>${spring.version}</version> |
| 359 | </dependency> |
| 360 | <dependency> |
| 361 | <groupId>org.springframework</groupId> |
| 362 | <artifactId>spring-core</artifactId> |
| 363 | <version>${spring.version}</version> |
| 364 | </dependency> |
| 365 | <dependency> |
| 366 | <groupId>org.springframework</groupId> |
| 367 | <artifactId>spring-expression</artifactId> |
| 368 | <version>${spring.version}</version> |
| 369 | </dependency> |
| 370 | <dependency> |
| 371 | <groupId>org.springframework</groupId> |
| 372 | <artifactId>spring-web</artifactId> |
| 373 | <version>${spring.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 374 | </dependency> |
| 375 | </dependencies> |
| 376 | |
| 377 | <build> |
| 378 | <finalName>NetworkElementNameGen</finalName> |
| 379 | <plugins> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 380 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 381 | <plugin> |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 382 | <groupId>org.codehaus.groovy.maven</groupId> |
| 383 | <artifactId>gmaven-plugin</artifactId> |
| 384 | <version>1.0</version> |
| 385 | <executions> |
| 386 | <execution> |
| 387 | <phase>validate</phase> |
| 388 | <goals> |
| 389 | <goal>execute</goal> |
| 390 | </goals> |
| 391 | <configuration> |
| 392 | <source> |
| 393 | println project.properties['ccsdk.project.version']; |
| 394 | def versionArray; |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 395 | if (project.properties['ccsdk.project.version'] != null) { |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 396 | versionArray = project.properties['ccsdk.project.version'].split('\\.'); |
| 397 | } |
| 398 | |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 399 | if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) { |
| 400 | project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 401 | } else { |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 402 | project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
Timoney, Dan (dt5972) | 7489607 | 2018-09-12 15:31:10 -0400 | [diff] [blame] | 403 | } |
| 404 | |
| 405 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 406 | </source> |
| 407 | </configuration> |
| 408 | </execution> |
| 409 | </executions> |
| 410 | </plugin> |
| 411 | <plugin> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 412 | <groupId>org.jacoco</groupId> |
| 413 | <artifactId>jacoco-maven-plugin</artifactId> |
| 414 | <version>0.7.5.201505241946</version> |
| 415 | <executions> |
| 416 | <execution> |
| 417 | <id>pre-unit-test</id> |
| 418 | <goals> |
| 419 | <goal>prepare-agent</goal> |
| 420 | </goals> |
| 421 | <configuration> |
| 422 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 423 | <propertyName>surefireArgLine</propertyName> |
| 424 | </configuration> |
| 425 | </execution> |
| 426 | <execution> |
| 427 | <id>post-unit-test</id> |
| 428 | <phase>test</phase> |
| 429 | <goals> |
| 430 | <goal>report</goal> |
| 431 | </goals> |
| 432 | <configuration> |
| 433 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 434 | <outputDirectory>${jacoco.path}</outputDirectory> |
| 435 | </configuration> |
| 436 | </execution> |
| 437 | <execution> |
| 438 | <id>pre-integration-test</id> |
| 439 | <phase>pre-integration-test</phase> |
| 440 | <goals> |
| 441 | <goal>prepare-agent</goal> |
| 442 | </goals> |
| 443 | <configuration> |
| 444 | <destFile>${sonar.jacoco.itReportPath}</destFile> |
| 445 | <propertyName>failsafeArgLine</propertyName> |
| 446 | </configuration> |
| 447 | </execution> |
| 448 | <execution> |
| 449 | <id>post-integration-test</id> |
| 450 | <phase>post-integration-test</phase> |
| 451 | <goals> |
| 452 | <goal>report</goal> |
| 453 | </goals> |
| 454 | <configuration> |
| 455 | <dataFile>${sonar.jacoco.itReportPath}/</dataFile> |
| 456 | <outputDirectory>${jacoco.itPath}</outputDirectory> |
| 457 | </configuration> |
| 458 | </execution> |
| 459 | </executions> |
| 460 | </plugin> |
| 461 | <plugin> |
| 462 | <groupId>org.apache.maven.plugins</groupId> |
| 463 | <artifactId>maven-surefire-plugin</artifactId> |
| 464 | <configuration> |
| 465 | <argLine>${surefireArgLine}</argLine> |
| 466 | <skipTests>${skip.unit.tests}</skipTests> |
| 467 | <excludes> |
| 468 | <exclude>**/IT*.java</exclude> |
| 469 | </excludes> |
| 470 | </configuration> |
| 471 | </plugin> |
| 472 | <plugin> |
| 473 | <groupId>org.apache.maven.plugins</groupId> |
| 474 | <artifactId>maven-failsafe-plugin</artifactId> |
| 475 | <executions> |
| 476 | <execution> |
| 477 | <id>integration-tests</id> |
| 478 | <goals> |
| 479 | <goal>integration-test</goal> |
| 480 | <goal>verify</goal> |
| 481 | </goals> |
| 482 | <configuration> |
| 483 | <argLine>${failsafeArgLine}</argLine> |
| 484 | <skipTests>${skip.integration.tests}</skipTests> |
| 485 | </configuration> |
| 486 | </execution> |
| 487 | </executions> |
| 488 | </plugin> |
| 489 | <plugin> |
| 490 | <artifactId>maven-dependency-plugin</artifactId> |
| 491 | </plugin> |
| 492 | <plugin> |
| 493 | <groupId>com.github.kongchen</groupId> |
| 494 | <artifactId>swagger-maven-plugin</artifactId> |
| 495 | <version>3.1.3</version> |
| 496 | <configuration> |
| 497 | <apiSources> |
| 498 | <apiSource> |
| 499 | <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations> |
| 500 | <basePath>/web</basePath> |
| 501 | <info> |
| 502 | <title>${project.artifactId} Service</title> |
| 503 | <version>${project.version}</version> |
| 504 | </info> |
| 505 | <swaggerDirectory>${swagger.directory}</swaggerDirectory> |
| 506 | </apiSource> |
| 507 | </apiSources> |
| 508 | </configuration> |
| 509 | <executions> |
| 510 | <execution> |
| 511 | <phase>package</phase> |
| 512 | <goals> |
| 513 | <goal>generate</goal> |
| 514 | </goals> |
| 515 | </execution> |
| 516 | </executions> |
| 517 | </plugin> |
| 518 | |
| 519 | <plugin> |
| 520 | <artifactId>exec-maven-plugin</artifactId> |
| 521 | <groupId>org.codehaus.mojo</groupId> |
| 522 | </plugin> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 523 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 524 | <plugin> |
| 525 | <groupId>org.springframework.boot</groupId> |
| 526 | <artifactId>spring-boot-maven-plugin</artifactId> |
BT2983 | 3db41ee | 2018-08-01 20:09:20 -0600 | [diff] [blame] | 527 | <version>${springboot.version}</version> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 528 | <executions> |
| 529 | <execution> |
| 530 | <goals> |
| 531 | <goal>repackage</goal> |
| 532 | </goals> |
| 533 | </execution> |
| 534 | </executions> |
| 535 | </plugin> |
| 536 | </plugins> |
BT2983 | 933fa9b | 2018-09-20 14:26:33 -0600 | [diff] [blame] | 537 | |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 538 | <resources> |
| 539 | <resource> |
| 540 | <directory>src/main/resources</directory> |
| 541 | <filtering>true</filtering> |
| 542 | <includes> |
| 543 | <include>**/*</include> |
| 544 | </includes> |
| 545 | </resource> |
| 546 | <resource> |
| 547 | <directory>opt/aai/keystore</directory> |
| 548 | <targetPath>../opt/aai/keystore</targetPath> |
| 549 | <filtering>false</filtering> |
| 550 | <includes> |
| 551 | <include>**/*</include> |
| 552 | </includes> |
| 553 | </resource> |
| 554 | |
| 555 | <resource> |
| 556 | <directory>opt/etc/config</directory> |
| 557 | <targetPath>../opt/etc/config</targetPath> |
| 558 | <filtering>true</filtering> |
| 559 | <includes> |
| 560 | <include>**/*</include> |
| 561 | </includes> |
| 562 | </resource> |
| 563 | <resource> |
| 564 | <directory>opt/etc/keystore</directory> |
| 565 | <targetPath>../opt/etc/keystore</targetPath> |
| 566 | <filtering>false</filtering> |
| 567 | <includes> |
| 568 | <include>**/*</include> |
| 569 | </includes> |
| 570 | </resource> |
| 571 | <resource> |
| 572 | <directory>opt/etc/truststore</directory> |
| 573 | <targetPath>../opt/etc/truststore</targetPath> |
| 574 | <filtering>false</filtering> |
| 575 | <includes> |
| 576 | <include>**/*</include> |
| 577 | </includes> |
| 578 | </resource> |
| 579 | </resources> |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 580 | <pluginManagement> |
| 581 | <plugins> |
| 582 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 583 | <plugin> |
| 584 | <groupId>org.eclipse.m2e</groupId> |
| 585 | <artifactId>lifecycle-mapping</artifactId> |
| 586 | <version>1.0.0</version> |
| 587 | <configuration> |
| 588 | <lifecycleMappingMetadata> |
| 589 | <pluginExecutions> |
| 590 | <pluginExecution> |
| 591 | <pluginExecutionFilter> |
| 592 | <groupId> |
| 593 | org.apache.maven.plugins |
| 594 | </groupId> |
| 595 | <artifactId> |
| 596 | maven-checkstyle-plugin |
| 597 | </artifactId> |
| 598 | <versionRange> |
| 599 | [2.17,) |
| 600 | </versionRange> |
| 601 | <goals> |
| 602 | <goal>check</goal> |
| 603 | </goals> |
| 604 | </pluginExecutionFilter> |
| 605 | <action> |
| 606 | <ignore></ignore> |
| 607 | </action> |
| 608 | </pluginExecution> |
| 609 | <pluginExecution> |
| 610 | <pluginExecutionFilter> |
| 611 | <groupId> |
| 612 | org.codehaus.mojo |
| 613 | </groupId> |
| 614 | <artifactId> |
| 615 | properties-maven-plugin |
| 616 | </artifactId> |
| 617 | <versionRange> |
| 618 | [1.0.0,) |
| 619 | </versionRange> |
| 620 | <goals> |
| 621 | <goal> |
| 622 | set-system-properties |
| 623 | </goal> |
| 624 | </goals> |
| 625 | </pluginExecutionFilter> |
| 626 | <action> |
| 627 | <ignore></ignore> |
| 628 | </action> |
| 629 | </pluginExecution> |
| 630 | </pluginExecutions> |
| 631 | </lifecycleMappingMetadata> |
| 632 | </configuration> |
| 633 | </plugin> |
| 634 | </plugins> |
| 635 | </pluginManagement> |
BT2983 | 2ea106c | 2018-07-22 14:08:34 -0600 | [diff] [blame] | 636 | </build> |
Alexis de Talhouët | 84cd8c4 | 2018-09-21 11:08:46 -0400 | [diff] [blame^] | 637 | </project> |