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>
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>spring-boot-starter-parent</artifactId>
9 <version>2.0.0-SNAPSHOT</version>
13 <groupId>org.onap.ccsdk.apps</groupId>
14 <artifactId>sliboot</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
16 <packaging>jar</packaging>
18 <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
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>
36 <groupId>io.swagger</groupId>
37 <artifactId>swagger-annotations</artifactId>
40 <groupId>org.apache.shiro</groupId>
41 <artifactId>shiro-spring-boot-web-starter</artifactId>
42 <version>${shiro.version}</version>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-logging</artifactId>
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-starter-log4j2</artifactId>
55 <groupId>org.onap.aaf.cadi</groupId>
56 <artifactId>aaf-cadi-shiro</artifactId>
57 <version>${aaf-shiro-bundle.version}</version>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-test</artifactId>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-data-jpa</artifactId>
70 <groupId>io.springfox</groupId>
71 <artifactId>springfox-swagger2</artifactId>
72 <version>2.9.2</version>
75 <groupId>io.springfox</groupId>
76 <artifactId>springfox-swagger-ui</artifactId>
77 <version>2.9.2</version>
80 <groupId>${project.groupId}</groupId>
81 <artifactId>services</artifactId>
82 <version>${project.version}</version>
85 <groupId>org.onap.ccsdk.sli.core</groupId>
86 <artifactId>dblib-provider</artifactId>
87 <version>${ccsdk.sli.core.version}</version>
90 <groupId>org.onap.ccsdk.sli.core</groupId>
91 <artifactId>sli-common</artifactId>
92 <version>${ccsdk.sli.core.version}</version>
95 <groupId>org.onap.ccsdk.sli.core</groupId>
96 <artifactId>sli-provider-base</artifactId>
97 <version>${ccsdk.sli.core.version}</version>
100 <groupId>com.google.code.gson</groupId>
101 <artifactId>gson</artifactId>
104 <groupId>org.apache.derby</groupId>
105 <artifactId>derby</artifactId>
109 <groupId>org.mariadb.jdbc</groupId>
110 <artifactId>mariadb-java-client</artifactId>
113 <groupId>junit</groupId>
114 <artifactId>junit</artifactId>
118 <groupId>org.onap.logging-analytics</groupId>
119 <artifactId>logging-filter-spring</artifactId>
120 <version>1.6.6</version>
123 <groupId>javax.ws.rs</groupId>
124 <artifactId>javax.ws.rs-api</artifactId>
127 <groupId>org.onap.ccsdk.sli.core</groupId>
128 <artifactId>sliPluginUtils-provider</artifactId>
129 <version>${ccsdk.sli.core.version}</version>
132 <groupId>org.onap.ccsdk.sli.plugins</groupId>
133 <artifactId>restapi-call-node-provider</artifactId>
134 <version>${ccsdk.sli.plugins.version}</version>
137 <groupId>org.onap.ccsdk.sli.plugins</groupId>
138 <artifactId>properties-node-provider</artifactId>
139 <version>${ccsdk.sli.plugins.version}</version>
141 <!-- this jersey jar is needed for rest api call node to function properly -->
143 <groupId>org.glassfish.jersey.inject</groupId>
144 <artifactId>jersey-hk2</artifactId>
151 <groupId>org.codehaus.groovy.maven</groupId>
152 <artifactId>gmaven-plugin</artifactId>
155 <phase>validate</phase>
160 <source>${basedir}/TagVersion.groovy</source>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-dependency-plugin</artifactId>
169 <version>2.10</version>
173 <id>get-sliapi-yaml</id>
174 <phase>initialize</phase>
181 <groupId>org.onap.ccsdk.sli.core</groupId>
182 <artifactId>sliapi-model-swagger</artifactId>
183 <version>${ccsdk.sli.core.version}</version>
185 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
186 <destFileName>sliapi.yaml</destFileName>
194 <groupId>io.swagger</groupId>
195 <artifactId>swagger-codegen-maven-plugin</artifactId>
196 <version>2.3.1</version>
200 <goal>generate</goal>
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>
215 <springBootVersion>2.2.4-RELEASE</springBootVersion>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-maven-plugin</artifactId>
227 <goal>repackage</goal>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-dependency-plugin</artifactId>
244 <version>2.10</version>
248 <id>copy-dependencies</id>
250 <goal>copy-dependencies</goal>
252 <phase>prepare-package</phase>
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>
266 <phase>generate-sources</phase>
271 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
274 <groupId>org.onap.ccsdk.distribution</groupId>
275 <artifactId>platform-logic-installer</artifactId>
276 <version>${project.version}</version>
285 <artifactId>maven-resources-plugin</artifactId>
286 <version>2.6</version>
289 <id>copy-dockerfile</id>
291 <goal>copy-resources</goal>
292 </goals><!-- here the phase you need -->
293 <phase>initialize</phase>
295 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
298 <directory>src/main/docker</directory>
300 <include>Dockerfile</include>
302 <filtering>true</filtering>
310 <goal>copy-resources</goal>
311 </goals><!-- here the phase you need -->
312 <phase>generate-resources</phase>
314 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
317 <directory>src/main/resources</directory>
319 <include>*.properties</include>
320 <include>*.props</include>
321 <include>*.sql</include>
323 <filtering>true</filtering>
326 <directory>src/main/resources</directory>
328 <include>*.keyfile</include>
329 <include>*.jks</include>
330 <include>*.p12</include>
332 <filtering>false</filtering>
340 <goal>copy-resources</goal>
341 </goals><!-- here the phase you need -->
342 <phase>generate-resources</phase>
344 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
347 <directory>src/main/resources</directory>
349 <include>*.sh</include>
351 <filtering>true</filtering>
359 <goal>copy-resources</goal>
360 </goals><!-- here the phase you need -->
361 <phase>package</phase>
363 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
366 <directory>${basedir}/target</directory>
368 <include>${ccsdk.sliboot.jar}</include>
370 <filtering>false</filtering>
378 <groupId>io.fabric8</groupId>
379 <artifactId>docker-maven-plugin</artifactId>
380 <version>0.28.0</version>
381 <inherited>false</inherited>
385 <name>${image.name}</name>
387 <cleanup>try</cleanup>
388 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
389 <dockerFile>Dockerfile</dockerFile>
391 <tag>${project.docker.latestminortag.version}</tag>
392 <tag>${project.docker.latestfulltag.version}</tag>
393 <tag>${project.docker.latesttagtimestamp.version}</tag>
401 <id>generate-images</id>
402 <phase>package</phase>
410 <phase>${docker.push.phase}</phase>