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.apps</groupId>
7 <artifactId>ccsdk-apps-ms</artifactId>
8 <version>1.6.0-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.apps</groupId>
12 <artifactId>sliboot</artifactId>
13 <version>1.6.0-SNAPSHOT</version>
14 <packaging>jar</packaging>
16 <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
19 <start-class>org.onap.ccsdk.apps.ms.sliboot.SlibootApp</start-class>
20 <aaf.cadi.version>2.1.21</aaf.cadi.version>
21 <base.image.name>onap/ccsdk-alpine-j17-image</base.image.name>
22 <base.image.version>1.5-STAGING-latest</base.image.version>
23 <image.name>onap/ccsdk-sliboot-alpine-image</image.name>
24 <ccsdk.project.version>${project.version}</ccsdk.project.version>
25 <ccsdk.distribution.version>1.5.1</ccsdk.distribution.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}-exec.jar</ccsdk.sliboot.jar>
29 <docker.push.phase>deploy</docker.push.phase>
30 <docker.verbose>true</docker.verbose>
31 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
32 <java.home>/opt/java/openjdk</java.home>
33 <java.security.dir>${java.home}/lib/security</java.security.dir>
38 <groupId>io.swagger</groupId>
39 <artifactId>swagger-annotations</artifactId>
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-web</artifactId>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-logging</artifactId>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-log4j2</artifactId>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-validation</artifactId>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-test</artifactId>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-data-jpa</artifactId>
69 <groupId>io.springfox</groupId>
70 <artifactId>springfox-boot-starter</artifactId>
71 <version>${springfox.version}</version>
74 <groupId>org.onap.aaf.authz</groupId>
75 <artifactId>aaf-cadi-client</artifactId>
76 <version>${aaf.cadi.version}</version>
79 <groupId>org.onap.aaf.authz</groupId>
80 <artifactId>aaf-cadi-core</artifactId>
81 <version>${aaf.cadi.version}</version>
84 <groupId>org.onap.aaf.authz</groupId>
85 <artifactId>aaf-auth-client</artifactId>
86 <version>${aaf.cadi.version}</version>
87 <scope>runtime</scope>
90 <groupId>org.onap.aaf.authz</groupId>
91 <artifactId>aaf-misc-env</artifactId>
92 <version>${aaf.cadi.version}</version>
93 <scope>runtime</scope>
96 <groupId>log4j</groupId>
97 <artifactId>log4j</artifactId>
102 <groupId>org.onap.aaf.authz</groupId>
103 <artifactId>aaf-misc-rosetta</artifactId>
104 <version>${aaf.cadi.version}</version>
105 <scope>runtime</scope>
107 <!-- Needed by logging-analytics payload logging filter -->
109 <groupId>org.apache.cxf</groupId>
110 <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
111 <version>3.4.4</version>
114 <groupId>org.onap.aaf.authz</groupId>
115 <artifactId>aaf-cadi-client</artifactId>
116 <version>${aaf.cadi.version}</version>
119 <groupId>org.onap.aaf.authz</groupId>
120 <artifactId>aaf-cadi-core</artifactId>
121 <version>${aaf.cadi.version}</version>
124 <groupId>org.onap.aaf.authz</groupId>
125 <artifactId>aaf-auth-client</artifactId>
126 <version>${aaf.cadi.version}</version>
127 <scope>runtime</scope>
130 <groupId>org.onap.aaf.authz</groupId>
131 <artifactId>aaf-misc-env</artifactId>
132 <version>${aaf.cadi.version}</version>
133 <scope>runtime</scope>
136 <groupId>org.onap.aaf.authz</groupId>
137 <artifactId>aaf-misc-rosetta</artifactId>
138 <version>${aaf.cadi.version}</version>
139 <scope>runtime</scope>
142 <groupId>${project.groupId}</groupId>
143 <artifactId>services</artifactId>
144 <version>${project.version}</version>
147 <groupId>org.onap.ccsdk.sli.core</groupId>
148 <artifactId>dblib-provider</artifactId>
149 <version>${ccsdk.sli.core.version}</version>
152 <groupId>org.onap.ccsdk.sli.core</groupId>
153 <artifactId>sli-common</artifactId>
154 <version>${ccsdk.sli.core.version}</version>
157 <groupId>org.onap.ccsdk.sli.core</groupId>
158 <artifactId>sli-provider-base</artifactId>
159 <version>${ccsdk.sli.core.version}</version>
162 <groupId>org.onap.ccsdk.sli.core</groupId>
163 <artifactId>sliapi-model-swagger</artifactId>
164 <version>${ccsdk.sli.core.version}</version>
168 <groupId>org.onap.ccsdk.sli.core</groupId>
169 <artifactId>sliPluginUtils-provider</artifactId>
170 <version>${ccsdk.sli.core.version}</version>
173 <groupId>org.onap.ccsdk.sli.plugins</groupId>
174 <artifactId>restapi-call-node-provider</artifactId>
175 <version>${ccsdk.sli.plugins.version}</version>
178 <groupId>org.onap.ccsdk.sli.plugins</groupId>
179 <artifactId>properties-node-provider</artifactId>
180 <version>${ccsdk.sli.plugins.version}</version>
183 <groupId>org.onap.logging-analytics</groupId>
184 <artifactId>logging-filter-spring</artifactId>
185 <version>1.6.6</version>
188 <groupId>com.google.code.gson</groupId>
189 <artifactId>gson</artifactId>
190 <version>${gson.version}</version>
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.gmaven</groupId>
221 <artifactId>groovy-maven-plugin</artifactId>
222 <version>2.1.1</version>
225 <phase>validate</phase>
230 <source>${basedir}/TagVersion.groovy</source>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-dependency-plugin</artifactId>
239 <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:latest</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>