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.1.0-SNAPSHOT</version>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>2.0.0</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 <eelf.core.version>1.0.0</eelf.core.version>
65 <camel.version>2.24.0</camel.version>
66 <springboot.version>2.1.5.RELEASE</springboot.version>
68 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
69 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
70 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
71 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
72 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
73 <sonar.projectVersion>${project.version}</sonar.projectVersion>
74 <!-- Enable language to disable javascript analysis -->
75 <sonar.language>java</sonar.language>
76 <!-- Parameters for Javascript coverage
77 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
78 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
80 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
82 <docker.push.registry>localhost:5000</docker.push.registry>
83 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
84 <docker.skip.build>true</docker.skip.build>
85 <docker.skip.push>true</docker.skip.push>
86 <docker.skip.tag>true</docker.skip.tag>
87 <skip.staging.artifacts>false</skip.staging.artifacts>
88 <python.http.proxy.param/>
89 <tomcat.version>9.0.20</tomcat.version>
97 <name>maven.test.skip</name>
102 <docker.skip.run>true</docker.skip.run>
103 <docker.skip>true</docker.skip>
107 <id>without-IT-only</id>
115 <docker.skip.run>true</docker.skip.run>
116 <docker.skip>true</docker.skip>
120 <id>without-IT-only2</id>
123 <name>skipTests</name>
128 <docker.skip.run>true</docker.skip.run>
129 <docker.skip>true</docker.skip>
135 <skip.staging.artifacts>true</skip.staging.artifacts>
136 <docker.skip.build>false</docker.skip.build>
137 <docker.skip.tag>false</docker.skip.tag>
138 <docker.skip.push>false</docker.skip.push>
139 <docker.skip>false</docker.skip>
144 <distributionManagement>
146 <id>ecomp-releases</id>
147 <name>Clamp Release Repository</name>
148 <url>https://nexus.onap.org/content/repositories/releases/</url>
151 <id>ecomp-snapshots</id>
152 <name>Clamp Snapshot Repository</name>
153 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154 </snapshotRepository>
157 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
159 </distributionManagement>
164 <name>onap-public</name>
165 <url>https://nexus.onap.org/content/repositories/public/</url>
167 <enabled>true</enabled>
170 <enabled>false</enabled>
174 <id>ecomp-releases</id>
175 <name>ONAP Release Repository</name>
176 <url>https://nexus.onap.org/content/repositories/releases/</url>
179 <id>ecomp-staging</id>
180 <name>ONAP Staging Repository</name>
181 <url>https://nexus.onap.org/content/repositories/staging/</url>
184 <id>ecomp-snapshots</id>
185 <name>ONAP Snapshot Repository</name>
186 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
188 <enabled>true</enabled>
191 <enabled>false</enabled>
196 <url>http://repo1.maven.org/maven2/</url>
202 <name>onap-public</name>
203 <url>https://nexus.onap.org/content/repositories/public/</url>
205 <enabled>true</enabled>
208 <enabled>false</enabled>
213 <url>http://repo1.maven.org/maven2/</url>
215 </pluginRepositories>
217 <dependencyManagement>
219 <!-- Spring Boot BOM -->
221 <groupId>org.springframework.boot</groupId>
222 <artifactId>spring-boot-dependencies</artifactId>
223 <version>${springboot.version}</version>
225 <scope>import</scope>
229 <groupId>org.apache.camel</groupId>
230 <artifactId>camel-spring-boot-dependencies</artifactId>
231 <version>${camel.version}</version>
233 <scope>import</scope>
236 </dependencyManagement>
240 <groupId>org.apache.xmlgraphics</groupId>
241 <artifactId>batik-svggen</artifactId>
242 <version>1.11</version>
245 <groupId>org.apache.xmlgraphics</groupId>
246 <artifactId>batik-svg-dom</artifactId>
247 <version>1.11</version>
250 <groupId>org.apache.xmlgraphics</groupId>
251 <artifactId>batik-transcoder</artifactId>
252 <version>1.11</version>
255 <groupId>com.att.eelf</groupId>
256 <artifactId>eelf-core</artifactId>
257 <version>${eelf.core.version}</version>
260 <groupId>org.codehaus.janino</groupId>
261 <artifactId>janino</artifactId>
262 <version>3.0.8</version>
265 <groupId>org.apache.tomcat.embed</groupId>
266 <artifactId>tomcat-embed-core</artifactId>
267 <version>${tomcat.version}</version>
270 <groupId>org.apache.tomcat.embed</groupId>
271 <artifactId>tomcat-embed-el</artifactId>
272 <version>${tomcat.version}</version>
275 <groupId>org.apache.tomcat.embed</groupId>
276 <artifactId>tomcat-embed-websocket</artifactId>
277 <version>${tomcat.version}</version>
280 <groupId>org.apache.tomcat</groupId>
281 <artifactId>tomcat-annotations-api</artifactId>
282 <version>${tomcat.version}</version>
286 <groupId>org.apache.camel</groupId>
287 <artifactId>camel-http4-starter</artifactId>
290 <groupId>org.apache.camel</groupId>
291 <artifactId>camel-spring-boot-starter</artifactId>
294 <groupId>org.apache.camel</groupId>
295 <artifactId>camel-jaxb-starter</artifactId>
298 <groupId>org.apache.camel</groupId>
299 <artifactId>camel-servlet-starter</artifactId>
302 <groupId>org.apache.camel</groupId>
303 <artifactId>camel-gson-starter</artifactId>
306 <groupId>org.apache.camel</groupId>
307 <artifactId>camel-swagger-java-starter</artifactId>
310 <groupId>javax.ws.rs</groupId>
311 <artifactId>jsr311-api</artifactId>
314 <groupId>org.slf4j</groupId>
315 <artifactId>slf4j-ext</artifactId>
318 <groupId>com.fasterxml.jackson.core</groupId>
319 <artifactId>jackson-databind</artifactId>
324 <groupId>javax.xml.bind</groupId>
325 <artifactId>jaxb-api</artifactId>
326 <version>2.3.0</version>
329 <groupId>org.glassfish.jersey.core</groupId>
330 <artifactId>jersey-common</artifactId>
331 <version>2.27</version>
333 <!-- Spring famework -->
335 <groupId>org.springframework.boot</groupId>
336 <artifactId>spring-boot-starter-web</artifactId>
339 <groupId>org.springframework.boot</groupId>
340 <artifactId>spring-boot-starter-json</artifactId>
345 <groupId>org.springframework.boot</groupId>
346 <artifactId>spring-boot-starter-tomcat</artifactId>
349 <groupId>org.springframework</groupId>
350 <artifactId>spring-jdbc</artifactId>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-starter-security</artifactId>
357 <groupId>org.springframework.boot</groupId>
358 <artifactId>spring-boot-autoconfigure</artifactId>
361 <groupId>org.springframework.boot</groupId>
362 <artifactId>spring-boot-starter-test</artifactId>
366 <groupId>com.vaadin.external.google</groupId>
367 <artifactId>android-json</artifactId>
372 <groupId>org.springframework.boot</groupId>
373 <artifactId>spring-boot-starter-data-jpa</artifactId>
375 <!-- Others dependencies -->
377 <groupId>org.onap.aaf.authz</groupId>
378 <artifactId>aaf-cadi-aaf</artifactId>
379 <version>2.1.10</version>
382 <groupId>javax.servlet</groupId>
383 <artifactId>servlet-api</artifactId>
388 <groupId>ch.qos.logback</groupId>
389 <artifactId>logback-core</artifactId>
390 <version>1.2.3</version>
393 <groupId>ch.qos.logback</groupId>
394 <artifactId>logback-classic</artifactId>
395 <version>1.2.3</version>
398 <groupId>commons-dbcp</groupId>
399 <artifactId>commons-dbcp</artifactId>
400 <version>1.4</version>
403 <groupId>commons-io</groupId>
404 <artifactId>commons-io</artifactId>
405 <version>2.6</version>
408 <groupId>com.googlecode.json-simple</groupId>
409 <artifactId>json-simple</artifactId>
410 <version>1.1.1</version>
413 <groupId>org.apache.commons</groupId>
414 <artifactId>commons-vfs2</artifactId>
415 <version>2.2</version>
418 <groupId>joda-time</groupId>
419 <artifactId>joda-time</artifactId>
422 <groupId>org.slf4j</groupId>
423 <artifactId>slf4j-api</artifactId>
426 <groupId>javax.ws.rs</groupId>
427 <artifactId>javax.ws.rs-api</artifactId>
428 <version>2.0</version>
431 <groupId>junit</groupId>
432 <artifactId>junit</artifactId>
435 <groupId>javax.transaction</groupId>
436 <artifactId>jta</artifactId>
437 <version>1.1</version>
440 <groupId>javax.persistence</groupId>
441 <artifactId>persistence-api</artifactId>
442 <version>1.0.2</version>
445 <groupId>org.onap.policy.engine</groupId>
446 <artifactId>PolicyEngineAPI</artifactId>
447 <version>1.3.3</version>
450 <groupId>com.google.guava</groupId>
451 <artifactId>guava</artifactId>
454 <artifactId>log4j</artifactId>
455 <groupId>log4j</groupId>
458 <groupId>org.slf4j</groupId>
459 <artifactId>slf4j-log4j12</artifactId>
462 <artifactId>apache-log4j-extras</artifactId>
463 <groupId>log4j</groupId>
466 <groupId>mysql</groupId>
467 <artifactId>mysql-connector-java</artifactId>
470 <groupId>commons-io</groupId>
471 <artifactId>commons-io</artifactId>
474 <artifactId>grizzly-http-server</artifactId>
475 <groupId>org.glassfish.grizzly</groupId>
478 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
479 <artifactId>dmaapClient</artifactId>
482 <groupId>org.onap.policy.common</groupId>
483 <artifactId>integrity-monitor</artifactId>
486 <groupId>org.onap.policy.common</groupId>
487 <artifactId>integrity-audit</artifactId>
490 <groupId>com.fasterxml.jackson.core</groupId>
491 <artifactId>jackson-databind</artifactId>
494 <groupId>org.onap.aaf.cadi</groupId>
495 <artifactId>cadi-aaf</artifactId>
498 <groupId>javax.jms</groupId>
499 <artifactId>jms</artifactId>
502 <groupId>commons-fileupload</groupId>
503 <artifactId>commons-fileupload</artifactId>
506 <groupId>com.att.research.xacml</groupId>
507 <artifactId>xacml</artifactId>
512 <groupId>org.onap.policy.common</groupId>
513 <artifactId>ONAP-Logging</artifactId>
514 <version>1.2.3</version>
517 <artifactId>log4j</artifactId>
518 <groupId>log4j</groupId>
521 <groupId>org.slf4j</groupId>
522 <artifactId>slf4j-log4j12</artifactId>
525 <artifactId>apache-log4j-extras</artifactId>
526 <groupId>log4j</groupId>
531 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
532 <artifactId>policy-yaml</artifactId>
533 <version>1.2.3</version>
536 <artifactId>log4j</artifactId>
537 <groupId>log4j</groupId>
540 <groupId>org.slf4j</groupId>
541 <artifactId>slf4j-log4j12</artifactId>
544 <artifactId>apache-log4j-extras</artifactId>
545 <groupId>log4j</groupId>
550 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
551 <artifactId>sdc</artifactId>
552 <version>1.2.3</version>
555 <artifactId>log4j</artifactId>
556 <groupId>log4j</groupId>
559 <groupId>org.slf4j</groupId>
560 <artifactId>slf4j-log4j12</artifactId>
563 <artifactId>apache-log4j-extras</artifactId>
564 <groupId>log4j</groupId>
569 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
570 <artifactId>aai</artifactId>
571 <version>1.2.3</version>
574 <artifactId>log4j</artifactId>
575 <groupId>log4j</groupId>
578 <groupId>org.slf4j</groupId>
579 <artifactId>slf4j-log4j12</artifactId>
582 <artifactId>apache-log4j-extras</artifactId>
583 <groupId>log4j</groupId>
588 <groupId>org.apache.commons</groupId>
589 <artifactId>commons-csv</artifactId>
590 <version>1.3</version>
592 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
594 <groupId>org.codehaus.plexus</groupId>
595 <artifactId>plexus-utils</artifactId>
596 <version>3.0.24</version>
599 <groupId>org.jboss.spec.javax.ws.rs</groupId>
600 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
601 <version>1.0.1.Final</version>
604 <groupId>com.google.guava</groupId>
605 <artifactId>guava</artifactId>
606 <version>27.0-jre</version>
608 <!-- Remove the MYSQL connector and replace it by Mariadb -->
610 <groupId>org.mariadb.jdbc</groupId>
611 <artifactId>mariadb-java-client</artifactId>
612 <version>2.2.1</version>
614 <!-- For SDC Controller -->
616 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
617 <artifactId>sdc-distribution-client</artifactId>
618 <version>1.3.0</version>
621 <groupId>org.onap.sdc.sdc-tosca</groupId>
622 <artifactId>sdc-tosca</artifactId>
623 <version>1.5.1</version>
627 <groupId>org.assertj</groupId>
628 <artifactId>assertj-core</artifactId>
629 <version>3.10.0</version>
633 <groupId>org.mockito</groupId>
634 <artifactId>mockito-core</artifactId>
635 <version>1.10.19</version>
641 <finalName>clamp</finalName>
645 <directory>src/test/resources</directory>
647 <exclude>**/*.jks</exclude>
648 <exclude>**/*.csar</exclude>
650 <filtering>true</filtering>
653 <directory>src/test/resources/https</directory>
655 <include>**.jks</include>
657 <filtering>false</filtering>
658 <targetPath>https</targetPath>
661 <directory>src/test/resources/example/sdc</directory>
663 <include>**.csar</include>
665 <filtering>false</filtering>
666 <targetPath>example/sdc</targetPath>
669 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
671 <directory>src/test/javascript</directory>
673 <include>**/**.json</include>
675 <filtering>true</filtering>
676 <targetPath>${project.build.directory}/clamp-ui</targetPath>
679 <directory>src/main/resources/META-INF/resources/designer</directory>
680 <filtering>false</filtering>
681 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
685 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
686 Otherwise they will be broken and unreadable
689 <directory>src/main/resources</directory>
690 <filtering>true</filtering>
692 <exclude>clds/aaf/**</exclude>
696 <directory>src/main/resources</directory>
697 <filtering>false</filtering>
699 <include>clds/aaf/**</include>
703 <directory>src/main/docker</directory>
705 <include>**/*</include>
707 <filtering>true</filtering>
713 <groupId>de.jpdigital</groupId>
714 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
715 <version>2.2.0</version>
718 <groupId>javax.xml.bind</groupId>
719 <artifactId>jaxb-api</artifactId>
720 <version>2.3.0</version>
725 <phase>process-classes</phase>
730 <packages><param>org.onap.clamp.dao.model</param></packages>
731 <dialects><param>MARIADB53</param></dialects>
732 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
733 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
734 <!-- <createDropStatements>true</createDropStatements> -->
735 <omitDialectFromFileName>true</omitDialectFromFileName>
741 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
742 generate a list of .adoc files containing the APIs info in more structured
745 <groupId>io.github.swagger2markup</groupId>
746 <artifactId>swagger2markup-maven-plugin</artifactId>
747 <version>1.3.3</version>
750 <groupId>io.github.swagger2markup</groupId>
751 <artifactId>swagger2markup-import-files-ext</artifactId>
752 <version>1.3.3</version>
755 <groupId>io.github.swagger2markup</groupId>
756 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
757 <version>1.3.3</version>
761 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
762 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
764 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
769 <phase>post-integration-test</phase>
771 <goal>convertSwagger2markup</goal>
777 <!-- Run the generated asciidoc through Asciidoctor to generate other
778 documentation types, such as PDFs or HTML5 -->
780 <groupId>org.asciidoctor</groupId>
781 <artifactId>asciidoctor-maven-plugin</artifactId>
782 <version>1.5.7.1</version>
785 <groupId>org.asciidoctor</groupId>
786 <artifactId>asciidoctorj-pdf</artifactId>
787 <version>1.5.0-alpha.10.1</version>
791 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
792 <sourceDocumentName>swagger.adoc</sourceDocumentName>
794 <doctype>book</doctype>
796 <toclevels>3</toclevels>
801 <generated>${project.build.directory}/asciidoc/generated</generated>
808 <phase>post-integration-test</phase>
810 <goal>process-asciidoc</goal>
813 <backend>html5</backend>
814 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
815 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
820 <phase>post-integration-test</phase>
822 <goal>process-asciidoc</goal>
825 <backend>pdf</backend>
826 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
832 <groupId>org.codehaus.groovy.maven</groupId>
833 <artifactId>gmaven-plugin</artifactId>
834 <version>1.0</version>
837 <phase>validate</phase>
842 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
848 <groupId>org.apache.maven.plugins</groupId>
849 <artifactId>maven-jar-plugin</artifactId>
850 <version>3.0.2</version>
853 <id>jar-with-only-classes</id>
854 <phase>package</phase>
859 <classifier>classes</classifier>
861 <include>org/**</include>
868 <groupId>org.codehaus.mojo</groupId>
869 <artifactId>build-helper-maven-plugin</artifactId>
870 <version>3.0.0</version>
874 <goal>attach-artifact</goal>
876 <phase>package</phase>
880 <file>${project.build.directory}/clamp-classes.jar</file>
882 <classifier>classes</classifier>
888 <id>reserve-port-for-tests</id>
889 <phase>process-resources</phase>
891 <goal>reserve-network-port</goal>
895 <portName>docker.mariadb.port.host</portName>
896 <portName>docker.http-cache.port.host</portName>
897 <portName>clamp.it.tests.http-redirected</portName>
898 <portName>clamp.it.tests.https</portName>
899 <portName>clamp.it.tests.http</portName>
907 <groupId>org.springframework.boot</groupId>
908 <artifactId>spring-boot-maven-plugin</artifactId>
909 <!-- Temporary fix -->
910 <version>1.5.13.RELEASE</version>
911 <!-- <version>${springboot.version}</version> -->
915 <goal>repackage</goal>
917 <phase>package</phase>
922 <groupId>org.apache.maven.plugins</groupId>
923 <artifactId>maven-surefire-plugin</artifactId>
924 <version>2.22.1</version>
926 <forkCount>1C</forkCount>
927 <reuseForks>true</reuseForks>
928 <useSystemClassLoader>false</useSystemClassLoader>
929 <argLine>${surefireArgLine}</argLine>
934 <groupId>org.apache.maven.plugins</groupId>
935 <artifactId>maven-failsafe-plugin</artifactId>
936 <version>2.22.1</version>
939 <id>integration-tests</id>
941 <goal>integration-test</goal>
945 <additionalClasspathElements>
946 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
947 </additionalClasspathElements>
949 <include>**/*ItCase.java</include>
951 <forkCount>1</forkCount>
952 <reuseForks>true</reuseForks>
953 <useSystemClassLoader>false</useSystemClassLoader>
954 <argLine>${failsafeArgLine}</argLine>
961 <groupId>io.fabric8</groupId>
962 <artifactId>docker-maven-plugin</artifactId>
963 <version>0.27.2</version>
966 <groupId>org.apache.httpcomponents</groupId>
967 <artifactId>httpclient</artifactId>
968 <version>4.5.5</version>
972 <verbose>true</verbose>
973 <apiVersion>1.35</apiVersion>
976 <name>library/mariadb:10.3.12</name>
977 <alias>mariadb</alias>
980 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
982 <hostname>mariadb</hostname>
985 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
986 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
990 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
994 <port>${docker.mariadb.port.host}:3306</port>
999 <name>library/python:2-slim</name>
1000 <alias>python</alias>
1002 <hostname>python</hostname>
1005 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1006 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1019 <port>${docker.http-cache.port.host}:8080</port>
1021 <workingDir>/usr/src/http-cache-app</workingDir>
1023 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1028 <name>onap/clamp-backend</name>
1029 <alias>onap-clamp-backend</alias>
1034 <cleanup>true</cleanup>
1037 <tag>${project.docker.latesttagtimestamp.version}</tag>
1038 <tag>${project.docker.latesttag.version}</tag>
1040 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1042 <dockerFile>backend/Dockerfile</dockerFile>
1044 <descriptor>backend/backend-files.xml</descriptor>
1045 <name>onap-clamp-backend</name>
1050 <name>onap/clamp-frontend</name>
1051 <alias>onap-clamp-frontend</alias>
1056 <cleanup>true</cleanup>
1059 <tag>${project.docker.latesttagtimestamp.version}</tag>
1060 <tag>${project.docker.latesttag.version}</tag>
1062 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1064 <dockerFile>frontend/Dockerfile</dockerFile>
1066 <descriptor>frontend/frontend-files.xml</descriptor>
1067 <name>onap-clamp-frontend</name>
1072 <name>onap/clamp-dashboard-logstash</name>
1073 <alias>onap-clamp-dashboard-logstash</alias>
1078 <cleanup>true</cleanup>
1081 <tag>${project.docker.latesttagtimestamp.version}</tag>
1082 <tag>${project.docker.latesttag.version}</tag>
1084 <dockerFile>logstash/Dockerfile</dockerFile>
1088 <name>onap/clamp-dashboard-kibana</name>
1089 <alias>onap-clamp-dashboard-kibana</alias>
1094 <cleanup>true</cleanup>
1097 <tag>${project.docker.latesttagtimestamp.version}</tag>
1098 <tag>${project.docker.latesttag.version}</tag>
1100 <dockerFile>kibana/Dockerfile</dockerFile>
1108 <id>generate-images</id>
1109 <phase>install</phase>
1115 <id>push-images</id>
1116 <phase>deploy</phase>
1122 <id>docker-start-for-it</id>
1123 <phase>pre-integration-test</phase>
1129 <id>docker-stop-for-it</id>
1130 <phase>post-integration-test</phase>
1139 <groupId>org.jacoco</groupId>
1140 <artifactId>jacoco-maven-plugin</artifactId>
1141 <version>0.8.2</version>
1143 <dumpOnExit>true</dumpOnExit>
1144 <append>true</append>
1146 <include>org.onap.clamp.*</include>
1151 <id>pre-unit-test</id>
1153 <goal>prepare-agent</goal>
1156 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1157 <propertyName>surefireArgLine</propertyName>
1158 <!-- <append>true</append> -->
1162 <id>pre-integration-test</id>
1163 <phase>pre-integration-test</phase>
1165 <goal>prepare-agent</goal>
1168 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1169 <propertyName>failsafeArgLine</propertyName>
1170 <!-- <append>true</append> -->
1177 <phase>post-integration-test</phase>
1180 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1181 <directory>${project.build.directory}/coverage-reports</directory>
1183 <include>*.exec</include>
1187 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1193 <!-- This plugin will be useful when we will have multi-modules project -->
1195 <groupId>org.codehaus.mojo</groupId>
1196 <artifactId>versions-maven-plugin</artifactId>
1197 <version>1.3.1</version>
1201 <groupId>com.github.eirslett</groupId>
1202 <artifactId>frontend-maven-plugin</artifactId>
1203 <version>1.6</version>
1205 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1206 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1207 <skip>${maven.test.skip}</skip>
1212 <id>install_node_and_npm</id>
1214 <goal>install-node-and-npm</goal>
1218 <nodeVersion>v8.11.1</nodeVersion>
1219 <npmVersion>5.6.0</npmVersion>
1223 <id>npm_install</id>
1229 <arguments>install</arguments>
1239 <arguments>run-script test:coverage</arguments>