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.4.1-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.apps</groupId>
12 <artifactId>sliboot</artifactId>
13 <version>1.4.1-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-j11-image</base.image.name>
22 <base.image.version>1.2.2</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.2.2</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>
192 <groupId>org.apache.derby</groupId>
193 <artifactId>derby</artifactId>
197 <groupId>org.mariadb.jdbc</groupId>
198 <artifactId>mariadb-java-client</artifactId>
201 <groupId>junit</groupId>
202 <artifactId>junit</artifactId>
206 <groupId>javax.ws.rs</groupId>
207 <artifactId>javax.ws.rs-api</artifactId>
209 <!-- this jersey jar is needed for rest api call node to function properly -->
211 <groupId>org.glassfish.jersey.inject</groupId>
212 <artifactId>jersey-hk2</artifactId>
219 <groupId>org.codehaus.groovy.maven</groupId>
220 <artifactId>gmaven-plugin</artifactId>
223 <phase>validate</phase>
228 <source>${basedir}/TagVersion.groovy</source>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-dependency-plugin</artifactId>
237 <version>2.10</version>
240 <id>copy-sliapi-model-swagger</id>
241 <phase>initialize</phase>
243 <goal>copy-dependencies</goal>
246 <outputDirectory>${project.build.directory}/yaml</outputDirectory>
247 <useRepositoryLayout>false</useRepositoryLayout>
248 <includeTypes>yaml</includeTypes>
249 <stripVersion>true</stripVersion>
253 <id>copy-dependencies</id>
255 <goal>copy-dependencies</goal>
257 <phase>prepare-package</phase>
259 <excludeTransitive>true</excludeTransitive>
260 <excludeTypes>yaml</excludeTypes>
261 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
262 <overWriteReleases>false</overWriteReleases>
263 <overWriteSnapshots>true</overWriteSnapshots>
264 <overWriteIfNewer>true</overWriteIfNewer>
265 <useRepositoryLayout>false</useRepositoryLayout>
266 <addParentPoms>false</addParentPoms>
267 <copyPom>false</copyPom>
272 <phase>generate-sources</phase>
277 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
280 <groupId>org.onap.ccsdk.distribution</groupId>
281 <artifactId>platform-logic-installer</artifactId>
282 <version>${ccsdk.distribution.version}</version>
291 <groupId>io.swagger</groupId>
292 <artifactId>swagger-codegen-maven-plugin</artifactId>
293 <version>2.3.1</version>
296 <phase>generate-sources</phase>
298 <goal>generate</goal>
301 <output>target/generated-sources</output>
302 <inputSpec>${project.build.directory}/yaml/sliapi-model-swagger.yaml</inputSpec>
303 <language>spring</language>
304 <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
305 <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
306 <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
307 <generateApis>true</generateApis>
308 <generateApiTests>true</generateApiTests>
309 <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
310 <withXml>true</withXml>
311 <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
314 <springBootVersion>2.2.4-RELEASE</springBootVersion>
321 <groupId>org.springframework.boot</groupId>
322 <artifactId>spring-boot-maven-plugin</artifactId>
324 <classifier>exec</classifier>
329 <goal>repackage</goal>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-surefire-plugin</artifactId>
337 <version>2.19.1</version>
339 <environmentVariables>
340 <SDNC_CONFIG_DIR>${basedir}/src/test/resources</SDNC_CONFIG_DIR>
341 <SVCLOGIC_PROPERTIES>${basedir}/src/test/resources/svclogic.properties</SVCLOGIC_PROPERTIES>
342 </environmentVariables>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-failsafe-plugin</artifactId>
351 <goal>integration-test</goal>
357 <skipITs>true</skipITs>
361 <artifactId>maven-resources-plugin</artifactId>
362 <version>2.6</version>
365 <id>copy-dockerfile</id>
367 <goal>copy-resources</goal>
368 </goals><!-- here the phase you need -->
369 <phase>initialize</phase>
371 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
374 <directory>src/main/docker</directory>
376 <include>Dockerfile</include>
378 <filtering>true</filtering>
386 <goal>copy-resources</goal>
387 </goals><!-- here the phase you need -->
388 <phase>generate-resources</phase>
390 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
393 <directory>src/main/resources</directory>
395 <include>*.properties</include>
396 <include>*.props</include>
397 <include>*.sql</include>
399 <filtering>true</filtering>
402 <directory>src/main/resources</directory>
404 <include>*.keyfile</include>
405 <include>*.jks</include>
406 <include>*.p12</include>
408 <filtering>false</filtering>
416 <goal>copy-resources</goal>
417 </goals><!-- here the phase you need -->
418 <phase>generate-resources</phase>
420 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
423 <directory>src/main/resources</directory>
425 <include>*.sh</include>
427 <filtering>true</filtering>
435 <goal>copy-resources</goal>
436 </goals><!-- here the phase you need -->
437 <phase>package</phase>
439 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
442 <directory>${basedir}/target</directory>
444 <include>${ccsdk.sliboot.jar}</include>
446 <filtering>false</filtering>
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-failsafe-plugin</artifactId>
468 <goal>integration-test</goal>
474 <skipITs>false</skipITs>
475 <environmentVariables>
476 <SLIBOOT_PORT>${sliboot.port}</SLIBOOT_PORT>
477 </environmentVariables>
481 <groupId>io.fabric8</groupId>
482 <artifactId>docker-maven-plugin</artifactId>
483 <version>0.34.0</version>
484 <inherited>false</inherited>
488 <name>${image.name}</name>
490 <cleanup>try</cleanup>
491 <noCache>true</noCache>
492 <contextDir>${basedir}/target/docker-stage</contextDir>
493 <dockerFile>Dockerfile</dockerFile>
495 <tag>${project.docker.latestminortag.version}</tag>
496 <tag>${project.docker.latestfulltag.version}</tag>
497 <tag>${project.docker.latesttagtimestamp.version}</tag>
505 <id>generate-images</id>
506 <phase>package</phase>
512 <id>start-it-instance</id>
513 <phase>pre-integration-test</phase>
520 <name>mariadb:latest</name>
521 <alias>slibootdb</alias>
524 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
525 <MYSQL_USER>sli</MYSQL_USER>
526 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
527 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
532 <alias>dbhost</alias>
535 <port>slibootdb.port:3306</port>
538 <enabled>true</enabled>
543 <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
544 <alias>sliboot-container</alias>
547 <MYSQL_USER>sli</MYSQL_USER>
548 <MYSQL_PASSWORD>abc123</MYSQL_PASSWORD>
549 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
550 <MYSQL_HOST>dbhost</MYSQL_HOST>
551 <SDNC_CONFIG_DIR>/opt/onap/ccsdk/config</SDNC_CONFIG_DIR>
554 <container>slibootdb</container>
559 <alias>sliboot</alias>
562 <port>sliboot.port:8080</port>
565 <log>Started SlibootApp</log>
569 <enabled>true</enabled>
577 <id>stop-it-instance</id>
578 <phase>post-integration-test</phase>