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.0-SNAPSHOT</version>
31 <groupId>org.onap.oparent</groupId>
32 <artifactId>oparent</artifactId>
33 <version>1.2.3</version>
37 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
39 By Default "mvn clean install" command will execute also the unit tests
40 and the integration tests. The integration tests require a docker engine running.
42 If you want to skip the integration test you can by doing:
43 "mvn clean install -DskipITs=true"
45 For Spring it's possible to specify the application.properties location
46 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
48 The application.properties contains the location of the CLAMP parameters files:
49 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
50 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
55 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56 <clamp.project.version>${project.version}</clamp.project.version>
57 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
58 <maven.compiler.source>1.8</maven.compiler.source>
59 <maven.compiler.target>1.8</maven.compiler.target>
60 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
63 <project.scm.id>git-server</project.scm.id>
64 <java.version>1.8</java.version>
66 <eelf.core.version>1.0.0</eelf.core.version>
67 <camel.version>2.22.1</camel.version>
68 <springboot.version>2.0.6.RELEASE</springboot.version>
70 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
71 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
72 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
73 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
74 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
75 <sonar.projectVersion>${project.version}</sonar.projectVersion>
76 <!-- Enable language to disable javascript analysis -->
77 <sonar.language>java</sonar.language>
78 <!-- Parameters for Javascript coverage
79 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
80 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
82 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
84 <docker.push.registry>localhost:5000</docker.push.registry>
85 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
86 <docker.skip.build>true</docker.skip.build>
87 <docker.skip.push>true</docker.skip.push>
88 <docker.skip.tag>true</docker.skip.tag>
89 <skip.staging.artifacts>false</skip.staging.artifacts>
90 <python.http.proxy.param/>
91 <tomcat.version>8.5.34</tomcat.version>
99 <name>maven.test.skip</name>
104 <docker.skip.run>true</docker.skip.run>
105 <docker.skip>true</docker.skip>
109 <id>without-IT-only</id>
117 <docker.skip.run>true</docker.skip.run>
118 <docker.skip>true</docker.skip>
122 <id>without-IT-only2</id>
125 <name>skipTests</name>
130 <docker.skip.run>true</docker.skip.run>
131 <docker.skip>true</docker.skip>
137 <skip.staging.artifacts>true</skip.staging.artifacts>
138 <docker.skip.build>false</docker.skip.build>
139 <docker.skip.tag>false</docker.skip.tag>
140 <docker.skip.push>false</docker.skip.push>
141 <docker.skip>false</docker.skip>
146 <distributionManagement>
148 <id>ecomp-releases</id>
149 <name>Clamp Release Repository</name>
150 <url>https://nexus.onap.org/content/repositories/releases/</url>
153 <id>ecomp-snapshots</id>
154 <name>Clamp Snapshot Repository</name>
155 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
156 </snapshotRepository>
159 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
161 </distributionManagement>
166 <name>onap-public</name>
167 <url>https://nexus.onap.org/content/repositories/public/</url>
169 <enabled>true</enabled>
172 <enabled>false</enabled>
176 <id>ecomp-releases</id>
177 <name>ONAP Release Repository</name>
178 <url>https://nexus.onap.org/content/repositories/releases/</url>
181 <id>ecomp-staging</id>
182 <name>ONAP Staging Repository</name>
183 <url>https://nexus.onap.org/content/repositories/staging/</url>
186 <id>ecomp-snapshots</id>
187 <name>ONAP Snapshot Repository</name>
188 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
190 <enabled>true</enabled>
193 <enabled>false</enabled>
198 <url>http://repo1.maven.org/maven2/</url>
204 <name>onap-public</name>
205 <url>https://nexus.onap.org/content/repositories/public/</url>
207 <enabled>true</enabled>
210 <enabled>false</enabled>
215 <url>http://repo1.maven.org/maven2/</url>
217 </pluginRepositories>
219 <dependencyManagement>
221 <!-- Spring Boot BOM -->
223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-dependencies</artifactId>
225 <version>${springboot.version}</version>
227 <scope>import</scope>
231 <groupId>org.apache.camel</groupId>
232 <artifactId>camel-spring-boot-dependencies</artifactId>
233 <version>${camel.version}</version>
235 <scope>import</scope>
238 </dependencyManagement>
242 <groupId>org.apache.xmlgraphics</groupId>
243 <artifactId>batik-svggen</artifactId>
244 <version>1.11</version>
247 <groupId>org.apache.xmlgraphics</groupId>
248 <artifactId>batik-svg-dom</artifactId>
249 <version>1.11</version>
252 <groupId>org.apache.xmlgraphics</groupId>
253 <artifactId>batik-transcoder</artifactId>
254 <version>1.11</version>
257 <groupId>com.att.eelf</groupId>
258 <artifactId>eelf-core</artifactId>
259 <version>${eelf.core.version}</version>
262 <groupId>org.codehaus.janino</groupId>
263 <artifactId>janino</artifactId>
264 <version>3.0.8</version>
267 <groupId>org.apache.tomcat.embed</groupId>
268 <artifactId>tomcat-embed-core</artifactId>
269 <version>${tomcat.version}</version>
272 <groupId>org.apache.tomcat.embed</groupId>
273 <artifactId>tomcat-embed-el</artifactId>
274 <version>${tomcat.version}</version>
277 <groupId>org.apache.tomcat.embed</groupId>
278 <artifactId>tomcat-embed-websocket</artifactId>
279 <version>${tomcat.version}</version>
282 <groupId>org.apache.tomcat</groupId>
283 <artifactId>tomcat-annotations-api</artifactId>
284 <version>${tomcat.version}</version>
288 <groupId>org.apache.camel</groupId>
289 <artifactId>camel-spring-boot-starter</artifactId>
292 <groupId>org.apache.camel</groupId>
293 <artifactId>camel-jaxb-starter</artifactId>
296 <groupId>org.apache.camel</groupId>
297 <artifactId>camel-servlet-starter</artifactId>
300 <groupId>org.apache.camel</groupId>
301 <artifactId>camel-gson-starter</artifactId>
304 <groupId>org.apache.camel</groupId>
305 <artifactId>camel-swagger-java-starter</artifactId>
308 <groupId>javax.ws.rs</groupId>
309 <artifactId>jsr311-api</artifactId>
312 <groupId>org.slf4j</groupId>
313 <artifactId>slf4j-ext</artifactId>
316 <groupId>com.fasterxml.jackson.core</groupId>
317 <artifactId>jackson-databind</artifactId>
322 <groupId>javax.xml.bind</groupId>
323 <artifactId>jaxb-api</artifactId>
324 <version>2.3.0</version>
327 <groupId>org.glassfish.jersey.core</groupId>
328 <artifactId>jersey-common</artifactId>
329 <version>2.27</version>
331 <!-- Spring famework -->
333 <groupId>org.springframework.boot</groupId>
334 <artifactId>spring-boot-starter-web</artifactId>
337 <groupId>org.springframework.boot</groupId>
338 <artifactId>spring-boot-starter-json</artifactId>
343 <groupId>org.springframework.boot</groupId>
344 <artifactId>spring-boot-starter-tomcat</artifactId>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-jdbc</artifactId>
351 <groupId>org.springframework.boot</groupId>
352 <artifactId>spring-boot-starter-security</artifactId>
355 <groupId>org.springframework.boot</groupId>
356 <artifactId>spring-boot-autoconfigure</artifactId>
359 <groupId>org.springframework.boot</groupId>
360 <artifactId>spring-boot-starter-test</artifactId>
364 <groupId>com.vaadin.external.google</groupId>
365 <artifactId>android-json</artifactId>
370 <groupId>org.springframework.boot</groupId>
371 <artifactId>spring-boot-starter-data-jpa</artifactId>
373 <!-- Others dependencies -->
375 <groupId>org.onap.aaf.authz</groupId>
376 <artifactId>aaf-cadi-aaf</artifactId>
377 <version>2.1.1</version>
380 <groupId>javax.servlet</groupId>
381 <artifactId>servlet-api</artifactId>
386 <groupId>ch.qos.logback</groupId>
387 <artifactId>logback-core</artifactId>
388 <version>1.2.3</version>
391 <groupId>ch.qos.logback</groupId>
392 <artifactId>logback-classic</artifactId>
393 <version>1.2.3</version>
396 <groupId>commons-dbcp</groupId>
397 <artifactId>commons-dbcp</artifactId>
398 <version>1.4</version>
401 <groupId>commons-io</groupId>
402 <artifactId>commons-io</artifactId>
403 <version>2.6</version>
406 <groupId>com.googlecode.json-simple</groupId>
407 <artifactId>json-simple</artifactId>
410 <groupId>org.apache.commons</groupId>
411 <artifactId>commons-vfs2</artifactId>
412 <version>2.2</version>
415 <groupId>joda-time</groupId>
416 <artifactId>joda-time</artifactId>
419 <groupId>org.slf4j</groupId>
420 <artifactId>slf4j-api</artifactId>
423 <groupId>javax.ws.rs</groupId>
424 <artifactId>javax.ws.rs-api</artifactId>
425 <version>2.0</version>
428 <groupId>junit</groupId>
429 <artifactId>junit</artifactId>
432 <groupId>javax.transaction</groupId>
433 <artifactId>jta</artifactId>
434 <version>1.1</version>
437 <groupId>javax.persistence</groupId>
438 <artifactId>persistence-api</artifactId>
439 <version>1.0.2</version>
442 <groupId>org.onap.policy.engine</groupId>
443 <artifactId>PolicyEngineAPI</artifactId>
444 <version>1.3.3</version>
447 <groupId>com.google.guava</groupId>
448 <artifactId>guava</artifactId>
451 <artifactId>log4j</artifactId>
452 <groupId>log4j</groupId>
455 <groupId>org.slf4j</groupId>
456 <artifactId>slf4j-log4j12</artifactId>
459 <artifactId>apache-log4j-extras</artifactId>
460 <groupId>log4j</groupId>
463 <groupId>mysql</groupId>
464 <artifactId>mysql-connector-java</artifactId>
467 <groupId>commons-io</groupId>
468 <artifactId>commons-io</artifactId>
471 <artifactId>grizzly-http-server</artifactId>
472 <groupId>org.glassfish.grizzly</groupId>
475 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
476 <artifactId>dmaapClient</artifactId>
479 <groupId>org.onap.policy.common</groupId>
480 <artifactId>integrity-monitor</artifactId>
483 <groupId>org.onap.policy.common</groupId>
484 <artifactId>integrity-audit</artifactId>
487 <groupId>com.fasterxml.jackson.core</groupId>
488 <artifactId>jackson-databind</artifactId>
491 <groupId>org.onap.aaf.cadi</groupId>
492 <artifactId>cadi-aaf</artifactId>
495 <groupId>javax.jms</groupId>
496 <artifactId>jms</artifactId>
499 <groupId>commons-fileupload</groupId>
500 <artifactId>commons-fileupload</artifactId>
503 <groupId>com.att.research.xacml</groupId>
504 <artifactId>xacml</artifactId>
509 <groupId>org.onap.policy.common</groupId>
510 <artifactId>ONAP-Logging</artifactId>
511 <version>1.2.3</version>
514 <artifactId>log4j</artifactId>
515 <groupId>log4j</groupId>
518 <groupId>org.slf4j</groupId>
519 <artifactId>slf4j-log4j12</artifactId>
522 <artifactId>apache-log4j-extras</artifactId>
523 <groupId>log4j</groupId>
528 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
529 <artifactId>policy-yaml</artifactId>
530 <version>1.2.3</version>
533 <artifactId>log4j</artifactId>
534 <groupId>log4j</groupId>
537 <groupId>org.slf4j</groupId>
538 <artifactId>slf4j-log4j12</artifactId>
541 <artifactId>apache-log4j-extras</artifactId>
542 <groupId>log4j</groupId>
547 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
548 <artifactId>sdc</artifactId>
549 <version>1.2.3</version>
552 <artifactId>log4j</artifactId>
553 <groupId>log4j</groupId>
556 <groupId>org.slf4j</groupId>
557 <artifactId>slf4j-log4j12</artifactId>
560 <artifactId>apache-log4j-extras</artifactId>
561 <groupId>log4j</groupId>
566 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
567 <artifactId>aai</artifactId>
568 <version>1.2.3</version>
571 <artifactId>log4j</artifactId>
572 <groupId>log4j</groupId>
575 <groupId>org.slf4j</groupId>
576 <artifactId>slf4j-log4j12</artifactId>
579 <artifactId>apache-log4j-extras</artifactId>
580 <groupId>log4j</groupId>
585 <groupId>org.apache.commons</groupId>
586 <artifactId>commons-csv</artifactId>
587 <version>1.3</version>
589 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
591 <groupId>org.codehaus.plexus</groupId>
592 <artifactId>plexus-utils</artifactId>
593 <version>3.0.24</version>
596 <groupId>org.jboss.spec.javax.ws.rs</groupId>
597 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
598 <version>1.0.1.Final</version>
601 <groupId>com.google.guava</groupId>
602 <artifactId>guava</artifactId>
604 <!-- Remove the MYSQL connector and replace it by Mariadb -->
606 <groupId>org.mariadb.jdbc</groupId>
607 <artifactId>mariadb-java-client</artifactId>
608 <version>2.2.1</version>
610 <!-- For SDC Controller -->
612 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
613 <artifactId>sdc-distribution-client</artifactId>
614 <version>1.3.0</version>
617 <groupId>org.onap.sdc.sdc-tosca</groupId>
618 <artifactId>sdc-tosca</artifactId>
619 <version>1.5.0</version>
623 <groupId>org.assertj</groupId>
624 <artifactId>assertj-core</artifactId>
625 <version>3.10.0</version>
629 <groupId>org.mockito</groupId>
630 <artifactId>mockito-core</artifactId>
631 <version>1.10.19</version>
637 <finalName>clamp</finalName>
641 <directory>src/test/resources</directory>
643 <exclude>**/*.jks</exclude>
644 <exclude>**/*.csar</exclude>
646 <filtering>true</filtering>
649 <directory>src/test/resources/https</directory>
651 <include>**.jks</include>
653 <filtering>false</filtering>
654 <targetPath>https</targetPath>
657 <directory>src/test/resources/example/sdc</directory>
659 <include>**.csar</include>
661 <filtering>false</filtering>
662 <targetPath>example/sdc</targetPath>
665 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
667 <directory>src/test/javascript</directory>
669 <include>**/**.json</include>
671 <filtering>true</filtering>
672 <targetPath>${project.build.directory}/clamp-ui</targetPath>
675 <directory>src/main/resources/META-INF/resources/designer</directory>
676 <filtering>false</filtering>
677 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
681 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
682 Otherwise they will be broken and unreadable
685 <directory>src/main/resources</directory>
686 <filtering>true</filtering>
688 <exclude>clds/aaf/**</exclude>
692 <directory>src/main/resources</directory>
693 <filtering>false</filtering>
695 <include>clds/aaf/**</include>
699 <directory>src/main/docker</directory>
701 <include>**/*</include>
703 <filtering>true</filtering>
709 <groupId>de.jpdigital</groupId>
710 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
711 <version>2.2.0</version>
714 <groupId>javax.xml.bind</groupId>
715 <artifactId>jaxb-api</artifactId>
716 <version>2.3.0</version>
721 <phase>process-classes</phase>
726 <packages><param>org.onap.clamp.dao.model</param></packages>
727 <dialects><param>MARIADB53</param></dialects>
728 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
729 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
730 <!-- <createDropStatements>true</createDropStatements> -->
731 <omitDialectFromFileName>true</omitDialectFromFileName>
737 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
738 generate a list of .adoc files containing the APIs info in more structured
741 <groupId>io.github.swagger2markup</groupId>
742 <artifactId>swagger2markup-maven-plugin</artifactId>
743 <version>1.3.3</version>
746 <groupId>io.github.swagger2markup</groupId>
747 <artifactId>swagger2markup-import-files-ext</artifactId>
748 <version>1.3.3</version>
751 <groupId>io.github.swagger2markup</groupId>
752 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
753 <version>1.3.3</version>
757 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
758 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
760 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
765 <phase>post-integration-test</phase>
767 <goal>convertSwagger2markup</goal>
773 <!-- Run the generated asciidoc through Asciidoctor to generate other
774 documentation types, such as PDFs or HTML5 -->
776 <groupId>org.asciidoctor</groupId>
777 <artifactId>asciidoctor-maven-plugin</artifactId>
778 <version>1.5.7.1</version>
781 <groupId>org.asciidoctor</groupId>
782 <artifactId>asciidoctorj-pdf</artifactId>
783 <version>1.5.0-alpha.10.1</version>
787 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
788 <sourceDocumentName>swagger.adoc</sourceDocumentName>
790 <doctype>book</doctype>
792 <toclevels>3</toclevels>
797 <generated>${project.build.directory}/asciidoc/generated</generated>
804 <phase>post-integration-test</phase>
806 <goal>process-asciidoc</goal>
809 <backend>html5</backend>
810 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
811 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
816 <phase>post-integration-test</phase>
818 <goal>process-asciidoc</goal>
821 <backend>pdf</backend>
822 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
828 <groupId>org.codehaus.groovy.maven</groupId>
829 <artifactId>gmaven-plugin</artifactId>
830 <version>1.0</version>
833 <phase>validate</phase>
838 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
844 <groupId>org.apache.maven.plugins</groupId>
845 <artifactId>maven-jar-plugin</artifactId>
846 <version>3.0.2</version>
849 <id>jar-with-only-classes</id>
850 <phase>package</phase>
855 <classifier>classes</classifier>
857 <include>org/**</include>
864 <groupId>org.codehaus.mojo</groupId>
865 <artifactId>build-helper-maven-plugin</artifactId>
866 <version>3.0.0</version>
870 <goal>attach-artifact</goal>
872 <phase>package</phase>
876 <file>${project.build.directory}/clamp-classes.jar</file>
878 <classifier>classes</classifier>
884 <id>reserve-port-for-tests</id>
885 <phase>process-resources</phase>
887 <goal>reserve-network-port</goal>
891 <portName>docker.mariadb.port.host</portName>
892 <portName>docker.http-cache.port.host</portName>
893 <portName>clamp.it.tests.http-redirected</portName>
894 <portName>clamp.it.tests.https</portName>
895 <portName>clamp.it.tests.http</portName>
903 <groupId>org.springframework.boot</groupId>
904 <artifactId>spring-boot-maven-plugin</artifactId>
905 <!-- Temporary fix -->
906 <version>1.5.13.RELEASE</version>
907 <!-- <version>${springboot.version}</version> -->
911 <goal>repackage</goal>
913 <phase>package</phase>
918 <groupId>org.sonatype.plugins</groupId>
919 <artifactId>nexus-staging-maven-plugin</artifactId>
920 <version>1.6.7</version>
921 <extensions>true</extensions>
923 <nexusUrl>https://nexus.onap.org</nexusUrl>
924 <stagingProfileId>176c31dfe190a</stagingProfileId>
925 <serverId>ecomp-staging</serverId>
926 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
931 <groupId>org.apache.maven.plugins</groupId>
932 <artifactId>maven-surefire-plugin</artifactId>
933 <version>2.22.1</version>
935 <forkCount>1C</forkCount>
936 <reuseForks>true</reuseForks>
937 <useSystemClassLoader>false</useSystemClassLoader>
938 <argLine>${surefireArgLine}</argLine>
943 <groupId>org.apache.maven.plugins</groupId>
944 <artifactId>maven-failsafe-plugin</artifactId>
945 <version>2.22.1</version>
948 <id>integration-tests</id>
950 <goal>integration-test</goal>
954 <additionalClasspathElements>
955 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
956 </additionalClasspathElements>
958 <include>**/*ItCase.java</include>
960 <forkCount>1</forkCount>
961 <reuseForks>true</reuseForks>
962 <useSystemClassLoader>false</useSystemClassLoader>
963 <argLine>${failsafeArgLine}</argLine>
970 <groupId>io.fabric8</groupId>
971 <artifactId>docker-maven-plugin</artifactId>
972 <version>0.27.2</version>
975 <groupId>org.apache.httpcomponents</groupId>
976 <artifactId>httpclient</artifactId>
977 <version>4.5.5</version>
981 <verbose>true</verbose>
982 <apiVersion>1.35</apiVersion>
985 <name>library/mariadb:10.3.12</name>
986 <alias>mariadb</alias>
989 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
991 <hostname>mariadb</hostname>
994 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
995 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
999 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
1003 <port>${docker.mariadb.port.host}:3306</port>
1008 <name>library/python:2-slim</name>
1009 <alias>python</alias>
1011 <hostname>python</hostname>
1014 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1015 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1028 <port>${docker.http-cache.port.host}:8080</port>
1030 <workingDir>/usr/src/http-cache-app</workingDir>
1032 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1037 <name>onap/clamp</name>
1038 <alias>onap-clamp</alias>
1043 <cleanup>true</cleanup>
1046 <tag>${project.docker.latesttagtimestamp.version}</tag>
1047 <tag>${project.docker.latesttag.version}</tag>
1049 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1051 <dockerFile>Dockerfile</dockerFile>
1053 <descriptor>assembly/clamp-files.xml</descriptor>
1054 <name>onap-clamp</name>
1059 <name>onap/clamp-dashboard-logstash</name>
1060 <alias>onap-clamp-dashboard-logstash</alias>
1065 <cleanup>true</cleanup>
1068 <tag>${project.docker.latesttagtimestamp.version}</tag>
1069 <tag>${project.docker.latesttag.version}</tag>
1071 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
1075 <name>onap/clamp-dashboard-kibana</name>
1076 <alias>onap-clamp-dashboard-kibana</alias>
1081 <cleanup>true</cleanup>
1084 <tag>${project.docker.latesttagtimestamp.version}</tag>
1085 <tag>${project.docker.latesttag.version}</tag>
1087 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1095 <id>generate-images</id>
1096 <phase>install</phase>
1102 <id>push-images</id>
1103 <phase>deploy</phase>
1109 <id>docker-start-for-it</id>
1110 <phase>pre-integration-test</phase>
1116 <id>docker-stop-for-it</id>
1117 <phase>post-integration-test</phase>
1126 <groupId>org.jacoco</groupId>
1127 <artifactId>jacoco-maven-plugin</artifactId>
1128 <version>0.8.2</version>
1130 <dumpOnExit>true</dumpOnExit>
1131 <append>true</append>
1133 <include>org.onap.clamp.*</include>
1138 <id>pre-unit-test</id>
1140 <goal>prepare-agent</goal>
1143 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1144 <propertyName>surefireArgLine</propertyName>
1145 <!-- <append>true</append> -->
1149 <id>pre-integration-test</id>
1150 <phase>pre-integration-test</phase>
1152 <goal>prepare-agent</goal>
1155 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1156 <propertyName>failsafeArgLine</propertyName>
1157 <!-- <append>true</append> -->
1164 <phase>post-integration-test</phase>
1167 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1168 <directory>${project.build.directory}/coverage-reports</directory>
1170 <include>*.exec</include>
1174 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1180 <!-- This plugin will be useful when we will have multi-modules project -->
1182 <groupId>org.codehaus.mojo</groupId>
1183 <artifactId>versions-maven-plugin</artifactId>
1184 <version>1.3.1</version>
1188 <groupId>com.github.eirslett</groupId>
1189 <artifactId>frontend-maven-plugin</artifactId>
1190 <version>1.6</version>
1192 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1193 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1194 <skip>${maven.test.skip}</skip>
1199 <id>install_node_and_npm</id>
1201 <goal>install-node-and-npm</goal>
1205 <nodeVersion>v8.11.1</nodeVersion>
1206 <npmVersion>5.6.0</npmVersion>
1210 <id>npm_install</id>
1216 <arguments>install</arguments>
1226 <arguments>run-script test:coverage</arguments>