Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | |
| 6 | <parent> |
| 7 | <groupId>org.onap.ccsdk.parent</groupId> |
| 8 | <artifactId>spring-boot-starter-parent</artifactId> |
| 9 | <version>2.0.0-SNAPSHOT</version> |
| 10 | <relativePath/> |
| 11 | </parent> |
| 12 | |
| 13 | <groupId>org.onap.ccsdk.apps</groupId> |
| 14 | <artifactId>sliboot</artifactId> |
| 15 | <version>1.0.0-SNAPSHOT</version> |
| 16 | <packaging>jar</packaging> |
| 17 | |
| 18 | <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name> |
| 19 | |
| 20 | <properties> |
| 21 | <start-class>org.onap.ccsdk.apps.ms.sliboot.App</start-class> |
| 22 | <shiro.version>1.5.0</shiro.version> |
| 23 | <aaf-shiro-bundle.version>2.1.13</aaf-shiro-bundle.version> |
| 24 | <base.image.name>onap/ccsdk-alpine-image</base.image.name> |
| 25 | <image.name>onap/ccsdk-sliboot-alpine-image</image.name> |
| 26 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 27 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 28 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 29 | <ccsdk.sliboot.jar>${project.artifactId}-${project.version}.jar</ccsdk.sliboot.jar> |
| 30 | <docker.push.phase>deploy</docker.push.phase> |
| 31 | <docker.verbose>true</docker.verbose> |
| 32 | </properties> |
| 33 | |
| 34 | <dependencies> |
| 35 | <dependency> |
| 36 | <groupId>io.swagger</groupId> |
| 37 | <artifactId>swagger-annotations</artifactId> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>org.apache.shiro</groupId> |
| 41 | <artifactId>shiro-spring-boot-web-starter</artifactId> |
| 42 | <version>${shiro.version}</version> |
| 43 | <exclusions> |
| 44 | <exclusion> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-starter-logging</artifactId> |
| 47 | </exclusion> |
| 48 | </exclusions> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.springframework.boot</groupId> |
| 52 | <artifactId>spring-boot-starter-log4j2</artifactId> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.onap.aaf.cadi</groupId> |
| 56 | <artifactId>aaf-cadi-shiro</artifactId> |
| 57 | <version>${aaf-shiro-bundle.version}</version> |
| 58 | </dependency> |
| 59 | |
| 60 | <dependency> |
| 61 | <groupId>org.springframework.boot</groupId> |
| 62 | <artifactId>spring-boot-starter-test</artifactId> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework.boot</groupId> |
| 67 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>io.springfox</groupId> |
| 71 | <artifactId>springfox-swagger2</artifactId> |
| 72 | <version>2.9.2</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>io.springfox</groupId> |
| 76 | <artifactId>springfox-swagger-ui</artifactId> |
| 77 | <version>2.9.2</version> |
| 78 | </dependency> |
| 79 | <dependency> |
Dan Timoney | f343036 | 2020-06-09 12:42:46 -0400 | [diff] [blame^] | 80 | <groupId>${project.groupId}</groupId> |
| 81 | <artifactId>services</artifactId> |
| 82 | <version>${project.version}</version> |
| 83 | </dependency> |
| 84 | <dependency> |
Dan Timoney | 31172d6 | 2020-06-05 15:46:39 -0400 | [diff] [blame] | 85 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 86 | <artifactId>dblib-provider</artifactId> |
| 87 | <version>${ccsdk.sli.core.version}</version> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 91 | <artifactId>sli-common</artifactId> |
| 92 | <version>${ccsdk.sli.core.version}</version> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 96 | <artifactId>sli-provider-base</artifactId> |
| 97 | <version>${ccsdk.sli.core.version}</version> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>com.google.code.gson</groupId> |
| 101 | <artifactId>gson</artifactId> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>org.apache.derby</groupId> |
| 105 | <artifactId>derby</artifactId> |
| 106 | <scope>test</scope> |
| 107 | </dependency> |
| 108 | <dependency> |
| 109 | <groupId>org.mariadb.jdbc</groupId> |
| 110 | <artifactId>mariadb-java-client</artifactId> |
| 111 | </dependency> |
| 112 | <dependency> |
| 113 | <groupId>junit</groupId> |
| 114 | <artifactId>junit</artifactId> |
| 115 | <scope>test</scope> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>org.onap.logging-analytics</groupId> |
| 119 | <artifactId>logging-filter-spring</artifactId> |
| 120 | <version>1.6.6</version> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>javax.ws.rs</groupId> |
| 124 | <artifactId>javax.ws.rs-api</artifactId> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 128 | <artifactId>sliPluginUtils-provider</artifactId> |
| 129 | <version>${ccsdk.sli.core.version}</version> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 133 | <artifactId>restapi-call-node-provider</artifactId> |
| 134 | <version>${ccsdk.sli.plugins.version}</version> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 138 | <artifactId>properties-node-provider</artifactId> |
| 139 | <version>${ccsdk.sli.plugins.version}</version> |
| 140 | </dependency> |
| 141 | <!-- this jersey jar is needed for rest api call node to function properly --> |
| 142 | <dependency> |
| 143 | <groupId>org.glassfish.jersey.inject</groupId> |
| 144 | <artifactId>jersey-hk2</artifactId> |
| 145 | </dependency> |
| 146 | </dependencies> |
| 147 | |
| 148 | <build> |
| 149 | <plugins> |
| 150 | <plugin> |
| 151 | <groupId>org.codehaus.groovy.maven</groupId> |
| 152 | <artifactId>gmaven-plugin</artifactId> |
| 153 | <executions> |
| 154 | <execution> |
| 155 | <phase>validate</phase> |
| 156 | <goals> |
| 157 | <goal>execute</goal> |
| 158 | </goals> |
| 159 | <configuration> |
| 160 | <source>${basedir}/TagVersion.groovy</source> |
| 161 | </configuration> |
| 162 | </execution> |
| 163 | </executions> |
| 164 | </plugin> |
| 165 | |
| 166 | <plugin> |
| 167 | <groupId>org.apache.maven.plugins</groupId> |
| 168 | <artifactId>maven-dependency-plugin</artifactId> |
| 169 | <version>2.10</version> |
| 170 | |
| 171 | <executions> |
| 172 | <execution> |
| 173 | <id>get-sliapi-yaml</id> |
| 174 | <phase>initialize</phase> |
| 175 | <goals> |
| 176 | <goal>copy</goal> |
| 177 | </goals> |
| 178 | <configuration> |
| 179 | <artifactItems> |
| 180 | <artifactItem> |
| 181 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 182 | <artifactId>sliapi-model-swagger</artifactId> |
| 183 | <version>${ccsdk.sli.core.version}</version> |
| 184 | <type>yaml</type> |
| 185 | <outputDirectory>${project.build.directory}/yaml</outputDirectory> |
| 186 | <destFileName>sliapi.yaml</destFileName> |
| 187 | </artifactItem> |
| 188 | </artifactItems> |
| 189 | </configuration> |
| 190 | </execution> |
| 191 | </executions> |
| 192 | </plugin> |
| 193 | <plugin> |
| 194 | <groupId>io.swagger</groupId> |
| 195 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 196 | <version>2.3.1</version> |
| 197 | <executions> |
| 198 | <execution> |
| 199 | <goals> |
| 200 | <goal>generate</goal> |
| 201 | </goals> |
| 202 | <configuration> |
| 203 | <output>target/generated-sources</output> |
| 204 | <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec> |
| 205 | <language>spring</language> |
| 206 | <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage> |
| 207 | <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage> |
| 208 | <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage> |
| 209 | <generateApis>true</generateApis> |
| 210 | <generateApiTests>true</generateApiTests> |
| 211 | <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride> |
| 212 | <withXml>true</withXml> |
| 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> |