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.0</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>Maven 2 repository 2</name>
167 <url>http://repo2.maven.org/maven2/</url>
170 <id>ecomp-releases</id>
171 <name>ONAP Release Repository</name>
172 <url>https://nexus.onap.org/content/repositories/releases/</url>
175 <id>ecomp-staging</id>
176 <name>ONAP Staging Repository</name>
177 <url>https://nexus.onap.org/content/repositories/staging/</url>
180 <id>ecomp-snapshots</id>
181 <name>ONAP Snapshot Repository</name>
182 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
184 <enabled>true</enabled>
187 <enabled>false</enabled>
192 <name>Spring repo</name>
193 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
196 <id>repository.jboss.org-public</id>
197 <name>JBoss.org Maven repository</name>
198 <url>https://repository.jboss.org/nexus/content/groups/public</url>
202 <dependencyManagement>
204 <!-- Spring Boot BOM -->
206 <groupId>org.springframework.boot</groupId>
207 <artifactId>spring-boot-dependencies</artifactId>
208 <version>${springboot.version}</version>
210 <scope>import</scope>
214 <groupId>org.apache.camel</groupId>
215 <artifactId>camel-spring-boot-dependencies</artifactId>
216 <version>${camel.version}</version>
218 <scope>import</scope>
221 </dependencyManagement>
225 <groupId>org.apache.xmlgraphics</groupId>
226 <artifactId>batik-svggen</artifactId>
227 <version>1.11</version>
230 <groupId>org.apache.xmlgraphics</groupId>
231 <artifactId>batik-svg-dom</artifactId>
232 <version>1.11</version>
235 <groupId>org.apache.xmlgraphics</groupId>
236 <artifactId>batik-transcoder</artifactId>
237 <version>1.11</version>
240 <groupId>com.att.eelf</groupId>
241 <artifactId>eelf-core</artifactId>
242 <version>${eelf.core.version}</version>
245 <groupId>org.codehaus.janino</groupId>
246 <artifactId>janino</artifactId>
247 <version>3.0.8</version>
250 <groupId>org.apache.tomcat.embed</groupId>
251 <artifactId>tomcat-embed-core</artifactId>
252 <version>${tomcat.version}</version>
255 <groupId>org.apache.tomcat.embed</groupId>
256 <artifactId>tomcat-embed-el</artifactId>
257 <version>${tomcat.version}</version>
260 <groupId>org.apache.tomcat.embed</groupId>
261 <artifactId>tomcat-embed-websocket</artifactId>
262 <version>${tomcat.version}</version>
265 <groupId>org.apache.tomcat</groupId>
266 <artifactId>tomcat-annotations-api</artifactId>
267 <version>${tomcat.version}</version>
271 <groupId>org.apache.camel</groupId>
272 <artifactId>camel-spring-boot-starter</artifactId>
275 <groupId>org.apache.camel</groupId>
276 <artifactId>camel-jaxb-starter</artifactId>
279 <groupId>org.apache.camel</groupId>
280 <artifactId>camel-servlet-starter</artifactId>
283 <groupId>org.apache.camel</groupId>
284 <artifactId>camel-gson-starter</artifactId>
287 <groupId>org.apache.camel</groupId>
288 <artifactId>camel-swagger-java-starter</artifactId>
291 <groupId>javax.ws.rs</groupId>
292 <artifactId>jsr311-api</artifactId>
295 <groupId>org.slf4j</groupId>
296 <artifactId>slf4j-ext</artifactId>
299 <groupId>com.fasterxml.jackson.core</groupId>
300 <artifactId>jackson-databind</artifactId>
305 <groupId>javax.xml.bind</groupId>
306 <artifactId>jaxb-api</artifactId>
307 <version>2.3.0</version>
310 <groupId>org.glassfish.jersey.core</groupId>
311 <artifactId>jersey-common</artifactId>
312 <version>2.27</version>
314 <!-- Spring famework -->
316 <groupId>org.springframework.boot</groupId>
317 <artifactId>spring-boot-starter-web</artifactId>
320 <groupId>org.springframework.boot</groupId>
321 <artifactId>spring-boot-starter-json</artifactId>
326 <groupId>org.springframework.boot</groupId>
327 <artifactId>spring-boot-starter-tomcat</artifactId>
330 <groupId>org.springframework</groupId>
331 <artifactId>spring-jdbc</artifactId>
334 <groupId>org.springframework.boot</groupId>
335 <artifactId>spring-boot-starter-security</artifactId>
338 <groupId>org.springframework.boot</groupId>
339 <artifactId>spring-boot-autoconfigure</artifactId>
342 <groupId>org.springframework.boot</groupId>
343 <artifactId>spring-boot-starter-test</artifactId>
347 <groupId>com.vaadin.external.google</groupId>
348 <artifactId>android-json</artifactId>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-starter-data-jpa</artifactId>
356 <!-- Others dependencies -->
358 <groupId>org.onap.aaf.authz</groupId>
359 <artifactId>aaf-cadi-aaf</artifactId>
360 <version>2.1.1</version>
363 <groupId>javax.servlet</groupId>
364 <artifactId>servlet-api</artifactId>
369 <groupId>ch.qos.logback</groupId>
370 <artifactId>logback-core</artifactId>
371 <version>1.2.3</version>
374 <groupId>ch.qos.logback</groupId>
375 <artifactId>logback-classic</artifactId>
376 <version>1.2.3</version>
379 <groupId>commons-dbcp</groupId>
380 <artifactId>commons-dbcp</artifactId>
381 <version>1.4</version>
384 <groupId>commons-io</groupId>
385 <artifactId>commons-io</artifactId>
386 <version>2.6</version>
389 <groupId>com.googlecode.json-simple</groupId>
390 <artifactId>json-simple</artifactId>
393 <groupId>org.apache.commons</groupId>
394 <artifactId>commons-vfs2</artifactId>
395 <version>2.2</version>
398 <groupId>joda-time</groupId>
399 <artifactId>joda-time</artifactId>
402 <groupId>org.slf4j</groupId>
403 <artifactId>slf4j-api</artifactId>
406 <groupId>javax.ws.rs</groupId>
407 <artifactId>javax.ws.rs-api</artifactId>
408 <version>2.0</version>
411 <groupId>junit</groupId>
412 <artifactId>junit</artifactId>
415 <groupId>javax.transaction</groupId>
416 <artifactId>jta</artifactId>
417 <version>1.1</version>
420 <groupId>javax.persistence</groupId>
421 <artifactId>persistence-api</artifactId>
422 <version>1.0.2</version>
425 <groupId>org.onap.policy.engine</groupId>
426 <artifactId>PolicyEngineAPI</artifactId>
427 <version>1.3.3</version>
430 <groupId>com.google.guava</groupId>
431 <artifactId>guava</artifactId>
434 <artifactId>log4j</artifactId>
435 <groupId>log4j</groupId>
438 <groupId>org.slf4j</groupId>
439 <artifactId>slf4j-log4j12</artifactId>
442 <artifactId>apache-log4j-extras</artifactId>
443 <groupId>log4j</groupId>
446 <groupId>mysql</groupId>
447 <artifactId>mysql-connector-java</artifactId>
450 <groupId>commons-io</groupId>
451 <artifactId>commons-io</artifactId>
454 <artifactId>grizzly-http-server</artifactId>
455 <groupId>org.glassfish.grizzly</groupId>
458 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
459 <artifactId>dmaapClient</artifactId>
462 <groupId>org.onap.policy.common</groupId>
463 <artifactId>integrity-monitor</artifactId>
466 <groupId>org.onap.policy.common</groupId>
467 <artifactId>integrity-audit</artifactId>
470 <groupId>com.fasterxml.jackson.core</groupId>
471 <artifactId>jackson-databind</artifactId>
474 <groupId>org.onap.aaf.cadi</groupId>
475 <artifactId>cadi-aaf</artifactId>
478 <groupId>javax.jms</groupId>
479 <artifactId>jms</artifactId>
482 <groupId>commons-fileupload</groupId>
483 <artifactId>commons-fileupload</artifactId>
486 <groupId>com.att.research.xacml</groupId>
487 <artifactId>xacml</artifactId>
492 <groupId>org.onap.policy.common</groupId>
493 <artifactId>ONAP-Logging</artifactId>
494 <version>1.2.3</version>
497 <artifactId>log4j</artifactId>
498 <groupId>log4j</groupId>
501 <groupId>org.slf4j</groupId>
502 <artifactId>slf4j-log4j12</artifactId>
505 <artifactId>apache-log4j-extras</artifactId>
506 <groupId>log4j</groupId>
511 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
512 <artifactId>policy-yaml</artifactId>
513 <version>1.2.3</version>
516 <artifactId>log4j</artifactId>
517 <groupId>log4j</groupId>
520 <groupId>org.slf4j</groupId>
521 <artifactId>slf4j-log4j12</artifactId>
524 <artifactId>apache-log4j-extras</artifactId>
525 <groupId>log4j</groupId>
530 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
531 <artifactId>sdc</artifactId>
532 <version>1.2.3</version>
535 <artifactId>log4j</artifactId>
536 <groupId>log4j</groupId>
539 <groupId>org.slf4j</groupId>
540 <artifactId>slf4j-log4j12</artifactId>
543 <artifactId>apache-log4j-extras</artifactId>
544 <groupId>log4j</groupId>
549 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
550 <artifactId>aai</artifactId>
551 <version>1.2.3</version>
554 <artifactId>log4j</artifactId>
555 <groupId>log4j</groupId>
558 <groupId>org.slf4j</groupId>
559 <artifactId>slf4j-log4j12</artifactId>
562 <artifactId>apache-log4j-extras</artifactId>
563 <groupId>log4j</groupId>
568 <groupId>org.apache.commons</groupId>
569 <artifactId>commons-csv</artifactId>
570 <version>1.3</version>
572 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
574 <groupId>org.codehaus.plexus</groupId>
575 <artifactId>plexus-utils</artifactId>
576 <version>3.0.24</version>
579 <groupId>org.jboss.spec.javax.ws.rs</groupId>
580 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
581 <version>1.0.1.Final</version>
584 <groupId>com.google.guava</groupId>
585 <artifactId>guava</artifactId>
587 <!-- Remove the MYSQL connector and replace it by Mariadb -->
589 <groupId>org.mariadb.jdbc</groupId>
590 <artifactId>mariadb-java-client</artifactId>
591 <version>2.2.1</version>
593 <!-- For SDC Controller -->
595 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
596 <artifactId>sdc-distribution-client</artifactId>
597 <version>1.3.0</version>
600 <groupId>org.onap.sdc.sdc-tosca</groupId>
601 <artifactId>sdc-tosca</artifactId>
602 <version>1.5.0</version>
606 <groupId>org.assertj</groupId>
607 <artifactId>assertj-core</artifactId>
608 <version>3.10.0</version>
612 <groupId>org.mockito</groupId>
613 <artifactId>mockito-core</artifactId>
614 <version>1.10.19</version>
620 <id>central-for-plugins</id>
621 <name>Maven 2 repository 2</name>
622 <url>http://repo2.maven.org/maven2/</url>
626 <enabled>false</enabled>
628 <id>jcenter-releases-for-plugins</id>
630 <url>http://jcenter.bintray.com</url>
632 </pluginRepositories>
634 <finalName>clamp</finalName>
638 <directory>src/test/resources</directory>
640 <exclude>**/*.jks</exclude>
641 <exclude>**/*.csar</exclude>
643 <filtering>true</filtering>
646 <directory>src/test/resources/https</directory>
648 <include>**.jks</include>
650 <filtering>false</filtering>
651 <targetPath>https</targetPath>
654 <directory>src/test/resources/example/sdc</directory>
656 <include>**.csar</include>
658 <filtering>false</filtering>
659 <targetPath>example/sdc</targetPath>
662 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
664 <directory>src/test/javascript</directory>
666 <include>**/**.json</include>
668 <filtering>true</filtering>
669 <targetPath>${project.build.directory}/clamp-ui</targetPath>
672 <directory>src/main/resources/META-INF/resources/designer</directory>
673 <filtering>false</filtering>
674 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
678 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
679 Otherwise they will be broken and unreadable
682 <directory>src/main/resources</directory>
683 <filtering>true</filtering>
685 <exclude>clds/aaf/**</exclude>
689 <directory>src/main/resources</directory>
690 <filtering>false</filtering>
692 <include>clds/aaf/**</include>
696 <directory>src/main/docker</directory>
698 <include>**/*</include>
700 <filtering>true</filtering>
706 <groupId>de.jpdigital</groupId>
707 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
708 <version>2.2.0</version>
711 <groupId>javax.xml.bind</groupId>
712 <artifactId>jaxb-api</artifactId>
713 <version>2.3.0</version>
718 <phase>process-classes</phase>
723 <packages><param>org.onap.clamp.dao.model</param></packages>
724 <dialects><param>MARIADB53</param></dialects>
725 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
726 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
727 <!-- <createDropStatements>true</createDropStatements> -->
728 <omitDialectFromFileName>true</omitDialectFromFileName>
734 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
735 generate a list of .adoc files containing the APIs info in more structured
738 <groupId>io.github.swagger2markup</groupId>
739 <artifactId>swagger2markup-maven-plugin</artifactId>
740 <version>1.3.3</version>
743 <groupId>io.github.swagger2markup</groupId>
744 <artifactId>swagger2markup-import-files-ext</artifactId>
745 <version>1.3.3</version>
748 <groupId>io.github.swagger2markup</groupId>
749 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
750 <version>1.3.3</version>
754 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
755 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
757 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
762 <phase>post-integration-test</phase>
764 <goal>convertSwagger2markup</goal>
770 <!-- Run the generated asciidoc through Asciidoctor to generate other
771 documentation types, such as PDFs or HTML5 -->
773 <groupId>org.asciidoctor</groupId>
774 <artifactId>asciidoctor-maven-plugin</artifactId>
775 <version>1.5.7.1</version>
778 <groupId>org.asciidoctor</groupId>
779 <artifactId>asciidoctorj-pdf</artifactId>
780 <version>1.5.0-alpha.10.1</version>
784 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
785 <sourceDocumentName>swagger.adoc</sourceDocumentName>
787 <doctype>book</doctype>
789 <toclevels>3</toclevels>
794 <generated>${project.build.directory}/asciidoc/generated</generated>
801 <phase>post-integration-test</phase>
803 <goal>process-asciidoc</goal>
806 <backend>html5</backend>
807 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
808 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
813 <phase>post-integration-test</phase>
815 <goal>process-asciidoc</goal>
818 <backend>pdf</backend>
819 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
825 <groupId>org.codehaus.groovy.maven</groupId>
826 <artifactId>gmaven-plugin</artifactId>
827 <version>1.0</version>
830 <phase>validate</phase>
835 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
841 <groupId>org.apache.maven.plugins</groupId>
842 <artifactId>maven-jar-plugin</artifactId>
843 <version>3.0.2</version>
846 <id>jar-with-only-classes</id>
847 <phase>package</phase>
852 <classifier>classes</classifier>
854 <include>org/**</include>
861 <groupId>org.codehaus.mojo</groupId>
862 <artifactId>build-helper-maven-plugin</artifactId>
863 <version>3.0.0</version>
867 <goal>attach-artifact</goal>
869 <phase>package</phase>
873 <file>${project.build.directory}/clamp-classes.jar</file>
875 <classifier>classes</classifier>
881 <id>reserve-port-for-tests</id>
882 <phase>process-resources</phase>
884 <goal>reserve-network-port</goal>
888 <portName>docker.mariadb.port.host</portName>
889 <portName>docker.http-cache.port.host</portName>
890 <portName>clamp.it.tests.http-redirected</portName>
891 <portName>clamp.it.tests.https</portName>
892 <portName>clamp.it.tests.http</portName>
900 <groupId>org.springframework.boot</groupId>
901 <artifactId>spring-boot-maven-plugin</artifactId>
902 <!-- Temporary fix -->
903 <version>1.5.13.RELEASE</version>
904 <!-- <version>${springboot.version}</version> -->
908 <goal>repackage</goal>
910 <phase>package</phase>
915 <groupId>org.sonatype.plugins</groupId>
916 <artifactId>nexus-staging-maven-plugin</artifactId>
917 <version>1.6.7</version>
918 <extensions>true</extensions>
920 <nexusUrl>https://nexus.onap.org</nexusUrl>
921 <stagingProfileId>176c31dfe190a</stagingProfileId>
922 <serverId>ecomp-staging</serverId>
923 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
928 <groupId>org.apache.maven.plugins</groupId>
929 <artifactId>maven-surefire-plugin</artifactId>
930 <version>2.22.1</version>
932 <forkCount>1C</forkCount>
933 <reuseForks>true</reuseForks>
934 <useSystemClassLoader>false</useSystemClassLoader>
935 <argLine>${surefireArgLine}</argLine>
940 <groupId>org.apache.maven.plugins</groupId>
941 <artifactId>maven-failsafe-plugin</artifactId>
942 <version>2.22.1</version>
945 <id>integration-tests</id>
947 <goal>integration-test</goal>
951 <additionalClasspathElements>
952 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
953 </additionalClasspathElements>
955 <include>**/*ItCase.java</include>
957 <forkCount>1</forkCount>
958 <reuseForks>true</reuseForks>
959 <useSystemClassLoader>false</useSystemClassLoader>
960 <argLine>${failsafeArgLine}</argLine>
967 <groupId>io.fabric8</groupId>
968 <artifactId>docker-maven-plugin</artifactId>
969 <version>0.27.2</version>
972 <groupId>org.apache.httpcomponents</groupId>
973 <artifactId>httpclient</artifactId>
974 <version>4.5.5</version>
978 <verbose>true</verbose>
979 <apiVersion>1.35</apiVersion>
982 <name>library/mariadb:10.3.12</name>
983 <alias>mariadb</alias>
986 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
988 <hostname>mariadb</hostname>
991 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
992 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
996 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
1000 <port>${docker.mariadb.port.host}:3306</port>
1005 <name>library/python:2-slim</name>
1006 <alias>python</alias>
1008 <hostname>python</hostname>
1011 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1012 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1025 <port>${docker.http-cache.port.host}:8080</port>
1027 <workingDir>/usr/src/http-cache-app</workingDir>
1029 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1034 <name>onap/clamp</name>
1035 <alias>onap-clamp</alias>
1040 <cleanup>true</cleanup>
1043 <tag>${project.docker.latesttagtimestamp.version}</tag>
1044 <tag>${project.docker.latesttag.version}</tag>
1046 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1048 <dockerFile>Dockerfile</dockerFile>
1050 <descriptor>assembly/clamp-files.xml</descriptor>
1051 <name>onap-clamp</name>
1056 <name>onap/clamp-dashboard-logstash</name>
1057 <alias>onap-clamp-dashboard-logstash</alias>
1062 <cleanup>true</cleanup>
1065 <tag>${project.docker.latesttagtimestamp.version}</tag>
1066 <tag>${project.docker.latesttag.version}</tag>
1068 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
1072 <name>onap/clamp-dashboard-kibana</name>
1073 <alias>onap-clamp-dashboard-kibana</alias>
1078 <cleanup>true</cleanup>
1081 <tag>${project.docker.latesttagtimestamp.version}</tag>
1082 <tag>${project.docker.latesttag.version}</tag>
1084 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1092 <id>generate-images</id>
1093 <phase>install</phase>
1099 <id>push-images</id>
1100 <phase>deploy</phase>
1106 <id>docker-start-for-it</id>
1107 <phase>pre-integration-test</phase>
1113 <id>docker-stop-for-it</id>
1114 <phase>post-integration-test</phase>
1123 <groupId>org.jacoco</groupId>
1124 <artifactId>jacoco-maven-plugin</artifactId>
1125 <version>0.8.2</version>
1127 <dumpOnExit>true</dumpOnExit>
1128 <append>true</append>
1130 <include>org.onap.clamp.*</include>
1135 <id>pre-unit-test</id>
1137 <goal>prepare-agent</goal>
1140 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1141 <propertyName>surefireArgLine</propertyName>
1142 <!-- <append>true</append> -->
1146 <id>pre-integration-test</id>
1147 <phase>pre-integration-test</phase>
1149 <goal>prepare-agent</goal>
1152 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1153 <propertyName>failsafeArgLine</propertyName>
1154 <!-- <append>true</append> -->
1161 <phase>post-integration-test</phase>
1164 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1165 <directory>${project.build.directory}/coverage-reports</directory>
1167 <include>*.exec</include>
1171 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1177 <!-- This plugin will be useful when we will have multi-modules project -->
1179 <groupId>org.codehaus.mojo</groupId>
1180 <artifactId>versions-maven-plugin</artifactId>
1181 <version>1.3.1</version>
1185 <groupId>com.github.eirslett</groupId>
1186 <artifactId>frontend-maven-plugin</artifactId>
1187 <version>1.6</version>
1189 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1190 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1191 <skip>${maven.test.skip}</skip>
1196 <id>install_node_and_npm</id>
1198 <goal>install-node-and-npm</goal>
1202 <nodeVersion>v8.11.1</nodeVersion>
1203 <npmVersion>5.6.0</npmVersion>
1207 <id>npm_install</id>
1213 <arguments>install</arguments>
1223 <arguments>run-script test:coverage</arguments>