1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END============================================
21 ===================================================================
23 <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">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.clamp</groupId>
26 <artifactId>clds</artifactId>
27 <version>4.0.3-SNAPSHOT</version>
32 <!-- <groupId>org.onap.oparent</groupId> -->
33 <!-- <artifactId>oparent</artifactId> -->
34 <!-- <version>1.2.3</version> -->
38 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
40 By Default "mvn clean install" command will execute also the unit tests
41 and the integration tests. The integration tests require a docker engine running.
43 If you want to skip the integration test you can by doing:
44 "mvn clean install -DskipITs=true"
46 For Spring it's possible to specify the application.properties location
47 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49 The application.properties contains the location of the CLAMP parameters files:
50 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
51 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
56 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
57 <clamp.project.version>${project.version}</clamp.project.version>
58 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
59 <maven.compiler.source>1.8</maven.compiler.source>
60 <maven.compiler.target>1.8</maven.compiler.target>
61 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
62 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
64 <project.scm.id>git-server</project.scm.id>
65 <java.version>1.8</java.version>
67 <eelf.core.version>1.0.0</eelf.core.version>
68 <camel.version>2.23.2</camel.version>
69 <springboot.version>2.1.4.RELEASE</springboot.version>
71 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
72 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
73 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
74 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
75 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
76 <sonar.projectVersion>${project.version}</sonar.projectVersion>
77 <!-- Enable language to disable javascript analysis -->
78 <sonar.language>java</sonar.language>
79 <!-- Parameters for Javascript coverage
80 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
81 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
83 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
85 <docker.push.registry>localhost:5000</docker.push.registry>
86 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
87 <docker.skip.build>true</docker.skip.build>
88 <docker.skip.push>true</docker.skip.push>
89 <docker.skip.tag>true</docker.skip.tag>
90 <skip.staging.artifacts>false</skip.staging.artifacts>
91 <python.http.proxy.param/>
92 <tomcat.version>9.0.16</tomcat.version>
100 <name>maven.test.skip</name>
105 <docker.skip.run>true</docker.skip.run>
106 <docker.skip>true</docker.skip>
110 <id>without-IT-only</id>
118 <docker.skip.run>true</docker.skip.run>
119 <docker.skip>true</docker.skip>
123 <id>without-IT-only2</id>
126 <name>skipTests</name>
131 <docker.skip.run>true</docker.skip.run>
132 <docker.skip>true</docker.skip>
138 <skip.staging.artifacts>true</skip.staging.artifacts>
139 <docker.skip.build>false</docker.skip.build>
140 <docker.skip.tag>false</docker.skip.tag>
141 <docker.skip.push>false</docker.skip.push>
142 <docker.skip>false</docker.skip>
147 <distributionManagement>
149 <id>ecomp-releases</id>
150 <name>Clamp Release Repository</name>
151 <url>https://nexus.onap.org/content/repositories/releases/</url>
154 <id>ecomp-snapshots</id>
155 <name>Clamp Snapshot Repository</name>
156 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
157 </snapshotRepository>
160 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
162 </distributionManagement>
167 <name>onap-public</name>
168 <url>https://nexus.onap.org/content/repositories/public/</url>
170 <enabled>true</enabled>
173 <enabled>false</enabled>
177 <id>ecomp-releases</id>
178 <name>ONAP Release Repository</name>
179 <url>https://nexus.onap.org/content/repositories/releases/</url>
182 <id>ecomp-staging</id>
183 <name>ONAP Staging Repository</name>
184 <url>https://nexus.onap.org/content/repositories/staging/</url>
187 <id>ecomp-snapshots</id>
188 <name>ONAP Snapshot Repository</name>
189 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
191 <enabled>true</enabled>
194 <enabled>false</enabled>
199 <url>http://repo1.maven.org/maven2/</url>
205 <name>onap-public</name>
206 <url>https://nexus.onap.org/content/repositories/public/</url>
208 <enabled>true</enabled>
211 <enabled>false</enabled>
216 <url>http://repo1.maven.org/maven2/</url>
218 </pluginRepositories>
220 <dependencyManagement>
222 <!-- Spring Boot BOM -->
224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-dependencies</artifactId>
226 <version>${springboot.version}</version>
228 <scope>import</scope>
232 <groupId>org.apache.camel</groupId>
233 <artifactId>camel-spring-boot-dependencies</artifactId>
234 <version>${camel.version}</version>
236 <scope>import</scope>
239 </dependencyManagement>
243 <groupId>org.apache.xmlgraphics</groupId>
244 <artifactId>batik-svggen</artifactId>
245 <version>1.11</version>
248 <groupId>org.apache.xmlgraphics</groupId>
249 <artifactId>batik-svg-dom</artifactId>
250 <version>1.11</version>
253 <groupId>org.apache.xmlgraphics</groupId>
254 <artifactId>batik-transcoder</artifactId>
255 <version>1.11</version>
258 <groupId>com.att.eelf</groupId>
259 <artifactId>eelf-core</artifactId>
260 <version>${eelf.core.version}</version>
263 <groupId>org.codehaus.janino</groupId>
264 <artifactId>janino</artifactId>
265 <version>3.0.8</version>
268 <groupId>org.apache.tomcat.embed</groupId>
269 <artifactId>tomcat-embed-core</artifactId>
270 <version>${tomcat.version}</version>
273 <groupId>org.apache.tomcat.embed</groupId>
274 <artifactId>tomcat-embed-el</artifactId>
275 <version>${tomcat.version}</version>
278 <groupId>org.apache.tomcat.embed</groupId>
279 <artifactId>tomcat-embed-websocket</artifactId>
280 <version>${tomcat.version}</version>
283 <groupId>org.apache.tomcat</groupId>
284 <artifactId>tomcat-annotations-api</artifactId>
285 <version>${tomcat.version}</version>
289 <groupId>org.apache.camel</groupId>
290 <artifactId>camel-http4-starter</artifactId>
293 <groupId>org.apache.camel</groupId>
294 <artifactId>camel-spring-boot-starter</artifactId>
297 <groupId>org.apache.camel</groupId>
298 <artifactId>camel-jaxb-starter</artifactId>
301 <groupId>org.apache.camel</groupId>
302 <artifactId>camel-servlet-starter</artifactId>
305 <groupId>org.apache.camel</groupId>
306 <artifactId>camel-gson-starter</artifactId>
309 <groupId>org.apache.camel</groupId>
310 <artifactId>camel-swagger-java-starter</artifactId>
313 <groupId>javax.ws.rs</groupId>
314 <artifactId>jsr311-api</artifactId>
317 <groupId>org.slf4j</groupId>
318 <artifactId>slf4j-ext</artifactId>
321 <groupId>com.fasterxml.jackson.core</groupId>
322 <artifactId>jackson-databind</artifactId>
327 <groupId>javax.xml.bind</groupId>
328 <artifactId>jaxb-api</artifactId>
329 <version>2.3.0</version>
332 <groupId>org.glassfish.jersey.core</groupId>
333 <artifactId>jersey-common</artifactId>
334 <version>2.27</version>
336 <!-- Spring famework -->
338 <groupId>org.springframework.boot</groupId>
339 <artifactId>spring-boot-starter-web</artifactId>
342 <groupId>org.springframework.boot</groupId>
343 <artifactId>spring-boot-starter-json</artifactId>
348 <groupId>org.springframework.boot</groupId>
349 <artifactId>spring-boot-starter-tomcat</artifactId>
352 <groupId>org.springframework</groupId>
353 <artifactId>spring-jdbc</artifactId>
356 <groupId>org.springframework.boot</groupId>
357 <artifactId>spring-boot-starter-security</artifactId>
360 <groupId>org.springframework.boot</groupId>
361 <artifactId>spring-boot-autoconfigure</artifactId>
364 <groupId>org.springframework.boot</groupId>
365 <artifactId>spring-boot-starter-test</artifactId>
369 <groupId>com.vaadin.external.google</groupId>
370 <artifactId>android-json</artifactId>
375 <groupId>org.springframework.boot</groupId>
376 <artifactId>spring-boot-starter-data-jpa</artifactId>
378 <!-- Others dependencies -->
380 <groupId>org.onap.aaf.authz</groupId>
381 <artifactId>aaf-cadi-aaf</artifactId>
382 <version>2.1.10</version>
385 <groupId>javax.servlet</groupId>
386 <artifactId>servlet-api</artifactId>
391 <groupId>ch.qos.logback</groupId>
392 <artifactId>logback-core</artifactId>
393 <version>1.2.3</version>
396 <groupId>ch.qos.logback</groupId>
397 <artifactId>logback-classic</artifactId>
398 <version>1.2.3</version>
401 <groupId>commons-dbcp</groupId>
402 <artifactId>commons-dbcp</artifactId>
403 <version>1.4</version>
406 <groupId>commons-io</groupId>
407 <artifactId>commons-io</artifactId>
408 <version>2.6</version>
411 <groupId>com.googlecode.json-simple</groupId>
412 <artifactId>json-simple</artifactId>
413 <version>1.1.1</version>
416 <groupId>org.apache.commons</groupId>
417 <artifactId>commons-vfs2</artifactId>
418 <version>2.2</version>
421 <groupId>joda-time</groupId>
422 <artifactId>joda-time</artifactId>
425 <groupId>org.slf4j</groupId>
426 <artifactId>slf4j-api</artifactId>
429 <groupId>javax.ws.rs</groupId>
430 <artifactId>javax.ws.rs-api</artifactId>
431 <version>2.0</version>
434 <groupId>junit</groupId>
435 <artifactId>junit</artifactId>
438 <groupId>javax.transaction</groupId>
439 <artifactId>jta</artifactId>
440 <version>1.1</version>
443 <groupId>javax.persistence</groupId>
444 <artifactId>persistence-api</artifactId>
445 <version>1.0.2</version>
448 <groupId>org.onap.policy.engine</groupId>
449 <artifactId>PolicyEngineAPI</artifactId>
450 <version>1.3.3</version>
453 <groupId>com.google.guava</groupId>
454 <artifactId>guava</artifactId>
457 <artifactId>log4j</artifactId>
458 <groupId>log4j</groupId>
461 <groupId>org.slf4j</groupId>
462 <artifactId>slf4j-log4j12</artifactId>
465 <artifactId>apache-log4j-extras</artifactId>
466 <groupId>log4j</groupId>
469 <groupId>mysql</groupId>
470 <artifactId>mysql-connector-java</artifactId>
473 <groupId>commons-io</groupId>
474 <artifactId>commons-io</artifactId>
477 <artifactId>grizzly-http-server</artifactId>
478 <groupId>org.glassfish.grizzly</groupId>
481 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
482 <artifactId>dmaapClient</artifactId>
485 <groupId>org.onap.policy.common</groupId>
486 <artifactId>integrity-monitor</artifactId>
489 <groupId>org.onap.policy.common</groupId>
490 <artifactId>integrity-audit</artifactId>
493 <groupId>com.fasterxml.jackson.core</groupId>
494 <artifactId>jackson-databind</artifactId>
497 <groupId>org.onap.aaf.cadi</groupId>
498 <artifactId>cadi-aaf</artifactId>
501 <groupId>javax.jms</groupId>
502 <artifactId>jms</artifactId>
505 <groupId>commons-fileupload</groupId>
506 <artifactId>commons-fileupload</artifactId>
509 <groupId>com.att.research.xacml</groupId>
510 <artifactId>xacml</artifactId>
515 <groupId>org.onap.policy.common</groupId>
516 <artifactId>ONAP-Logging</artifactId>
517 <version>1.2.3</version>
520 <artifactId>log4j</artifactId>
521 <groupId>log4j</groupId>
524 <groupId>org.slf4j</groupId>
525 <artifactId>slf4j-log4j12</artifactId>
528 <artifactId>apache-log4j-extras</artifactId>
529 <groupId>log4j</groupId>
534 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
535 <artifactId>policy-yaml</artifactId>
536 <version>1.2.3</version>
539 <artifactId>log4j</artifactId>
540 <groupId>log4j</groupId>
543 <groupId>org.slf4j</groupId>
544 <artifactId>slf4j-log4j12</artifactId>
547 <artifactId>apache-log4j-extras</artifactId>
548 <groupId>log4j</groupId>
553 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
554 <artifactId>sdc</artifactId>
555 <version>1.2.3</version>
558 <artifactId>log4j</artifactId>
559 <groupId>log4j</groupId>
562 <groupId>org.slf4j</groupId>
563 <artifactId>slf4j-log4j12</artifactId>
566 <artifactId>apache-log4j-extras</artifactId>
567 <groupId>log4j</groupId>
572 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
573 <artifactId>aai</artifactId>
574 <version>1.2.3</version>
577 <artifactId>log4j</artifactId>
578 <groupId>log4j</groupId>
581 <groupId>org.slf4j</groupId>
582 <artifactId>slf4j-log4j12</artifactId>
585 <artifactId>apache-log4j-extras</artifactId>
586 <groupId>log4j</groupId>
591 <groupId>org.apache.commons</groupId>
592 <artifactId>commons-csv</artifactId>
593 <version>1.3</version>
595 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
597 <groupId>org.codehaus.plexus</groupId>
598 <artifactId>plexus-utils</artifactId>
599 <version>3.0.24</version>
602 <groupId>org.jboss.spec.javax.ws.rs</groupId>
603 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
604 <version>1.0.1.Final</version>
607 <groupId>com.google.guava</groupId>
608 <artifactId>guava</artifactId>
609 <version>27.0-jre</version>
611 <!-- Remove the MYSQL connector and replace it by Mariadb -->
613 <groupId>org.mariadb.jdbc</groupId>
614 <artifactId>mariadb-java-client</artifactId>
615 <version>2.2.1</version>
617 <!-- For SDC Controller -->
619 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
620 <artifactId>sdc-distribution-client</artifactId>
621 <version>1.3.0</version>
624 <groupId>org.onap.sdc.sdc-tosca</groupId>
625 <artifactId>sdc-tosca</artifactId>
626 <version>1.5.1</version>
630 <groupId>org.assertj</groupId>
631 <artifactId>assertj-core</artifactId>
632 <version>3.10.0</version>
636 <groupId>org.mockito</groupId>
637 <artifactId>mockito-core</artifactId>
638 <version>1.10.19</version>
644 <finalName>clamp</finalName>
648 <directory>src/test/resources</directory>
650 <exclude>**/*.jks</exclude>
651 <exclude>**/*.csar</exclude>
653 <filtering>true</filtering>
656 <directory>src/test/resources/https</directory>
658 <include>**.jks</include>
660 <filtering>false</filtering>
661 <targetPath>https</targetPath>
664 <directory>src/test/resources/example/sdc</directory>
666 <include>**.csar</include>
668 <filtering>false</filtering>
669 <targetPath>example/sdc</targetPath>
672 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
674 <directory>src/test/javascript</directory>
676 <include>**/**.json</include>
678 <filtering>true</filtering>
679 <targetPath>${project.build.directory}/clamp-ui</targetPath>
682 <directory>src/main/resources/META-INF/resources/designer</directory>
683 <filtering>false</filtering>
684 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
688 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
689 Otherwise they will be broken and unreadable
692 <directory>src/main/resources</directory>
693 <filtering>true</filtering>
695 <exclude>clds/aaf/**</exclude>
699 <directory>src/main/resources</directory>
700 <filtering>false</filtering>
702 <include>clds/aaf/**</include>
706 <directory>src/main/docker</directory>
708 <include>**/*</include>
710 <filtering>true</filtering>
716 <groupId>de.jpdigital</groupId>
717 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
718 <version>2.2.0</version>
721 <groupId>javax.xml.bind</groupId>
722 <artifactId>jaxb-api</artifactId>
723 <version>2.3.0</version>
728 <phase>process-classes</phase>
733 <packages><param>org.onap.clamp.dao.model</param></packages>
734 <dialects><param>MARIADB53</param></dialects>
735 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
736 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
737 <!-- <createDropStatements>true</createDropStatements> -->
738 <omitDialectFromFileName>true</omitDialectFromFileName>
744 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
745 generate a list of .adoc files containing the APIs info in more structured
748 <groupId>io.github.swagger2markup</groupId>
749 <artifactId>swagger2markup-maven-plugin</artifactId>
750 <version>1.3.3</version>
753 <groupId>io.github.swagger2markup</groupId>
754 <artifactId>swagger2markup-import-files-ext</artifactId>
755 <version>1.3.3</version>
758 <groupId>io.github.swagger2markup</groupId>
759 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
760 <version>1.3.3</version>
764 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
765 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
767 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
772 <phase>post-integration-test</phase>
774 <goal>convertSwagger2markup</goal>
780 <!-- Run the generated asciidoc through Asciidoctor to generate other
781 documentation types, such as PDFs or HTML5 -->
783 <groupId>org.asciidoctor</groupId>
784 <artifactId>asciidoctor-maven-plugin</artifactId>
785 <version>1.5.7.1</version>
788 <groupId>org.asciidoctor</groupId>
789 <artifactId>asciidoctorj-pdf</artifactId>
790 <version>1.5.0-alpha.10.1</version>
794 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
795 <sourceDocumentName>swagger.adoc</sourceDocumentName>
797 <doctype>book</doctype>
799 <toclevels>3</toclevels>
804 <generated>${project.build.directory}/asciidoc/generated</generated>
811 <phase>post-integration-test</phase>
813 <goal>process-asciidoc</goal>
816 <backend>html5</backend>
817 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
818 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
823 <phase>post-integration-test</phase>
825 <goal>process-asciidoc</goal>
828 <backend>pdf</backend>
829 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
835 <groupId>org.codehaus.groovy.maven</groupId>
836 <artifactId>gmaven-plugin</artifactId>
837 <version>1.0</version>
840 <phase>validate</phase>
845 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
851 <groupId>org.apache.maven.plugins</groupId>
852 <artifactId>maven-jar-plugin</artifactId>
853 <version>3.0.2</version>
856 <id>jar-with-only-classes</id>
857 <phase>package</phase>
862 <classifier>classes</classifier>
864 <include>org/**</include>
871 <groupId>org.codehaus.mojo</groupId>
872 <artifactId>build-helper-maven-plugin</artifactId>
873 <version>3.0.0</version>
877 <goal>attach-artifact</goal>
879 <phase>package</phase>
883 <file>${project.build.directory}/clamp-classes.jar</file>
885 <classifier>classes</classifier>
891 <id>reserve-port-for-tests</id>
892 <phase>process-resources</phase>
894 <goal>reserve-network-port</goal>
898 <portName>docker.mariadb.port.host</portName>
899 <portName>docker.http-cache.port.host</portName>
900 <portName>clamp.it.tests.http-redirected</portName>
901 <portName>clamp.it.tests.https</portName>
902 <portName>clamp.it.tests.http</portName>
910 <groupId>org.springframework.boot</groupId>
911 <artifactId>spring-boot-maven-plugin</artifactId>
912 <!-- Temporary fix -->
913 <version>1.5.13.RELEASE</version>
914 <!-- <version>${springboot.version}</version> -->
918 <goal>repackage</goal>
920 <phase>package</phase>
925 <groupId>org.sonatype.plugins</groupId>
926 <artifactId>nexus-staging-maven-plugin</artifactId>
927 <version>1.6.7</version>
928 <extensions>true</extensions>
930 <nexusUrl>https://nexus.onap.org</nexusUrl>
931 <stagingProfileId>176c31dfe190a</stagingProfileId>
932 <serverId>ecomp-staging</serverId>
933 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
938 <groupId>org.apache.maven.plugins</groupId>
939 <artifactId>maven-surefire-plugin</artifactId>
940 <version>2.22.1</version>
942 <forkCount>1C</forkCount>
943 <reuseForks>true</reuseForks>
944 <useSystemClassLoader>false</useSystemClassLoader>
945 <argLine>${surefireArgLine}</argLine>
950 <groupId>org.apache.maven.plugins</groupId>
951 <artifactId>maven-failsafe-plugin</artifactId>
952 <version>2.22.1</version>
955 <id>integration-tests</id>
957 <goal>integration-test</goal>
961 <additionalClasspathElements>
962 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
963 </additionalClasspathElements>
965 <include>**/*ItCase.java</include>
967 <forkCount>1</forkCount>
968 <reuseForks>true</reuseForks>
969 <useSystemClassLoader>false</useSystemClassLoader>
970 <argLine>${failsafeArgLine}</argLine>
977 <groupId>io.fabric8</groupId>
978 <artifactId>docker-maven-plugin</artifactId>
979 <version>0.27.2</version>
982 <groupId>org.apache.httpcomponents</groupId>
983 <artifactId>httpclient</artifactId>
984 <version>4.5.5</version>
988 <verbose>true</verbose>
989 <apiVersion>1.35</apiVersion>
992 <name>library/mariadb:10.3.12</name>
993 <alias>mariadb</alias>
996 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
998 <hostname>mariadb</hostname>
1001 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
1002 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
1006 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
1010 <port>${docker.mariadb.port.host}:3306</port>
1015 <name>library/python:2-slim</name>
1016 <alias>python</alias>
1018 <hostname>python</hostname>
1021 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1022 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1035 <port>${docker.http-cache.port.host}:8080</port>
1037 <workingDir>/usr/src/http-cache-app</workingDir>
1039 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1044 <name>onap/clamp</name>
1045 <alias>onap-clamp</alias>
1050 <cleanup>true</cleanup>
1053 <tag>${project.docker.latesttagtimestamp.version}</tag>
1054 <tag>${project.docker.latesttag.version}</tag>
1056 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1058 <dockerFile>Dockerfile</dockerFile>
1060 <descriptor>assembly/clamp-files.xml</descriptor>
1061 <name>onap-clamp</name>
1066 <name>onap/clamp-dashboard-logstash</name>
1067 <alias>onap-clamp-dashboard-logstash</alias>
1072 <cleanup>true</cleanup>
1075 <tag>${project.docker.latesttagtimestamp.version}</tag>
1076 <tag>${project.docker.latesttag.version}</tag>
1078 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
1082 <name>onap/clamp-dashboard-kibana</name>
1083 <alias>onap-clamp-dashboard-kibana</alias>
1088 <cleanup>true</cleanup>
1091 <tag>${project.docker.latesttagtimestamp.version}</tag>
1092 <tag>${project.docker.latesttag.version}</tag>
1094 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1102 <id>generate-images</id>
1103 <phase>install</phase>
1109 <id>push-images</id>
1110 <phase>deploy</phase>
1116 <id>docker-start-for-it</id>
1117 <phase>pre-integration-test</phase>
1123 <id>docker-stop-for-it</id>
1124 <phase>post-integration-test</phase>
1133 <groupId>org.jacoco</groupId>
1134 <artifactId>jacoco-maven-plugin</artifactId>
1135 <version>0.8.2</version>
1137 <dumpOnExit>true</dumpOnExit>
1138 <append>true</append>
1140 <include>org.onap.clamp.*</include>
1145 <id>pre-unit-test</id>
1147 <goal>prepare-agent</goal>
1150 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1151 <propertyName>surefireArgLine</propertyName>
1152 <!-- <append>true</append> -->
1156 <id>pre-integration-test</id>
1157 <phase>pre-integration-test</phase>
1159 <goal>prepare-agent</goal>
1162 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1163 <propertyName>failsafeArgLine</propertyName>
1164 <!-- <append>true</append> -->
1171 <phase>post-integration-test</phase>
1174 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1175 <directory>${project.build.directory}/coverage-reports</directory>
1177 <include>*.exec</include>
1181 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1187 <!-- This plugin will be useful when we will have multi-modules project -->
1189 <groupId>org.codehaus.mojo</groupId>
1190 <artifactId>versions-maven-plugin</artifactId>
1191 <version>1.3.1</version>
1195 <groupId>com.github.eirslett</groupId>
1196 <artifactId>frontend-maven-plugin</artifactId>
1197 <version>1.6</version>
1199 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1200 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1201 <skip>${maven.test.skip}</skip>
1206 <id>install_node_and_npm</id>
1208 <goal>install-node-and-npm</goal>
1212 <nodeVersion>v8.11.1</nodeVersion>
1213 <npmVersion>5.6.0</npmVersion>
1217 <id>npm_install</id>
1223 <arguments>install</arguments>
1233 <arguments>run-script test:coverage</arguments>