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.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-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.aaf.authz</groupId>
81 <artifactId>aaf-cadi-client</artifactId>
82 <version>${aaf.cadi.version}</version>
85 <groupId>org.onap.aaf.authz</groupId>
86 <artifactId>aaf-cadi-core</artifactId>
87 <version>${aaf.cadi.version}</version>
90 <groupId>org.onap.aaf.authz</groupId>
91 <artifactId>aaf-auth-client</artifactId>
92 <version>${aaf.cadi.version}</version>
93 <scope>runtime</scope>
96 <groupId>org.onap.aaf.authz</groupId>
97 <artifactId>aaf-misc-env</artifactId>
98 <version>${aaf.cadi.version}</version>
99 <scope>runtime</scope>
102 <groupId>org.onap.aaf.authz</groupId>
103 <artifactId>aaf-misc-rosetta</artifactId>
104 <version>${aaf.cadi.version}</version>
105 <scope>runtime</scope>
108 <groupId>${project.groupId}</groupId>
109 <artifactId>services</artifactId>
110 <version>${project.version}</version>
113 <groupId>org.onap.ccsdk.sli.core</groupId>
114 <artifactId>dblib-provider</artifactId>
115 <version>${ccsdk.sli.core.version}</version>
118 <groupId>org.onap.ccsdk.sli.core</groupId>
119 <artifactId>sli-common</artifactId>
120 <version>${ccsdk.sli.core.version}</version>
123 <groupId>org.onap.ccsdk.sli.core</groupId>
124 <artifactId>sli-provider-base</artifactId>
125 <version>${ccsdk.sli.core.version}</version>
128 <groupId>com.google.code.gson</groupId>
129 <artifactId>gson</artifactId>
132 <groupId>org.apache.derby</groupId>
133 <artifactId>derby</artifactId>
137 <groupId>org.mariadb.jdbc</groupId>
138 <artifactId>mariadb-java-client</artifactId>
141 <groupId>junit</groupId>
142 <artifactId>junit</artifactId>
146 <groupId>org.onap.logging-analytics</groupId>
147 <artifactId>logging-filter-spring</artifactId>
148 <version>1.6.6</version>
151 <groupId>javax.ws.rs</groupId>
152 <artifactId>javax.ws.rs-api</artifactId>
155 <groupId>org.onap.ccsdk.sli.core</groupId>
156 <artifactId>sliapi-model-swagger</artifactId>
157 <version>${ccsdk.sli.core.version}</version>
161 <groupId>org.onap.ccsdk.sli.core</groupId>
162 <artifactId>sliPluginUtils-provider</artifactId>
163 <version>${ccsdk.sli.core.version}</version>
166 <groupId>org.onap.ccsdk.sli.plugins</groupId>
167 <artifactId>restapi-call-node-provider</artifactId>
168 <version>${ccsdk.sli.plugins.version}</version>
171 <groupId>org.onap.ccsdk.sli.plugins</groupId>
172 <artifactId>properties-node-provider</artifactId>
173 <version>${ccsdk.sli.plugins.version}</version>
175 <!-- this jersey jar is needed for rest api call node to function properly -->
177 <groupId>org.glassfish.jersey.inject</groupId>
178 <artifactId>jersey-hk2</artifactId>
185 <groupId>org.codehaus.groovy.maven</groupId>
186 <artifactId>gmaven-plugin</artifactId>
189 <phase>validate</phase>
194 <source>${basedir}/TagVersion.groovy</source>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-dependency-plugin</artifactId>
203 <version>2.10</version>
207 <id>get-sliapi-yaml</id>
208 <phase>initialize</phase>
210 <goal>copy-dependencies</goal>
213 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
214 <useRepositoryLayout>false</useRepositoryLayout>
215 <includeTypes>yaml</includeTypes>
216 <stripVersion>true</stripVersion>
220 <id>copy-dependencies</id>
222 <goal>copy-dependencies</goal>
224 <phase>prepare-package</phase>
226 <excludeTransitive>true</excludeTransitive>
227 <excludeTypes>yaml</excludeTypes>
228 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
229 <overWriteReleases>false</overWriteReleases>
230 <overWriteSnapshots>true</overWriteSnapshots>
231 <overWriteIfNewer>true</overWriteIfNewer>
232 <useRepositoryLayout>false</useRepositoryLayout>
233 <addParentPoms>false</addParentPoms>
234 <copyPom>false</copyPom>
239 <phase>generate-sources</phase>
244 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
247 <groupId>org.onap.ccsdk.distribution</groupId>
248 <artifactId>platform-logic-installer</artifactId>
249 <version>${ccsdk.distribution.version}</version>
258 <groupId>io.swagger</groupId>
259 <artifactId>swagger-codegen-maven-plugin</artifactId>
260 <version>2.3.1</version>
263 <phase>generate-sources</phase>
265 <goal>generate</goal>
268 <output>target/generated-sources</output>
269 <inputSpec>${project.build.directory}/yaml/sliapi-model-swagger.yaml</inputSpec>
270 <language>spring</language>
271 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
272 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
273 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
274 <generateApis>true</generateApis>
275 <generateApiTests>true</generateApiTests>
276 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
277 <withXml>true</withXml>
278 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
281 <springBootVersion>2.2.4-RELEASE</springBootVersion>
288 <groupId>org.springframework.boot</groupId>
289 <artifactId>spring-boot-maven-plugin</artifactId>
291 <classifier>exec</classifier>
296 <goal>repackage</goal>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-surefire-plugin</artifactId>
304 <version>2.19.1</version>
306 <environmentVariables>
307 <SDNC_CONFIG_DIR>${basedir}/src/test/resources</SDNC_CONFIG_DIR>
308 <SVCLOGIC_PROPERTIES>${basedir}/src/test/resources/svclogic.properties</SVCLOGIC_PROPERTIES>
309 </environmentVariables>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-failsafe-plugin</artifactId>
318 <goal>integration-test</goal>
324 <skipITs>true</skipITs>
328 <artifactId>maven-resources-plugin</artifactId>
329 <version>2.6</version>
332 <id>copy-dockerfile</id>
334 <goal>copy-resources</goal>
335 </goals><!-- here the phase you need -->
336 <phase>initialize</phase>
338 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
341 <directory>src/main/docker</directory>
343 <include>Dockerfile</include>
345 <filtering>true</filtering>
353 <goal>copy-resources</goal>
354 </goals><!-- here the phase you need -->
355 <phase>generate-resources</phase>
357 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
360 <directory>src/main/resources</directory>
362 <include>*.properties</include>
363 <include>*.props</include>
364 <include>*.sql</include>
366 <filtering>true</filtering>
369 <directory>src/main/resources</directory>
371 <include>*.keyfile</include>
372 <include>*.jks</include>
373 <include>*.p12</include>
375 <filtering>false</filtering>
383 <goal>copy-resources</goal>
384 </goals><!-- here the phase you need -->
385 <phase>generate-resources</phase>
387 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
390 <directory>src/main/resources</directory>
392 <include>*.sh</include>
394 <filtering>true</filtering>
402 <goal>copy-resources</goal>
403 </goals><!-- here the phase you need -->
404 <phase>package</phase>
406 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
409 <directory>${basedir}/target</directory>
411 <include>${ccsdk.sliboot.jar}</include>
413 <filtering>false</filtering>
430 <groupId>org.apache.maven.plugins</groupId>
431 <artifactId>maven-failsafe-plugin</artifactId>
435 <goal>integration-test</goal>
441 <skipITs>false</skipITs>
442 <environmentVariables>
443 <SLIBOOT_PORT>${sliboot.port}</SLIBOOT_PORT>
444 </environmentVariables>
448 <groupId>io.fabric8</groupId>
449 <artifactId>docker-maven-plugin</artifactId>
450 <version>0.28.0</version>
451 <inherited>false</inherited>
455 <name>${image.name}</name>
457 <cleanup>try</cleanup>
458 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
459 <dockerFile>Dockerfile</dockerFile>
461 <tag>${project.docker.latestminortag.version}</tag>
462 <tag>${project.docker.latestfulltag.version}</tag>
463 <tag>${project.docker.latesttagtimestamp.version}</tag>
471 <id>generate-images</id>
472 <phase>package</phase>
479 <id>start-it-instance</id>
480 <phase>pre-integration-test</phase>
487 <name>mariadb:10.5</name>
488 <alias>slibootdb</alias>
491 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
492 <MYSQL_USER>sli</MYSQL_USER>
493 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
494 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
499 <alias>dbhost</alias>
502 <port>slibootdb.port:3306</port>
505 <enabled>true</enabled>
510 <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
511 <alias>sliboot-container</alias>
514 <MYSQL_USER>sli</MYSQL_USER>
515 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
516 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
517 <SDNC_CONFIG_DIR>/opt/onap/ccsdk/config</SDNC_CONFIG_DIR>
520 <container>slibootdb</container>
525 <alias>sliboot</alias>
528 <port>sliboot.port:8080</port>
531 <log>Started SlibootApp</log>
535 <enabled>true</enabled>
543 <id>stop-it-instance</id>
544 <phase>post-integration-test</phase>
551 <phase>${docker.push.phase}</phase>