Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Dan Timoney | 5312a48 | 2020-08-21 10:23:45 -0400 | [diff] [blame^] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <parent> |
| 6 | <groupId>org.onap.ccsdk.parent</groupId> |
| 7 | <artifactId>spring-boot-starter-parent</artifactId> |
Dan Timoney | 5312a48 | 2020-08-21 10:23:45 -0400 | [diff] [blame^] | 8 | <version>2.0.1-SNAPSHOT</version> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 9 | <relativePath/> |
| 10 | </parent> |
| 11 | |
| 12 | <groupId>org.onap.ccsdk.apps</groupId> |
| 13 | <artifactId>sliboot</artifactId> |
Dan Timoney | 5312a48 | 2020-08-21 10:23:45 -0400 | [diff] [blame^] | 14 | <version>1.0.1-SNAPSHOT</version> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 15 | <packaging>jar</packaging> |
| 16 | |
| 17 | <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name> |
| 18 | |
| 19 | <properties> |
| 20 | <start-class>org.onap.ccsdk.apps.ms.sliboot.App</start-class> |
| 21 | <shiro.version>1.5.0</shiro.version> |
| 22 | <aaf-shiro-bundle.version>2.1.13</aaf-shiro-bundle.version> |
| 23 | <base.image.name>onap/ccsdk-alpine-image</base.image.name> |
| 24 | <image.name>onap/ccsdk-sliboot-alpine-image</image.name> |
| 25 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 26 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 27 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 28 | <ccsdk.sliboot.jar>${project.artifactId}-${project.version}.jar</ccsdk.sliboot.jar> |
| 29 | <docker.push.phase>deploy</docker.push.phase> |
| 30 | <docker.verbose>true</docker.verbose> |
| 31 | </properties> |
| 32 | |
| 33 | <dependencies> |
| 34 | <dependency> |
| 35 | <groupId>io.swagger</groupId> |
| 36 | <artifactId>swagger-annotations</artifactId> |
| 37 | </dependency> |
| 38 | <dependency> |
| 39 | <groupId>org.apache.shiro</groupId> |
| 40 | <artifactId>shiro-spring-boot-web-starter</artifactId> |
| 41 | <version>${shiro.version}</version> |
| 42 | <exclusions> |
| 43 | <exclusion> |
| 44 | <groupId>org.springframework.boot</groupId> |
| 45 | <artifactId>spring-boot-starter-logging</artifactId> |
| 46 | </exclusion> |
| 47 | </exclusions> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.springframework.boot</groupId> |
| 51 | <artifactId>spring-boot-starter-log4j2</artifactId> |
| 52 | </dependency> |
| 53 | <dependency> |
| 54 | <groupId>org.onap.aaf.cadi</groupId> |
| 55 | <artifactId>aaf-cadi-shiro</artifactId> |
| 56 | <version>${aaf-shiro-bundle.version}</version> |
| 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>org.springframework.boot</groupId> |
| 61 | <artifactId>spring-boot-starter-test</artifactId> |
| 62 | <scope>test</scope> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.springframework.boot</groupId> |
| 66 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>io.springfox</groupId> |
| 70 | <artifactId>springfox-swagger2</artifactId> |
| 71 | <version>2.9.2</version> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>io.springfox</groupId> |
| 75 | <artifactId>springfox-swagger-ui</artifactId> |
| 76 | <version>2.9.2</version> |
| 77 | </dependency> |
| 78 | <dependency> |
Dan Timoney | f343036 | 2020-06-09 12:42:46 -0400 | [diff] [blame] | 79 | <groupId>${project.groupId}</groupId> |
| 80 | <artifactId>services</artifactId> |
| 81 | <version>${project.version}</version> |
| 82 | </dependency> |
| 83 | <dependency> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 84 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 85 | <artifactId>dblib-provider</artifactId> |
| 86 | <version>${ccsdk.sli.core.version}</version> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 90 | <artifactId>sli-common</artifactId> |
| 91 | <version>${ccsdk.sli.core.version}</version> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 95 | <artifactId>sli-provider-base</artifactId> |
| 96 | <version>${ccsdk.sli.core.version}</version> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>com.google.code.gson</groupId> |
| 100 | <artifactId>gson</artifactId> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>org.apache.derby</groupId> |
| 104 | <artifactId>derby</artifactId> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.mariadb.jdbc</groupId> |
| 109 | <artifactId>mariadb-java-client</artifactId> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>junit</groupId> |
| 113 | <artifactId>junit</artifactId> |
| 114 | <scope>test</scope> |
| 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.onap.logging-analytics</groupId> |
| 118 | <artifactId>logging-filter-spring</artifactId> |
| 119 | <version>1.6.6</version> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>javax.ws.rs</groupId> |
| 123 | <artifactId>javax.ws.rs-api</artifactId> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 127 | <artifactId>sliPluginUtils-provider</artifactId> |
| 128 | <version>${ccsdk.sli.core.version}</version> |
| 129 | </dependency> |
| 130 | <dependency> |
| 131 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 132 | <artifactId>restapi-call-node-provider</artifactId> |
| 133 | <version>${ccsdk.sli.plugins.version}</version> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 137 | <artifactId>properties-node-provider</artifactId> |
| 138 | <version>${ccsdk.sli.plugins.version}</version> |
| 139 | </dependency> |
| 140 | <!-- this jersey jar is needed for rest api call node to function properly --> |
| 141 | <dependency> |
| 142 | <groupId>org.glassfish.jersey.inject</groupId> |
| 143 | <artifactId>jersey-hk2</artifactId> |
| 144 | </dependency> |
| 145 | </dependencies> |
| 146 | |
| 147 | <build> |
| 148 | <plugins> |
| 149 | <plugin> |
| 150 | <groupId>org.codehaus.groovy.maven</groupId> |
| 151 | <artifactId>gmaven-plugin</artifactId> |
| 152 | <executions> |
| 153 | <execution> |
| 154 | <phase>validate</phase> |
| 155 | <goals> |
| 156 | <goal>execute</goal> |
| 157 | </goals> |
| 158 | <configuration> |
| 159 | <source>${basedir}/TagVersion.groovy</source> |
| 160 | </configuration> |
| 161 | </execution> |
| 162 | </executions> |
| 163 | </plugin> |
| 164 | |
| 165 | <plugin> |
| 166 | <groupId>org.apache.maven.plugins</groupId> |
| 167 | <artifactId>maven-dependency-plugin</artifactId> |
| 168 | <version>2.10</version> |
| 169 | |
| 170 | <executions> |
| 171 | <execution> |
| 172 | <id>get-sliapi-yaml</id> |
| 173 | <phase>initialize</phase> |
| 174 | <goals> |
| 175 | <goal>copy</goal> |
| 176 | </goals> |
| 177 | <configuration> |
| 178 | <artifactItems> |
| 179 | <artifactItem> |
| 180 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 181 | <artifactId>sliapi-model-swagger</artifactId> |
| 182 | <version>${ccsdk.sli.core.version}</version> |
| 183 | <type>yaml</type> |
| 184 | <outputDirectory>${project.build.directory}/yaml</outputDirectory> |
| 185 | <destFileName>sliapi.yaml</destFileName> |
| 186 | </artifactItem> |
| 187 | </artifactItems> |
| 188 | </configuration> |
| 189 | </execution> |
| 190 | </executions> |
| 191 | </plugin> |
| 192 | <plugin> |
| 193 | <groupId>io.swagger</groupId> |
| 194 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 195 | <version>2.3.1</version> |
| 196 | <executions> |
| 197 | <execution> |
| 198 | <goals> |
| 199 | <goal>generate</goal> |
| 200 | </goals> |
| 201 | <configuration> |
| 202 | <output>target/generated-sources</output> |
| 203 | <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec> |
| 204 | <language>spring</language> |
| 205 | <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage> |
| 206 | <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage> |
| 207 | <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage> |
| 208 | <generateApis>true</generateApis> |
| 209 | <generateApiTests>true</generateApiTests> |
| 210 | <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride> |
| 211 | <withXml>true</withXml> |
Dan Timoney | 385874a | 2020-06-26 15:56:48 -0400 | [diff] [blame] | 212 | <templateDirectory>${project.basedir}/src/main/templates</templateDirectory> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 213 | <configOptions> |
| 214 | <java8>true</java8> |
| 215 | <springBootVersion>2.2.4-RELEASE</springBootVersion> |
| 216 | </configOptions> |
| 217 | </configuration> |
| 218 | </execution> |
| 219 | </executions> |
| 220 | </plugin> |
| 221 | <plugin> |
| 222 | <groupId>org.springframework.boot</groupId> |
| 223 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 224 | <executions> |
| 225 | <execution> |
| 226 | <goals> |
| 227 | <goal>repackage</goal> |
| 228 | </goals> |
| 229 | </execution> |
| 230 | </executions> |
| 231 | </plugin> |
| 232 | |
| 233 | </plugins> |
| 234 | </build> |
| 235 | |
| 236 | <profiles> |
| 237 | <profile> |
| 238 | <id>docker</id> |
| 239 | <build> |
| 240 | <plugins> |
| 241 | <plugin> |
| 242 | <groupId>org.apache.maven.plugins</groupId> |
| 243 | <artifactId>maven-dependency-plugin</artifactId> |
| 244 | <version>2.10</version> |
| 245 | |
| 246 | <executions> |
| 247 | <execution> |
| 248 | <id>copy-dependencies</id> |
| 249 | <goals> |
| 250 | <goal>copy-dependencies</goal> |
| 251 | </goals> |
| 252 | <phase>prepare-package</phase> |
| 253 | <configuration> |
| 254 | <excludeTransitive>true</excludeTransitive> |
| 255 | <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory> |
| 256 | <overWriteReleases>false</overWriteReleases> |
| 257 | <overWriteSnapshots>true</overWriteSnapshots> |
| 258 | <overWriteIfNewer>true</overWriteIfNewer> |
| 259 | <useRepositoryLayout>false</useRepositoryLayout> |
| 260 | <addParentPoms>false</addParentPoms> |
| 261 | <copyPom>false</copyPom> |
| 262 | </configuration> |
| 263 | </execution> |
| 264 | <execution> |
| 265 | <id>unpack dgs</id> |
| 266 | <phase>generate-sources</phase> |
| 267 | <goals> |
| 268 | <goal>unpack</goal> |
| 269 | </goals> |
| 270 | <configuration> |
| 271 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory> |
| 272 | <artifactItems> |
| 273 | <artifactItem> |
| 274 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 275 | <artifactId>platform-logic-installer</artifactId> |
| 276 | <version>${project.version}</version> |
| 277 | <type>zip</type> |
| 278 | </artifactItem> |
| 279 | </artifactItems> |
| 280 | </configuration> |
| 281 | </execution> |
| 282 | </executions> |
| 283 | </plugin> |
| 284 | <plugin> |
| 285 | <artifactId>maven-resources-plugin</artifactId> |
| 286 | <version>2.6</version> |
| 287 | <executions> |
| 288 | <execution> |
| 289 | <id>copy-dockerfile</id> |
| 290 | <goals> |
| 291 | <goal>copy-resources</goal> |
| 292 | </goals><!-- here the phase you need --> |
| 293 | <phase>initialize</phase> |
| 294 | <configuration> |
| 295 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 296 | <resources> |
| 297 | <resource> |
| 298 | <directory>src/main/docker</directory> |
| 299 | <includes> |
| 300 | <include>Dockerfile</include> |
| 301 | </includes> |
| 302 | <filtering>true</filtering> |
| 303 | </resource> |
| 304 | </resources> |
| 305 | </configuration> |
| 306 | </execution> |
| 307 | <execution> |
| 308 | <id>copy-config</id> |
| 309 | <goals> |
| 310 | <goal>copy-resources</goal> |
| 311 | </goals><!-- here the phase you need --> |
| 312 | <phase>generate-resources</phase> |
| 313 | <configuration> |
| 314 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory> |
| 315 | <resources> |
| 316 | <resource> |
| 317 | <directory>src/main/resources</directory> |
| 318 | <includes> |
| 319 | <include>*.properties</include> |
| 320 | <include>*.props</include> |
| 321 | <include>*.sql</include> |
| 322 | </includes> |
| 323 | <filtering>true</filtering> |
| 324 | </resource> |
| 325 | <resource> |
| 326 | <directory>src/main/resources</directory> |
| 327 | <includes> |
| 328 | <include>*.keyfile</include> |
| 329 | <include>*.jks</include> |
| 330 | <include>*.p12</include> |
| 331 | </includes> |
| 332 | <filtering>false</filtering> |
| 333 | </resource> |
| 334 | </resources> |
| 335 | </configuration> |
| 336 | </execution> |
| 337 | <execution> |
| 338 | <id>copy-script</id> |
| 339 | <goals> |
| 340 | <goal>copy-resources</goal> |
| 341 | </goals><!-- here the phase you need --> |
| 342 | <phase>generate-resources</phase> |
| 343 | <configuration> |
| 344 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory> |
| 345 | <resources> |
| 346 | <resource> |
| 347 | <directory>src/main/resources</directory> |
| 348 | <includes> |
| 349 | <include>*.sh</include> |
| 350 | </includes> |
| 351 | <filtering>true</filtering> |
| 352 | </resource> |
| 353 | </resources> |
| 354 | </configuration> |
| 355 | </execution> |
| 356 | <execution> |
| 357 | <id>copy-jar</id> |
| 358 | <goals> |
| 359 | <goal>copy-resources</goal> |
| 360 | </goals><!-- here the phase you need --> |
| 361 | <phase>package</phase> |
| 362 | <configuration> |
| 363 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory> |
| 364 | <resources> |
| 365 | <resource> |
| 366 | <directory>${basedir}/target</directory> |
| 367 | <includes> |
| 368 | <include>${ccsdk.sliboot.jar}</include> |
| 369 | </includes> |
| 370 | <filtering>false</filtering> |
| 371 | </resource> |
| 372 | </resources> |
| 373 | </configuration> |
| 374 | </execution> |
| 375 | </executions> |
| 376 | </plugin> |
| 377 | <plugin> |
| 378 | <groupId>io.fabric8</groupId> |
| 379 | <artifactId>docker-maven-plugin</artifactId> |
| 380 | <version>0.28.0</version> |
| 381 | <inherited>false</inherited> |
| 382 | <configuration> |
| 383 | <images> |
| 384 | <image> |
| 385 | <name>${image.name}</name> |
| 386 | <build> |
| 387 | <cleanup>try</cleanup> |
| 388 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 389 | <dockerFile>Dockerfile</dockerFile> |
| 390 | <tags> |
| 391 | <tag>${project.docker.latestminortag.version}</tag> |
| 392 | <tag>${project.docker.latestfulltag.version}</tag> |
| 393 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 394 | </tags> |
| 395 | </build> |
| 396 | </image> |
| 397 | </images> |
| 398 | </configuration> |
| 399 | <executions> |
| 400 | <execution> |
| 401 | <id>generate-images</id> |
| 402 | <phase>package</phase> |
| 403 | <goals> |
| 404 | <goal>build</goal> |
| 405 | </goals> |
| 406 | </execution> |
| 407 | |
| 408 | <execution> |
| 409 | <id>push-images</id> |
| 410 | <phase>${docker.push.phase}</phase> |
| 411 | <goals> |
| 412 | <goal>build</goal> |
| 413 | <goal>push</goal> |
| 414 | </goals> |
| 415 | </execution> |
| 416 | </executions> |
| 417 | </plugin> |
| 418 | </plugins> |
| 419 | </build> |
| 420 | </profile> |
| 421 | </profiles> |
| 422 | </project> |