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.1</version>
12 <groupId>org.onap.ccsdk.apps</groupId>
13 <artifactId>sliboot</artifactId>
14 <version>1.3.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.2.2</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.2.2</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>
108 <!-- Needed by logging-analytics payload logging filter -->
110 <groupId>org.apache.cxf</groupId>
111 <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
112 <version>3.4.4</version>
115 <groupId>org.onap.aaf.authz</groupId>
116 <artifactId>aaf-cadi-client</artifactId>
117 <version>${aaf.cadi.version}</version>
120 <groupId>org.onap.aaf.authz</groupId>
121 <artifactId>aaf-cadi-core</artifactId>
122 <version>${aaf.cadi.version}</version>
125 <groupId>org.onap.aaf.authz</groupId>
126 <artifactId>aaf-auth-client</artifactId>
127 <version>${aaf.cadi.version}</version>
128 <scope>runtime</scope>
131 <groupId>org.onap.aaf.authz</groupId>
132 <artifactId>aaf-misc-env</artifactId>
133 <version>${aaf.cadi.version}</version>
134 <scope>runtime</scope>
137 <groupId>org.onap.aaf.authz</groupId>
138 <artifactId>aaf-misc-rosetta</artifactId>
139 <version>${aaf.cadi.version}</version>
140 <scope>runtime</scope>
143 <groupId>${project.groupId}</groupId>
144 <artifactId>services</artifactId>
145 <version>${project.version}</version>
148 <groupId>org.onap.ccsdk.sli.core</groupId>
149 <artifactId>dblib-provider</artifactId>
150 <version>${ccsdk.sli.core.version}</version>
153 <groupId>org.onap.ccsdk.sli.core</groupId>
154 <artifactId>sli-common</artifactId>
155 <version>${ccsdk.sli.core.version}</version>
158 <groupId>org.onap.ccsdk.sli.core</groupId>
159 <artifactId>sli-provider-base</artifactId>
160 <version>${ccsdk.sli.core.version}</version>
163 <groupId>org.onap.ccsdk.sli.core</groupId>
164 <artifactId>sliapi-model-swagger</artifactId>
165 <version>${ccsdk.sli.core.version}</version>
169 <groupId>org.onap.ccsdk.sli.core</groupId>
170 <artifactId>sliPluginUtils-provider</artifactId>
171 <version>${ccsdk.sli.core.version}</version>
174 <groupId>org.onap.ccsdk.sli.plugins</groupId>
175 <artifactId>restapi-call-node-provider</artifactId>
176 <version>${ccsdk.sli.plugins.version}</version>
179 <groupId>org.onap.ccsdk.sli.plugins</groupId>
180 <artifactId>properties-node-provider</artifactId>
181 <version>${ccsdk.sli.plugins.version}</version>
184 <groupId>org.onap.logging-analytics</groupId>
185 <artifactId>logging-filter-spring</artifactId>
186 <version>1.6.6</version>
189 <groupId>com.google.code.gson</groupId>
190 <artifactId>gson</artifactId>
193 <groupId>org.apache.derby</groupId>
194 <artifactId>derby</artifactId>
198 <groupId>org.mariadb.jdbc</groupId>
199 <artifactId>mariadb-java-client</artifactId>
202 <groupId>junit</groupId>
203 <artifactId>junit</artifactId>
207 <groupId>javax.ws.rs</groupId>
208 <artifactId>javax.ws.rs-api</artifactId>
210 <!-- this jersey jar is needed for rest api call node to function properly -->
212 <groupId>org.glassfish.jersey.inject</groupId>
213 <artifactId>jersey-hk2</artifactId>
220 <groupId>org.codehaus.groovy.maven</groupId>
221 <artifactId>gmaven-plugin</artifactId>
224 <phase>validate</phase>
229 <source>${basedir}/TagVersion.groovy</source>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-dependency-plugin</artifactId>
238 <version>2.10</version>
242 <id>copy-sliapi-model-swagger</id>
243 <phase>initialize</phase>
245 <goal>copy-dependencies</goal>
248 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
249 <useRepositoryLayout>false</useRepositoryLayout>
250 <includeTypes>yaml</includeTypes>
251 <stripVersion>true</stripVersion>
255 <id>copy-dependencies</id>
257 <goal>copy-dependencies</goal>
259 <phase>prepare-package</phase>
261 <excludeTransitive>true</excludeTransitive>
262 <excludeTypes>yaml</excludeTypes>
263 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
264 <overWriteReleases>false</overWriteReleases>
265 <overWriteSnapshots>true</overWriteSnapshots>
266 <overWriteIfNewer>true</overWriteIfNewer>
267 <useRepositoryLayout>false</useRepositoryLayout>
268 <addParentPoms>false</addParentPoms>
269 <copyPom>false</copyPom>
274 <phase>generate-sources</phase>
279 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
282 <groupId>org.onap.ccsdk.distribution</groupId>
283 <artifactId>platform-logic-installer</artifactId>
284 <version>${ccsdk.distribution.version}</version>
293 <groupId>io.swagger</groupId>
294 <artifactId>swagger-codegen-maven-plugin</artifactId>
295 <version>2.3.1</version>
298 <phase>generate-sources</phase>
300 <goal>generate</goal>
303 <output>target/generated-sources</output>
304 <inputSpec>${project.build.directory}/yaml/sliapi-model-swagger.yaml</inputSpec>
305 <language>spring</language>
306 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
307 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
308 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
309 <generateApis>true</generateApis>
310 <generateApiTests>true</generateApiTests>
311 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
312 <withXml>true</withXml>
313 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
316 <springBootVersion>2.2.4-RELEASE</springBootVersion>
323 <groupId>org.springframework.boot</groupId>
324 <artifactId>spring-boot-maven-plugin</artifactId>
326 <classifier>exec</classifier>
331 <goal>repackage</goal>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-surefire-plugin</artifactId>
339 <version>2.19.1</version>
341 <environmentVariables>
342 <SDNC_CONFIG_DIR>${basedir}/src/test/resources</SDNC_CONFIG_DIR>
343 <SVCLOGIC_PROPERTIES>${basedir}/src/test/resources/svclogic.properties</SVCLOGIC_PROPERTIES>
344 </environmentVariables>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-failsafe-plugin</artifactId>
353 <goal>integration-test</goal>
359 <skipITs>true</skipITs>
363 <artifactId>maven-resources-plugin</artifactId>
364 <version>2.6</version>
367 <id>copy-dockerfile</id>
369 <goal>copy-resources</goal>
370 </goals><!-- here the phase you need -->
371 <phase>initialize</phase>
373 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
376 <directory>src/main/docker</directory>
378 <include>Dockerfile</include>
380 <filtering>true</filtering>
388 <goal>copy-resources</goal>
389 </goals><!-- here the phase you need -->
390 <phase>generate-resources</phase>
392 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
395 <directory>src/main/resources</directory>
397 <include>*.properties</include>
398 <include>*.props</include>
399 <include>*.sql</include>
401 <filtering>true</filtering>
404 <directory>src/main/resources</directory>
406 <include>*.keyfile</include>
407 <include>*.jks</include>
408 <include>*.p12</include>
410 <filtering>false</filtering>
418 <goal>copy-resources</goal>
419 </goals><!-- here the phase you need -->
420 <phase>generate-resources</phase>
422 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
425 <directory>src/main/resources</directory>
427 <include>*.sh</include>
429 <filtering>true</filtering>
437 <goal>copy-resources</goal>
438 </goals><!-- here the phase you need -->
439 <phase>package</phase>
441 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
444 <directory>${basedir}/target</directory>
446 <include>${ccsdk.sliboot.jar}</include>
448 <filtering>false</filtering>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-failsafe-plugin</artifactId>
470 <goal>integration-test</goal>
476 <skipITs>false</skipITs>
477 <environmentVariables>
478 <SLIBOOT_PORT>${sliboot.port}</SLIBOOT_PORT>
479 </environmentVariables>
483 <groupId>io.fabric8</groupId>
484 <artifactId>docker-maven-plugin</artifactId>
485 <version>0.34.0</version>
486 <inherited>false</inherited>
490 <name>${image.name}</name>
492 <cleanup>try</cleanup>
493 <noCache>true</noCache>
494 <contextDir>${basedir}/target/docker-stage</contextDir>
495 <dockerFile>Dockerfile</dockerFile>
497 <tag>${project.docker.latestminortag.version}</tag>
498 <tag>${project.docker.latestfulltag.version}</tag>
499 <tag>${project.docker.latesttagtimestamp.version}</tag>
507 <id>generate-images</id>
508 <phase>package</phase>
514 <id>start-it-instance</id>
515 <phase>pre-integration-test</phase>
522 <name>mariadb:10.5</name>
523 <alias>slibootdb</alias>
526 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
527 <MYSQL_USER>sli</MYSQL_USER>
528 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
529 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
534 <alias>dbhost</alias>
537 <port>slibootdb.port:3306</port>
540 <enabled>true</enabled>
545 <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
546 <alias>sliboot-container</alias>
549 <MYSQL_USER>sli</MYSQL_USER>
550 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
551 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
552 <MYSQL_HOST>dbhost</MYSQL_HOST>
553 <SDNC_CONFIG_DIR>/opt/onap/ccsdk/config</SDNC_CONFIG_DIR>
556 <container>slibootdb</container>
561 <alias>sliboot</alias>
564 <port>sliboot.port:8080</port>
567 <log>Started SlibootApp</log>
571 <enabled>true</enabled>
579 <id>stop-it-instance</id>
580 <phase>post-integration-test</phase>