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.0.2</version>
12 <groupId>org.onap.ccsdk.apps</groupId>
13 <artifactId>sliboot</artifactId>
14 <version>1.0.2</version>
15 <packaging>jar</packaging>
17 <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
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>
35 <groupId>io.swagger</groupId>
36 <artifactId>swagger-annotations</artifactId>
39 <groupId>org.apache.shiro</groupId>
40 <artifactId>shiro-spring-boot-web-starter</artifactId>
41 <version>${shiro.version}</version>
44 <groupId>org.springframework.boot</groupId>
45 <artifactId>spring-boot-starter-logging</artifactId>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-log4j2</artifactId>
54 <groupId>org.springframework.boot</groupId>
55 <artifactId>spring-boot-starter-validation</artifactId>
58 <groupId>org.onap.aaf.cadi</groupId>
59 <artifactId>aaf-cadi-shiro</artifactId>
60 <version>${aaf-shiro-bundle.version}</version>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-test</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-data-jpa</artifactId>
73 <groupId>io.springfox</groupId>
74 <artifactId>springfox-swagger2</artifactId>
75 <version>2.9.2</version>
78 <groupId>io.springfox</groupId>
79 <artifactId>springfox-swagger-ui</artifactId>
80 <version>2.9.2</version>
83 <groupId>${project.groupId}</groupId>
84 <artifactId>services</artifactId>
85 <version>${project.version}</version>
88 <groupId>org.onap.ccsdk.sli.core</groupId>
89 <artifactId>dblib-provider</artifactId>
90 <version>${ccsdk.sli.core.version}</version>
93 <groupId>org.onap.ccsdk.sli.core</groupId>
94 <artifactId>sli-common</artifactId>
95 <version>${ccsdk.sli.core.version}</version>
98 <groupId>org.onap.ccsdk.sli.core</groupId>
99 <artifactId>sli-provider-base</artifactId>
100 <version>${ccsdk.sli.core.version}</version>
103 <groupId>com.google.code.gson</groupId>
104 <artifactId>gson</artifactId>
107 <groupId>org.apache.derby</groupId>
108 <artifactId>derby</artifactId>
112 <groupId>org.mariadb.jdbc</groupId>
113 <artifactId>mariadb-java-client</artifactId>
116 <groupId>junit</groupId>
117 <artifactId>junit</artifactId>
121 <groupId>org.onap.logging-analytics</groupId>
122 <artifactId>logging-filter-spring</artifactId>
123 <version>1.6.6</version>
126 <groupId>javax.ws.rs</groupId>
127 <artifactId>javax.ws.rs-api</artifactId>
130 <groupId>org.onap.ccsdk.sli.core</groupId>
131 <artifactId>sliPluginUtils-provider</artifactId>
132 <version>${ccsdk.sli.core.version}</version>
135 <groupId>org.onap.ccsdk.sli.plugins</groupId>
136 <artifactId>restapi-call-node-provider</artifactId>
137 <version>${ccsdk.sli.plugins.version}</version>
140 <groupId>org.onap.ccsdk.sli.plugins</groupId>
141 <artifactId>properties-node-provider</artifactId>
142 <version>${ccsdk.sli.plugins.version}</version>
144 <!-- this jersey jar is needed for rest api call node to function properly -->
146 <groupId>org.glassfish.jersey.inject</groupId>
147 <artifactId>jersey-hk2</artifactId>
154 <groupId>org.codehaus.groovy.maven</groupId>
155 <artifactId>gmaven-plugin</artifactId>
158 <phase>validate</phase>
163 <source>${basedir}/TagVersion.groovy</source>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-dependency-plugin</artifactId>
172 <version>2.10</version>
176 <id>get-sliapi-yaml</id>
177 <phase>initialize</phase>
184 <groupId>org.onap.ccsdk.sli.core</groupId>
185 <artifactId>sliapi-model-swagger</artifactId>
186 <version>${ccsdk.sli.core.version}</version>
188 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
189 <destFileName>sliapi.yaml</destFileName>
197 <groupId>io.swagger</groupId>
198 <artifactId>swagger-codegen-maven-plugin</artifactId>
199 <version>2.3.1</version>
203 <goal>generate</goal>
206 <output>target/generated-sources</output>
207 <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec>
208 <language>spring</language>
209 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
210 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
211 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
212 <generateApis>true</generateApis>
213 <generateApiTests>true</generateApiTests>
214 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
215 <withXml>true</withXml>
216 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
219 <springBootVersion>2.2.4-RELEASE</springBootVersion>
226 <groupId>org.springframework.boot</groupId>
227 <artifactId>spring-boot-maven-plugin</artifactId>
231 <goal>repackage</goal>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-dependency-plugin</artifactId>
248 <version>2.10</version>
252 <id>copy-dependencies</id>
254 <goal>copy-dependencies</goal>
256 <phase>prepare-package</phase>
258 <excludeTransitive>true</excludeTransitive>
259 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
260 <overWriteReleases>false</overWriteReleases>
261 <overWriteSnapshots>true</overWriteSnapshots>
262 <overWriteIfNewer>true</overWriteIfNewer>
263 <useRepositoryLayout>false</useRepositoryLayout>
264 <addParentPoms>false</addParentPoms>
265 <copyPom>false</copyPom>
270 <phase>generate-sources</phase>
275 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
278 <groupId>org.onap.ccsdk.distribution</groupId>
279 <artifactId>platform-logic-installer</artifactId>
280 <version>${project.version}</version>
289 <artifactId>maven-resources-plugin</artifactId>
290 <version>2.6</version>
293 <id>copy-dockerfile</id>
295 <goal>copy-resources</goal>
296 </goals><!-- here the phase you need -->
297 <phase>initialize</phase>
299 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
302 <directory>src/main/docker</directory>
304 <include>Dockerfile</include>
306 <filtering>true</filtering>
314 <goal>copy-resources</goal>
315 </goals><!-- here the phase you need -->
316 <phase>generate-resources</phase>
318 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
321 <directory>src/main/resources</directory>
323 <include>*.properties</include>
324 <include>*.props</include>
325 <include>*.sql</include>
327 <filtering>true</filtering>
330 <directory>src/main/resources</directory>
332 <include>*.keyfile</include>
333 <include>*.jks</include>
334 <include>*.p12</include>
336 <filtering>false</filtering>
344 <goal>copy-resources</goal>
345 </goals><!-- here the phase you need -->
346 <phase>generate-resources</phase>
348 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
351 <directory>src/main/resources</directory>
353 <include>*.sh</include>
355 <filtering>true</filtering>
363 <goal>copy-resources</goal>
364 </goals><!-- here the phase you need -->
365 <phase>package</phase>
367 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
370 <directory>${basedir}/target</directory>
372 <include>${ccsdk.sliboot.jar}</include>
374 <filtering>false</filtering>
382 <groupId>io.fabric8</groupId>
383 <artifactId>docker-maven-plugin</artifactId>
384 <version>0.28.0</version>
385 <inherited>false</inherited>
389 <name>${image.name}</name>
391 <cleanup>try</cleanup>
392 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
393 <dockerFile>Dockerfile</dockerFile>
395 <tag>${project.docker.latestminortag.version}</tag>
396 <tag>${project.docker.latestfulltag.version}</tag>
397 <tag>${project.docker.latesttagtimestamp.version}</tag>
405 <id>generate-images</id>
406 <phase>package</phase>
414 <phase>${docker.push.phase}</phase>