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-25-starter-parent</artifactId>
8 <version>2.2.0-SNAPSHOT</version>
12 <groupId>org.onap.ccsdk.apps</groupId>
13 <artifactId>sliboot</artifactId>
14 <version>1.2.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 <aaf.cadi.version>2.1.21</aaf.cadi.version>
22 <base.image.name>onap/ccsdk-alpine-j11-image</base.image.name>
23 <base.image.version>1.1.1</base.image.version>
24 <image.name>onap/ccsdk-sliboot-alpine-image</image.name>
25 <ccsdk.project.version>${project.version}</ccsdk.project.version>
26 <ccsdk.distribution.version>1.1.0</ccsdk.distribution.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>
32 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
33 <java.home>/opt/java/openjdk</java.home>
34 <java.security.dir>${java.home}/lib/security</java.security.dir>
39 <groupId>io.swagger</groupId>
40 <artifactId>swagger-annotations</artifactId>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-web</artifactId>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-logging</artifactId>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-log4j2</artifactId>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-validation</artifactId>
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-boot-starter</artifactId>
72 <version>${springfox.version}</version>
75 <groupId>org.onap.aaf.authz</groupId>
76 <artifactId>aaf-cadi-client</artifactId>
77 <version>${aaf.cadi.version}</version>
80 <groupId>org.onap.aaf.authz</groupId>
81 <artifactId>aaf-cadi-core</artifactId>
82 <version>${aaf.cadi.version}</version>
85 <groupId>org.onap.aaf.authz</groupId>
86 <artifactId>aaf-auth-client</artifactId>
87 <version>${aaf.cadi.version}</version>
88 <scope>runtime</scope>
91 <groupId>org.onap.aaf.authz</groupId>
92 <artifactId>aaf-misc-env</artifactId>
93 <version>${aaf.cadi.version}</version>
94 <scope>runtime</scope>
97 <groupId>log4j</groupId>
98 <artifactId>log4j</artifactId>
103 <groupId>org.onap.aaf.authz</groupId>
104 <artifactId>aaf-misc-rosetta</artifactId>
105 <version>${aaf.cadi.version}</version>
106 <scope>runtime</scope>
109 <groupId>${project.groupId}</groupId>
110 <artifactId>services</artifactId>
111 <version>${project.version}</version>
114 <groupId>org.onap.ccsdk.sli.core</groupId>
115 <artifactId>dblib-provider</artifactId>
116 <version>${ccsdk.sli.core.version}</version>
119 <groupId>org.onap.ccsdk.sli.core</groupId>
120 <artifactId>sli-common</artifactId>
121 <version>${ccsdk.sli.core.version}</version>
124 <groupId>org.onap.ccsdk.sli.core</groupId>
125 <artifactId>sli-provider-base</artifactId>
126 <version>${ccsdk.sli.core.version}</version>
129 <groupId>org.onap.ccsdk.sli.core</groupId>
130 <artifactId>sliapi-model-swagger</artifactId>
131 <version>${ccsdk.sli.core.version}</version>
135 <groupId>org.onap.ccsdk.sli.core</groupId>
136 <artifactId>sliPluginUtils-provider</artifactId>
137 <version>${ccsdk.sli.core.version}</version>
140 <groupId>org.onap.ccsdk.sli.plugins</groupId>
141 <artifactId>restapi-call-node-provider</artifactId>
142 <version>${ccsdk.sli.plugins.version}</version>
145 <groupId>org.onap.ccsdk.sli.plugins</groupId>
146 <artifactId>properties-node-provider</artifactId>
147 <version>${ccsdk.sli.plugins.version}</version>
150 <groupId>org.onap.logging-analytics</groupId>
151 <artifactId>logging-filter-spring</artifactId>
152 <version>1.6.6</version>
155 <groupId>com.google.code.gson</groupId>
156 <artifactId>gson</artifactId>
159 <groupId>org.apache.derby</groupId>
160 <artifactId>derby</artifactId>
164 <groupId>org.mariadb.jdbc</groupId>
165 <artifactId>mariadb-java-client</artifactId>
168 <groupId>junit</groupId>
169 <artifactId>junit</artifactId>
173 <groupId>javax.ws.rs</groupId>
174 <artifactId>javax.ws.rs-api</artifactId>
176 <!-- this jersey jar is needed for rest api call node to function properly -->
178 <groupId>org.glassfish.jersey.inject</groupId>
179 <artifactId>jersey-hk2</artifactId>
186 <groupId>org.codehaus.groovy.maven</groupId>
187 <artifactId>gmaven-plugin</artifactId>
190 <phase>validate</phase>
195 <source>${basedir}/TagVersion.groovy</source>
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-dependency-plugin</artifactId>
204 <version>2.10</version>
208 <id>copy-sliapi-model-swagger</id>
209 <phase>initialize</phase>
211 <goal>copy-dependencies</goal>
214 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
215 <useRepositoryLayout>false</useRepositoryLayout>
216 <includeTypes>yaml</includeTypes>
217 <stripVersion>true</stripVersion>
221 <id>copy-dependencies</id>
223 <goal>copy-dependencies</goal>
225 <phase>prepare-package</phase>
227 <excludeTransitive>true</excludeTransitive>
228 <excludeTypes>yaml</excludeTypes>
229 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
230 <overWriteReleases>false</overWriteReleases>
231 <overWriteSnapshots>true</overWriteSnapshots>
232 <overWriteIfNewer>true</overWriteIfNewer>
233 <useRepositoryLayout>false</useRepositoryLayout>
234 <addParentPoms>false</addParentPoms>
235 <copyPom>false</copyPom>
240 <phase>generate-sources</phase>
245 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
248 <groupId>org.onap.ccsdk.distribution</groupId>
249 <artifactId>platform-logic-installer</artifactId>
250 <version>${ccsdk.distribution.version}</version>
259 <groupId>io.swagger</groupId>
260 <artifactId>swagger-codegen-maven-plugin</artifactId>
261 <version>2.3.1</version>
264 <phase>generate-sources</phase>
266 <goal>generate</goal>
269 <output>target/generated-sources</output>
270 <inputSpec>${project.build.directory}/yaml/sliapi-model-swagger.yaml</inputSpec>
271 <language>spring</language>
272 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
273 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
274 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
275 <generateApis>true</generateApis>
276 <generateApiTests>true</generateApiTests>
277 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
278 <withXml>true</withXml>
279 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
282 <springBootVersion>2.2.4-RELEASE</springBootVersion>
289 <groupId>org.springframework.boot</groupId>
290 <artifactId>spring-boot-maven-plugin</artifactId>
292 <classifier>exec</classifier>
297 <goal>repackage</goal>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-surefire-plugin</artifactId>
305 <version>2.19.1</version>
307 <environmentVariables>
308 <SDNC_CONFIG_DIR>${basedir}/src/test/resources</SDNC_CONFIG_DIR>
309 <SVCLOGIC_PROPERTIES>${basedir}/src/test/resources/svclogic.properties</SVCLOGIC_PROPERTIES>
310 </environmentVariables>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-failsafe-plugin</artifactId>
319 <goal>integration-test</goal>
325 <skipITs>true</skipITs>
329 <artifactId>maven-resources-plugin</artifactId>
330 <version>2.6</version>
333 <id>copy-dockerfile</id>
335 <goal>copy-resources</goal>
336 </goals><!-- here the phase you need -->
337 <phase>initialize</phase>
339 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
342 <directory>src/main/docker</directory>
344 <include>Dockerfile</include>
346 <filtering>true</filtering>
354 <goal>copy-resources</goal>
355 </goals><!-- here the phase you need -->
356 <phase>generate-resources</phase>
358 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
361 <directory>src/main/resources</directory>
363 <include>*.properties</include>
364 <include>*.props</include>
365 <include>*.sql</include>
367 <filtering>true</filtering>
370 <directory>src/main/resources</directory>
372 <include>*.keyfile</include>
373 <include>*.jks</include>
374 <include>*.p12</include>
376 <filtering>false</filtering>
384 <goal>copy-resources</goal>
385 </goals><!-- here the phase you need -->
386 <phase>generate-resources</phase>
388 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
391 <directory>src/main/resources</directory>
393 <include>*.sh</include>
395 <filtering>true</filtering>
403 <goal>copy-resources</goal>
404 </goals><!-- here the phase you need -->
405 <phase>package</phase>
407 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
410 <directory>${basedir}/target</directory>
412 <include>${ccsdk.sliboot.jar}</include>
414 <filtering>false</filtering>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-failsafe-plugin</artifactId>
436 <goal>integration-test</goal>
442 <skipITs>false</skipITs>
443 <environmentVariables>
444 <SLIBOOT_PORT>${sliboot.port}</SLIBOOT_PORT>
445 </environmentVariables>
449 <groupId>io.fabric8</groupId>
450 <artifactId>docker-maven-plugin</artifactId>
451 <version>0.34.0</version>
452 <inherited>false</inherited>
456 <name>${image.name}</name>
458 <cleanup>try</cleanup>
459 <noCache>true</noCache>
460 <contextDir>${basedir}/target/docker-stage</contextDir>
461 <dockerFile>Dockerfile</dockerFile>
463 <tag>${project.docker.latestminortag.version}</tag>
464 <tag>${project.docker.latestfulltag.version}</tag>
465 <tag>${project.docker.latesttagtimestamp.version}</tag>
473 <id>generate-images</id>
474 <phase>package</phase>
480 <id>start-it-instance</id>
481 <phase>pre-integration-test</phase>
488 <name>mariadb:10.5</name>
489 <alias>slibootdb</alias>
492 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
493 <MYSQL_USER>sli</MYSQL_USER>
494 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
495 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
500 <alias>dbhost</alias>
503 <port>slibootdb.port:3306</port>
506 <enabled>true</enabled>
511 <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
512 <alias>sliboot-container</alias>
515 <MYSQL_USER>sli</MYSQL_USER>
516 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
517 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
518 <MYSQL_HOST>dbhost</MYSQL_HOST>
519 <SDNC_CONFIG_DIR>/opt/onap/ccsdk/config</SDNC_CONFIG_DIR>
522 <container>slibootdb</container>
527 <alias>sliboot</alias>
530 <port>sliboot.port:8080</port>
533 <log>Started SlibootApp</log>
537 <enabled>true</enabled>
545 <id>stop-it-instance</id>
546 <phase>post-integration-test</phase>