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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
8 <version>2.1.0-SNAPSHOT</version>
12 <groupId>org.onap.ccsdk.apps</groupId>
13 <artifactId>sliboot</artifactId>
14 <version>1.1.0-SNAPSHOT</version>
15 <packaging>jar</packaging>
17 <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
20 <start-class>org.onap.ccsdk.apps.ms.sliboot.SlibootApp</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 <base.image.version>1.1-STAGING-latest</base.image.version>
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}-exec.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.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-validation</artifactId>
59 <groupId>org.onap.aaf.cadi</groupId>
60 <artifactId>aaf-cadi-shiro</artifactId>
61 <version>${aaf-shiro-bundle.version}</version>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-test</artifactId>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-data-jpa</artifactId>
74 <groupId>io.springfox</groupId>
75 <artifactId>springfox-swagger2</artifactId>
76 <version>2.9.2</version>
79 <groupId>io.springfox</groupId>
80 <artifactId>springfox-swagger-ui</artifactId>
81 <version>2.9.2</version>
84 <groupId>${project.groupId}</groupId>
85 <artifactId>services</artifactId>
86 <version>${project.version}</version>
89 <groupId>org.onap.ccsdk.sli.core</groupId>
90 <artifactId>dblib-provider</artifactId>
91 <version>${ccsdk.sli.core.version}</version>
94 <groupId>org.onap.ccsdk.sli.core</groupId>
95 <artifactId>sli-common</artifactId>
96 <version>${ccsdk.sli.core.version}</version>
99 <groupId>org.onap.ccsdk.sli.core</groupId>
100 <artifactId>sli-provider-base</artifactId>
101 <version>${ccsdk.sli.core.version}</version>
104 <groupId>com.google.code.gson</groupId>
105 <artifactId>gson</artifactId>
108 <groupId>org.apache.derby</groupId>
109 <artifactId>derby</artifactId>
113 <groupId>org.mariadb.jdbc</groupId>
114 <artifactId>mariadb-java-client</artifactId>
117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
122 <groupId>org.onap.logging-analytics</groupId>
123 <artifactId>logging-filter-spring</artifactId>
124 <version>1.6.6</version>
127 <groupId>javax.ws.rs</groupId>
128 <artifactId>javax.ws.rs-api</artifactId>
131 <groupId>org.onap.ccsdk.sli.core</groupId>
132 <artifactId>sliPluginUtils-provider</artifactId>
133 <version>${ccsdk.sli.core.version}</version>
136 <groupId>org.onap.ccsdk.sli.plugins</groupId>
137 <artifactId>restapi-call-node-provider</artifactId>
138 <version>${ccsdk.sli.plugins.version}</version>
141 <groupId>org.onap.ccsdk.sli.plugins</groupId>
142 <artifactId>properties-node-provider</artifactId>
143 <version>${ccsdk.sli.plugins.version}</version>
145 <!-- this jersey jar is needed for rest api call node to function properly -->
147 <groupId>org.glassfish.jersey.inject</groupId>
148 <artifactId>jersey-hk2</artifactId>
155 <groupId>org.codehaus.groovy.maven</groupId>
156 <artifactId>gmaven-plugin</artifactId>
159 <phase>validate</phase>
164 <source>${basedir}/TagVersion.groovy</source>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-dependency-plugin</artifactId>
173 <version>2.10</version>
177 <id>get-sliapi-yaml</id>
178 <phase>initialize</phase>
185 <groupId>org.onap.ccsdk.sli.core</groupId>
186 <artifactId>sliapi-model-swagger</artifactId>
187 <version>${ccsdk.sli.core.version}</version>
189 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
190 <destFileName>sliapi.yaml</destFileName>
198 <groupId>io.swagger</groupId>
199 <artifactId>swagger-codegen-maven-plugin</artifactId>
200 <version>2.3.1</version>
203 <phase>generate-sources</phase>
205 <goal>generate</goal>
208 <output>target/generated-sources</output>
209 <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec>
210 <language>spring</language>
211 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
212 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
213 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
214 <generateApis>true</generateApis>
215 <generateApiTests>true</generateApiTests>
216 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
217 <withXml>true</withXml>
218 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
221 <springBootVersion>2.2.4-RELEASE</springBootVersion>
228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-maven-plugin</artifactId>
231 <classifier>exec</classifier>
236 <goal>repackage</goal>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-dependency-plugin</artifactId>
253 <version>2.10</version>
257 <id>copy-dependencies</id>
259 <goal>copy-dependencies</goal>
261 <phase>prepare-package</phase>
263 <excludeTransitive>true</excludeTransitive>
264 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
265 <overWriteReleases>false</overWriteReleases>
266 <overWriteSnapshots>true</overWriteSnapshots>
267 <overWriteIfNewer>true</overWriteIfNewer>
268 <useRepositoryLayout>false</useRepositoryLayout>
269 <addParentPoms>false</addParentPoms>
270 <copyPom>false</copyPom>
275 <phase>generate-sources</phase>
280 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
283 <groupId>org.onap.ccsdk.distribution</groupId>
284 <artifactId>platform-logic-installer</artifactId>
285 <version>${project.version}</version>
294 <artifactId>maven-resources-plugin</artifactId>
295 <version>2.6</version>
298 <id>copy-dockerfile</id>
300 <goal>copy-resources</goal>
301 </goals><!-- here the phase you need -->
302 <phase>initialize</phase>
304 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
307 <directory>src/main/docker</directory>
309 <include>Dockerfile</include>
311 <filtering>true</filtering>
319 <goal>copy-resources</goal>
320 </goals><!-- here the phase you need -->
321 <phase>generate-resources</phase>
323 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
326 <directory>src/main/resources</directory>
328 <include>*.properties</include>
329 <include>*.props</include>
330 <include>*.sql</include>
332 <filtering>true</filtering>
335 <directory>src/main/resources</directory>
337 <include>*.keyfile</include>
338 <include>*.jks</include>
339 <include>*.p12</include>
341 <filtering>false</filtering>
349 <goal>copy-resources</goal>
350 </goals><!-- here the phase you need -->
351 <phase>generate-resources</phase>
353 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
356 <directory>src/main/resources</directory>
358 <include>*.sh</include>
360 <filtering>true</filtering>
368 <goal>copy-resources</goal>
369 </goals><!-- here the phase you need -->
370 <phase>package</phase>
372 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
375 <directory>${basedir}/target</directory>
377 <include>${ccsdk.sliboot.jar}</include>
379 <filtering>false</filtering>
387 <groupId>io.fabric8</groupId>
388 <artifactId>docker-maven-plugin</artifactId>
389 <version>0.28.0</version>
390 <inherited>false</inherited>
394 <name>${image.name}</name>
396 <cleanup>try</cleanup>
397 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
398 <dockerFile>Dockerfile</dockerFile>
400 <tag>${project.docker.latestminortag.version}</tag>
401 <tag>${project.docker.latestfulltag.version}</tag>
402 <tag>${project.docker.latesttagtimestamp.version}</tag>
410 <id>generate-images</id>
411 <phase>package</phase>
419 <phase>${docker.push.phase}</phase>