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>org.onap.ccsdk.sli.core</groupId>
81 <artifactId>dblib-provider</artifactId>
82 <version>${ccsdk.sli.core.version}</version>
85 <groupId>org.onap.ccsdk.sli.core</groupId>
86 <artifactId>sli-common</artifactId>
87 <version>${ccsdk.sli.core.version}</version>
90 <groupId>org.onap.ccsdk.sli.core</groupId>
91 <artifactId>sli-provider-base</artifactId>
92 <version>${ccsdk.sli.core.version}</version>
95 <groupId>com.google.code.gson</groupId>
96 <artifactId>gson</artifactId>
99 <groupId>org.apache.derby</groupId>
100 <artifactId>derby</artifactId>
104 <groupId>org.mariadb.jdbc</groupId>
105 <artifactId>mariadb-java-client</artifactId>
108 <groupId>junit</groupId>
109 <artifactId>junit</artifactId>
113 <groupId>org.onap.logging-analytics</groupId>
114 <artifactId>logging-filter-spring</artifactId>
115 <version>1.6.6</version>
118 <groupId>javax.ws.rs</groupId>
119 <artifactId>javax.ws.rs-api</artifactId>
122 <groupId>org.onap.ccsdk.sli.core</groupId>
123 <artifactId>sliPluginUtils-provider</artifactId>
124 <version>${ccsdk.sli.core.version}</version>
127 <groupId>org.onap.ccsdk.sli.plugins</groupId>
128 <artifactId>restapi-call-node-provider</artifactId>
129 <version>${ccsdk.sli.plugins.version}</version>
132 <groupId>org.onap.ccsdk.sli.plugins</groupId>
133 <artifactId>properties-node-provider</artifactId>
134 <version>${ccsdk.sli.plugins.version}</version>
136 <!-- this jersey jar is needed for rest api call node to function properly -->
138 <groupId>org.glassfish.jersey.inject</groupId>
139 <artifactId>jersey-hk2</artifactId>
146 <groupId>org.codehaus.groovy.maven</groupId>
147 <artifactId>gmaven-plugin</artifactId>
150 <phase>validate</phase>
155 <source>${basedir}/TagVersion.groovy</source>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-dependency-plugin</artifactId>
164 <version>2.10</version>
168 <id>get-sliapi-yaml</id>
169 <phase>initialize</phase>
176 <groupId>org.onap.ccsdk.sli.core</groupId>
177 <artifactId>sliapi-model-swagger</artifactId>
178 <version>${ccsdk.sli.core.version}</version>
180 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
181 <destFileName>sliapi.yaml</destFileName>
189 <groupId>io.swagger</groupId>
190 <artifactId>swagger-codegen-maven-plugin</artifactId>
191 <version>2.3.1</version>
195 <goal>generate</goal>
198 <output>target/generated-sources</output>
199 <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec>
200 <language>spring</language>
201 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
202 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
203 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
204 <generateApis>true</generateApis>
205 <generateApiTests>true</generateApiTests>
206 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
207 <withXml>true</withXml>
210 <springBootVersion>2.2.4-RELEASE</springBootVersion>
217 <groupId>org.springframework.boot</groupId>
218 <artifactId>spring-boot-maven-plugin</artifactId>
222 <goal>repackage</goal>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-dependency-plugin</artifactId>
239 <version>2.10</version>
243 <id>copy-dependencies</id>
245 <goal>copy-dependencies</goal>
247 <phase>prepare-package</phase>
249 <excludeTransitive>true</excludeTransitive>
250 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
251 <overWriteReleases>false</overWriteReleases>
252 <overWriteSnapshots>true</overWriteSnapshots>
253 <overWriteIfNewer>true</overWriteIfNewer>
254 <useRepositoryLayout>false</useRepositoryLayout>
255 <addParentPoms>false</addParentPoms>
256 <copyPom>false</copyPom>
261 <phase>generate-sources</phase>
266 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
269 <groupId>org.onap.ccsdk.distribution</groupId>
270 <artifactId>platform-logic-installer</artifactId>
271 <version>${project.version}</version>
280 <artifactId>maven-resources-plugin</artifactId>
281 <version>2.6</version>
284 <id>copy-dockerfile</id>
286 <goal>copy-resources</goal>
287 </goals><!-- here the phase you need -->
288 <phase>initialize</phase>
290 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
293 <directory>src/main/docker</directory>
295 <include>Dockerfile</include>
297 <filtering>true</filtering>
305 <goal>copy-resources</goal>
306 </goals><!-- here the phase you need -->
307 <phase>generate-resources</phase>
309 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
312 <directory>src/main/resources</directory>
314 <include>*.properties</include>
315 <include>*.props</include>
316 <include>*.sql</include>
318 <filtering>true</filtering>
321 <directory>src/main/resources</directory>
323 <include>*.keyfile</include>
324 <include>*.jks</include>
325 <include>*.p12</include>
327 <filtering>false</filtering>
335 <goal>copy-resources</goal>
336 </goals><!-- here the phase you need -->
337 <phase>generate-resources</phase>
339 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
342 <directory>src/main/resources</directory>
344 <include>*.sh</include>
346 <filtering>true</filtering>
354 <goal>copy-resources</goal>
355 </goals><!-- here the phase you need -->
356 <phase>package</phase>
358 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
361 <directory>${basedir}/target</directory>
363 <include>${ccsdk.sliboot.jar}</include>
365 <filtering>false</filtering>
373 <groupId>io.fabric8</groupId>
374 <artifactId>docker-maven-plugin</artifactId>
375 <version>0.28.0</version>
376 <inherited>false</inherited>
380 <name>${image.name}</name>
382 <cleanup>try</cleanup>
383 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
384 <dockerFile>Dockerfile</dockerFile>
386 <tag>${project.docker.latestminortag.version}</tag>
387 <tag>${project.docker.latestfulltag.version}</tag>
388 <tag>${project.docker.latesttagtimestamp.version}</tag>
396 <id>generate-images</id>
397 <phase>package</phase>
405 <phase>${docker.push.phase}</phase>