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-http4</artifactId>
292 <groupId>org.apache.camel</groupId>
293 <artifactId>camel-spring-boot-starter</artifactId>
296 <groupId>org.apache.camel</groupId>
297 <artifactId>camel-jaxb-starter</artifactId>
300 <groupId>org.apache.camel</groupId>
301 <artifactId>camel-servlet-starter</artifactId>
304 <groupId>org.apache.camel</groupId>
305 <artifactId>camel-gson-starter</artifactId>
308 <groupId>org.apache.camel</groupId>
309 <artifactId>camel-swagger-java-starter</artifactId>
312 <groupId>javax.ws.rs</groupId>
313 <artifactId>jsr311-api</artifactId>
316 <groupId>org.slf4j</groupId>
317 <artifactId>slf4j-ext</artifactId>
320 <groupId>com.fasterxml.jackson.core</groupId>
321 <artifactId>jackson-databind</artifactId>
326 <groupId>javax.xml.bind</groupId>
327 <artifactId>jaxb-api</artifactId>
328 <version>2.3.0</version>
331 <groupId>org.glassfish.jersey.core</groupId>
332 <artifactId>jersey-common</artifactId>
333 <version>2.27</version>
335 <!-- Spring famework -->
337 <groupId>org.springframework.boot</groupId>
338 <artifactId>spring-boot-starter-web</artifactId>
341 <groupId>org.springframework.boot</groupId>
342 <artifactId>spring-boot-starter-json</artifactId>
347 <groupId>org.springframework.boot</groupId>
348 <artifactId>spring-boot-starter-tomcat</artifactId>
351 <groupId>org.springframework</groupId>
352 <artifactId>spring-jdbc</artifactId>
355 <groupId>org.springframework.boot</groupId>
356 <artifactId>spring-boot-starter-security</artifactId>
359 <groupId>org.springframework.boot</groupId>
360 <artifactId>spring-boot-autoconfigure</artifactId>
363 <groupId>org.springframework.boot</groupId>
364 <artifactId>spring-boot-starter-test</artifactId>
368 <groupId>com.vaadin.external.google</groupId>
369 <artifactId>android-json</artifactId>
374 <groupId>org.springframework.boot</groupId>
375 <artifactId>spring-boot-starter-data-jpa</artifactId>
377 <!-- Others dependencies -->
379 <groupId>org.onap.aaf.authz</groupId>
380 <artifactId>aaf-cadi-aaf</artifactId>
381 <version>2.1.1</version>
384 <groupId>javax.servlet</groupId>
385 <artifactId>servlet-api</artifactId>
390 <groupId>ch.qos.logback</groupId>
391 <artifactId>logback-core</artifactId>
392 <version>1.2.3</version>
395 <groupId>ch.qos.logback</groupId>
396 <artifactId>logback-classic</artifactId>
397 <version>1.2.3</version>
400 <groupId>commons-dbcp</groupId>
401 <artifactId>commons-dbcp</artifactId>
402 <version>1.4</version>
405 <groupId>commons-io</groupId>
406 <artifactId>commons-io</artifactId>
407 <version>2.6</version>
410 <groupId>com.googlecode.json-simple</groupId>
411 <artifactId>json-simple</artifactId>
414 <groupId>org.apache.commons</groupId>
415 <artifactId>commons-vfs2</artifactId>
416 <version>2.2</version>
419 <groupId>joda-time</groupId>
420 <artifactId>joda-time</artifactId>
423 <groupId>org.slf4j</groupId>
424 <artifactId>slf4j-api</artifactId>
427 <groupId>javax.ws.rs</groupId>
428 <artifactId>javax.ws.rs-api</artifactId>
429 <version>2.0</version>
432 <groupId>junit</groupId>
433 <artifactId>junit</artifactId>
436 <groupId>javax.transaction</groupId>
437 <artifactId>jta</artifactId>
438 <version>1.1</version>
441 <groupId>javax.persistence</groupId>
442 <artifactId>persistence-api</artifactId>
443 <version>1.0.2</version>
446 <groupId>org.onap.policy.engine</groupId>
447 <artifactId>PolicyEngineAPI</artifactId>
448 <version>1.3.3</version>
451 <groupId>com.google.guava</groupId>
452 <artifactId>guava</artifactId>
455 <artifactId>log4j</artifactId>
456 <groupId>log4j</groupId>
459 <groupId>org.slf4j</groupId>
460 <artifactId>slf4j-log4j12</artifactId>
463 <artifactId>apache-log4j-extras</artifactId>
464 <groupId>log4j</groupId>
467 <groupId>mysql</groupId>
468 <artifactId>mysql-connector-java</artifactId>
471 <groupId>commons-io</groupId>
472 <artifactId>commons-io</artifactId>
475 <artifactId>grizzly-http-server</artifactId>
476 <groupId>org.glassfish.grizzly</groupId>
479 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
480 <artifactId>dmaapClient</artifactId>
483 <groupId>org.onap.policy.common</groupId>
484 <artifactId>integrity-monitor</artifactId>
487 <groupId>org.onap.policy.common</groupId>
488 <artifactId>integrity-audit</artifactId>
491 <groupId>com.fasterxml.jackson.core</groupId>
492 <artifactId>jackson-databind</artifactId>
495 <groupId>org.onap.aaf.cadi</groupId>
496 <artifactId>cadi-aaf</artifactId>
499 <groupId>javax.jms</groupId>
500 <artifactId>jms</artifactId>
503 <groupId>commons-fileupload</groupId>
504 <artifactId>commons-fileupload</artifactId>
507 <groupId>com.att.research.xacml</groupId>
508 <artifactId>xacml</artifactId>
513 <groupId>org.onap.policy.common</groupId>
514 <artifactId>ONAP-Logging</artifactId>
515 <version>1.2.3</version>
518 <artifactId>log4j</artifactId>
519 <groupId>log4j</groupId>
522 <groupId>org.slf4j</groupId>
523 <artifactId>slf4j-log4j12</artifactId>
526 <artifactId>apache-log4j-extras</artifactId>
527 <groupId>log4j</groupId>
532 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
533 <artifactId>policy-yaml</artifactId>
534 <version>1.2.3</version>
537 <artifactId>log4j</artifactId>
538 <groupId>log4j</groupId>
541 <groupId>org.slf4j</groupId>
542 <artifactId>slf4j-log4j12</artifactId>
545 <artifactId>apache-log4j-extras</artifactId>
546 <groupId>log4j</groupId>
551 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
552 <artifactId>sdc</artifactId>
553 <version>1.2.3</version>
556 <artifactId>log4j</artifactId>
557 <groupId>log4j</groupId>
560 <groupId>org.slf4j</groupId>
561 <artifactId>slf4j-log4j12</artifactId>
564 <artifactId>apache-log4j-extras</artifactId>
565 <groupId>log4j</groupId>
570 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
571 <artifactId>aai</artifactId>
572 <version>1.2.3</version>
575 <artifactId>log4j</artifactId>
576 <groupId>log4j</groupId>
579 <groupId>org.slf4j</groupId>
580 <artifactId>slf4j-log4j12</artifactId>
583 <artifactId>apache-log4j-extras</artifactId>
584 <groupId>log4j</groupId>
589 <groupId>org.apache.commons</groupId>
590 <artifactId>commons-csv</artifactId>
591 <version>1.3</version>
593 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
595 <groupId>org.codehaus.plexus</groupId>
596 <artifactId>plexus-utils</artifactId>
597 <version>3.0.24</version>
600 <groupId>org.jboss.spec.javax.ws.rs</groupId>
601 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
602 <version>1.0.1.Final</version>
605 <groupId>com.google.guava</groupId>
606 <artifactId>guava</artifactId>
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.0</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.sonatype.plugins</groupId>
923 <artifactId>nexus-staging-maven-plugin</artifactId>
924 <version>1.6.7</version>
925 <extensions>true</extensions>
927 <nexusUrl>https://nexus.onap.org</nexusUrl>
928 <stagingProfileId>176c31dfe190a</stagingProfileId>
929 <serverId>ecomp-staging</serverId>
930 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
935 <groupId>org.apache.maven.plugins</groupId>
936 <artifactId>maven-surefire-plugin</artifactId>
937 <version>2.22.1</version>
939 <forkCount>1C</forkCount>
940 <reuseForks>true</reuseForks>
941 <useSystemClassLoader>false</useSystemClassLoader>
942 <argLine>${surefireArgLine}</argLine>
947 <groupId>org.apache.maven.plugins</groupId>
948 <artifactId>maven-failsafe-plugin</artifactId>
949 <version>2.22.1</version>
952 <id>integration-tests</id>
954 <goal>integration-test</goal>
958 <additionalClasspathElements>
959 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
960 </additionalClasspathElements>
962 <include>**/*ItCase.java</include>
964 <forkCount>1</forkCount>
965 <reuseForks>true</reuseForks>
966 <useSystemClassLoader>false</useSystemClassLoader>
967 <argLine>${failsafeArgLine}</argLine>
974 <groupId>io.fabric8</groupId>
975 <artifactId>docker-maven-plugin</artifactId>
976 <version>0.27.2</version>
979 <groupId>org.apache.httpcomponents</groupId>
980 <artifactId>httpclient</artifactId>
981 <version>4.5.5</version>
985 <verbose>true</verbose>
986 <apiVersion>1.35</apiVersion>
989 <name>library/mariadb:10.3.12</name>
990 <alias>mariadb</alias>
993 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
995 <hostname>mariadb</hostname>
998 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
999 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
1003 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
1007 <port>${docker.mariadb.port.host}:3306</port>
1012 <name>library/python:2-slim</name>
1013 <alias>python</alias>
1015 <hostname>python</hostname>
1018 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1019 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1032 <port>${docker.http-cache.port.host}:8080</port>
1034 <workingDir>/usr/src/http-cache-app</workingDir>
1036 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1041 <name>onap/clamp</name>
1042 <alias>onap-clamp</alias>
1047 <cleanup>true</cleanup>
1050 <tag>${project.docker.latesttagtimestamp.version}</tag>
1051 <tag>${project.docker.latesttag.version}</tag>
1053 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1055 <dockerFile>Dockerfile</dockerFile>
1057 <descriptor>assembly/clamp-files.xml</descriptor>
1058 <name>onap-clamp</name>
1063 <name>onap/clamp-dashboard-logstash</name>
1064 <alias>onap-clamp-dashboard-logstash</alias>
1069 <cleanup>true</cleanup>
1072 <tag>${project.docker.latesttagtimestamp.version}</tag>
1073 <tag>${project.docker.latesttag.version}</tag>
1075 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
1079 <name>onap/clamp-dashboard-kibana</name>
1080 <alias>onap-clamp-dashboard-kibana</alias>
1085 <cleanup>true</cleanup>
1088 <tag>${project.docker.latesttagtimestamp.version}</tag>
1089 <tag>${project.docker.latesttag.version}</tag>
1091 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1099 <id>generate-images</id>
1100 <phase>install</phase>
1106 <id>push-images</id>
1107 <phase>deploy</phase>
1113 <id>docker-start-for-it</id>
1114 <phase>pre-integration-test</phase>
1120 <id>docker-stop-for-it</id>
1121 <phase>post-integration-test</phase>
1130 <groupId>org.jacoco</groupId>
1131 <artifactId>jacoco-maven-plugin</artifactId>
1132 <version>0.8.2</version>
1134 <dumpOnExit>true</dumpOnExit>
1135 <append>true</append>
1137 <include>org.onap.clamp.*</include>
1142 <id>pre-unit-test</id>
1144 <goal>prepare-agent</goal>
1147 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1148 <propertyName>surefireArgLine</propertyName>
1149 <!-- <append>true</append> -->
1153 <id>pre-integration-test</id>
1154 <phase>pre-integration-test</phase>
1156 <goal>prepare-agent</goal>
1159 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1160 <propertyName>failsafeArgLine</propertyName>
1161 <!-- <append>true</append> -->
1168 <phase>post-integration-test</phase>
1171 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1172 <directory>${project.build.directory}/coverage-reports</directory>
1174 <include>*.exec</include>
1178 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1184 <!-- This plugin will be useful when we will have multi-modules project -->
1186 <groupId>org.codehaus.mojo</groupId>
1187 <artifactId>versions-maven-plugin</artifactId>
1188 <version>1.3.1</version>
1192 <groupId>com.github.eirslett</groupId>
1193 <artifactId>frontend-maven-plugin</artifactId>
1194 <version>1.6</version>
1196 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1197 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1198 <skip>${maven.test.skip}</skip>
1203 <id>install_node_and_npm</id>
1205 <goal>install-node-and-npm</goal>
1209 <nodeVersion>v8.11.1</nodeVersion>
1210 <npmVersion>5.6.0</npmVersion>
1214 <id>npm_install</id>
1220 <arguments>install</arguments>
1230 <arguments>run-script test:coverage</arguments>