1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2017-2019 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.1-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>
90 <ui.react.src>ui-react</ui.react.src>
91 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
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-starter</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.10</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>
412 <version>1.1.1</version>
415 <groupId>org.apache.commons</groupId>
416 <artifactId>commons-vfs2</artifactId>
417 <version>2.2</version>
420 <groupId>joda-time</groupId>
421 <artifactId>joda-time</artifactId>
424 <groupId>org.slf4j</groupId>
425 <artifactId>slf4j-api</artifactId>
428 <groupId>javax.ws.rs</groupId>
429 <artifactId>javax.ws.rs-api</artifactId>
430 <version>2.0</version>
433 <groupId>junit</groupId>
434 <artifactId>junit</artifactId>
437 <groupId>javax.transaction</groupId>
438 <artifactId>jta</artifactId>
439 <version>1.1</version>
442 <groupId>javax.persistence</groupId>
443 <artifactId>persistence-api</artifactId>
444 <version>1.0.2</version>
447 <groupId>org.onap.policy.engine</groupId>
448 <artifactId>PolicyEngineAPI</artifactId>
449 <version>1.3.3</version>
452 <groupId>com.google.guava</groupId>
453 <artifactId>guava</artifactId>
456 <artifactId>log4j</artifactId>
457 <groupId>log4j</groupId>
460 <groupId>org.slf4j</groupId>
461 <artifactId>slf4j-log4j12</artifactId>
464 <artifactId>apache-log4j-extras</artifactId>
465 <groupId>log4j</groupId>
468 <groupId>mysql</groupId>
469 <artifactId>mysql-connector-java</artifactId>
472 <groupId>commons-io</groupId>
473 <artifactId>commons-io</artifactId>
476 <artifactId>grizzly-http-server</artifactId>
477 <groupId>org.glassfish.grizzly</groupId>
480 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
481 <artifactId>dmaapClient</artifactId>
484 <groupId>org.onap.policy.common</groupId>
485 <artifactId>integrity-monitor</artifactId>
488 <groupId>org.onap.policy.common</groupId>
489 <artifactId>integrity-audit</artifactId>
492 <groupId>com.fasterxml.jackson.core</groupId>
493 <artifactId>jackson-databind</artifactId>
496 <groupId>org.onap.aaf.cadi</groupId>
497 <artifactId>cadi-aaf</artifactId>
500 <groupId>javax.jms</groupId>
501 <artifactId>jms</artifactId>
504 <groupId>commons-fileupload</groupId>
505 <artifactId>commons-fileupload</artifactId>
508 <groupId>com.att.research.xacml</groupId>
509 <artifactId>xacml</artifactId>
514 <groupId>org.onap.policy.common</groupId>
515 <artifactId>ONAP-Logging</artifactId>
516 <version>1.2.3</version>
519 <artifactId>log4j</artifactId>
520 <groupId>log4j</groupId>
523 <groupId>org.slf4j</groupId>
524 <artifactId>slf4j-log4j12</artifactId>
527 <artifactId>apache-log4j-extras</artifactId>
528 <groupId>log4j</groupId>
533 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
534 <artifactId>policy-yaml</artifactId>
535 <version>1.2.3</version>
538 <artifactId>log4j</artifactId>
539 <groupId>log4j</groupId>
542 <groupId>org.slf4j</groupId>
543 <artifactId>slf4j-log4j12</artifactId>
546 <artifactId>apache-log4j-extras</artifactId>
547 <groupId>log4j</groupId>
552 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
553 <artifactId>sdc</artifactId>
554 <version>1.2.3</version>
557 <artifactId>log4j</artifactId>
558 <groupId>log4j</groupId>
561 <groupId>org.slf4j</groupId>
562 <artifactId>slf4j-log4j12</artifactId>
565 <artifactId>apache-log4j-extras</artifactId>
566 <groupId>log4j</groupId>
571 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
572 <artifactId>aai</artifactId>
573 <version>1.2.3</version>
576 <artifactId>log4j</artifactId>
577 <groupId>log4j</groupId>
580 <groupId>org.slf4j</groupId>
581 <artifactId>slf4j-log4j12</artifactId>
584 <artifactId>apache-log4j-extras</artifactId>
585 <groupId>log4j</groupId>
590 <groupId>org.apache.commons</groupId>
591 <artifactId>commons-csv</artifactId>
592 <version>1.3</version>
594 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
596 <groupId>org.codehaus.plexus</groupId>
597 <artifactId>plexus-utils</artifactId>
598 <version>3.0.24</version>
601 <groupId>org.jboss.spec.javax.ws.rs</groupId>
602 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
603 <version>1.0.1.Final</version>
606 <groupId>com.google.guava</groupId>
607 <artifactId>guava</artifactId>
608 <version>27.0-jre</version>
610 <!-- Remove the MYSQL connector and replace it by Mariadb -->
612 <groupId>org.mariadb.jdbc</groupId>
613 <artifactId>mariadb-java-client</artifactId>
614 <version>2.2.1</version>
616 <!-- For SDC Controller -->
618 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
619 <artifactId>sdc-distribution-client</artifactId>
620 <version>1.3.0</version>
623 <groupId>org.onap.sdc.sdc-tosca</groupId>
624 <artifactId>sdc-tosca</artifactId>
625 <version>1.5.1</version>
629 <groupId>org.assertj</groupId>
630 <artifactId>assertj-core</artifactId>
631 <version>3.10.0</version>
635 <groupId>org.mockito</groupId>
636 <artifactId>mockito-core</artifactId>
637 <version>1.10.19</version>
643 <finalName>clamp</finalName>
647 <directory>src/test/resources</directory>
649 <exclude>**/*.jks</exclude>
650 <exclude>**/*.csar</exclude>
652 <filtering>true</filtering>
655 <directory>src/test/resources/https</directory>
657 <include>**.jks</include>
659 <filtering>false</filtering>
660 <targetPath>https</targetPath>
663 <directory>src/test/resources/example/sdc</directory>
665 <include>**.csar</include>
667 <filtering>false</filtering>
668 <targetPath>example/sdc</targetPath>
671 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
673 <directory>src/test/javascript</directory>
675 <include>**/**.json</include>
677 <filtering>true</filtering>
678 <targetPath>${project.build.directory}/clamp-ui</targetPath>
681 <directory>src/main/resources/META-INF/resources/designer</directory>
682 <filtering>false</filtering>
683 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
687 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
688 Otherwise they will be broken and unreadable
691 <directory>src/main/resources</directory>
692 <filtering>true</filtering>
694 <exclude>clds/aaf/**</exclude>
698 <directory>src/main/resources</directory>
699 <filtering>false</filtering>
701 <include>clds/aaf/**</include>
705 <directory>${ui.react.src}</directory>
707 <include>src/**</include>
708 <include>public/**</include>
709 <include>package.json</include>
710 <include>package-lock.json</include>
712 <filtering>false</filtering>
713 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
719 <groupId>de.jpdigital</groupId>
720 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
721 <version>2.2.0</version>
724 <groupId>javax.xml.bind</groupId>
725 <artifactId>jaxb-api</artifactId>
726 <version>2.3.0</version>
731 <phase>process-classes</phase>
736 <packages><param>org.onap.clamp.dao.model</param></packages>
737 <dialects><param>MARIADB53</param></dialects>
738 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
739 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
740 <!-- <createDropStatements>true</createDropStatements> -->
741 <omitDialectFromFileName>true</omitDialectFromFileName>
747 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
748 generate a list of .adoc files containing the APIs info in more structured
751 <groupId>io.github.swagger2markup</groupId>
752 <artifactId>swagger2markup-maven-plugin</artifactId>
753 <version>1.3.3</version>
756 <groupId>io.github.swagger2markup</groupId>
757 <artifactId>swagger2markup-import-files-ext</artifactId>
758 <version>1.3.3</version>
761 <groupId>io.github.swagger2markup</groupId>
762 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
763 <version>1.3.3</version>
767 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
768 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
770 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
775 <phase>post-integration-test</phase>
777 <goal>convertSwagger2markup</goal>
783 <!-- Run the generated asciidoc through Asciidoctor to generate other
784 documentation types, such as PDFs or HTML5 -->
786 <groupId>org.asciidoctor</groupId>
787 <artifactId>asciidoctor-maven-plugin</artifactId>
788 <version>1.5.7.1</version>
791 <groupId>org.asciidoctor</groupId>
792 <artifactId>asciidoctorj-pdf</artifactId>
793 <version>1.5.0-alpha.10.1</version>
797 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
798 <sourceDocumentName>swagger.adoc</sourceDocumentName>
800 <doctype>book</doctype>
802 <toclevels>3</toclevels>
807 <generated>${project.build.directory}/asciidoc/generated</generated>
814 <phase>post-integration-test</phase>
816 <goal>process-asciidoc</goal>
819 <backend>html5</backend>
820 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
821 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
826 <phase>post-integration-test</phase>
828 <goal>process-asciidoc</goal>
831 <backend>pdf</backend>
832 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
838 <groupId>org.codehaus.groovy.maven</groupId>
839 <artifactId>gmaven-plugin</artifactId>
840 <version>1.0</version>
843 <phase>validate</phase>
848 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
854 <groupId>org.apache.maven.plugins</groupId>
855 <artifactId>maven-jar-plugin</artifactId>
856 <version>3.0.2</version>
859 <id>jar-with-only-classes</id>
860 <phase>package</phase>
865 <classifier>classes</classifier>
867 <include>org/**</include>
874 <groupId>org.codehaus.mojo</groupId>
875 <artifactId>build-helper-maven-plugin</artifactId>
876 <version>3.0.0</version>
880 <goal>attach-artifact</goal>
882 <phase>package</phase>
886 <file>${project.build.directory}/clamp-classes.jar</file>
888 <classifier>classes</classifier>
894 <id>reserve-port-for-tests</id>
895 <phase>process-resources</phase>
897 <goal>reserve-network-port</goal>
901 <portName>docker.mariadb.port.host</portName>
902 <portName>docker.http-cache.port.host</portName>
903 <portName>clamp.it.tests.http-redirected</portName>
904 <portName>clamp.it.tests.https</portName>
905 <portName>clamp.it.tests.http</portName>
913 <groupId>org.springframework.boot</groupId>
914 <artifactId>spring-boot-maven-plugin</artifactId>
915 <!-- Temporary fix -->
916 <version>1.5.13.RELEASE</version>
917 <!-- <version>${springboot.version}</version> -->
921 <goal>repackage</goal>
923 <phase>package</phase>
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-backend</name>
1035 <alias>onap-clamp-backend</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>backend/Dockerfile</dockerFile>
1050 <descriptor>backend/backend-files.xml</descriptor>
1051 <name>onap-clamp-backend</name>
1056 <name>onap/clamp-frontend</name>
1057 <alias>onap-clamp-frontend</alias>
1062 <cleanup>true</cleanup>
1065 <tag>${project.docker.latesttagtimestamp.version}</tag>
1066 <tag>${project.docker.latesttag.version}</tag>
1068 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1070 <dockerFile>frontend/Dockerfile</dockerFile>
1072 <descriptor>frontend/frontend-files.xml</descriptor>
1073 <name>onap-clamp-frontend</name>
1078 <name>onap/clamp-dashboard-elasticsearch</name>
1079 <alias>onap-clamp-dashboard-elasticsearch</alias>
1084 <cleanup>true</cleanup>
1087 <tag>${project.docker.latesttagtimestamp.version}</tag>
1088 <tag>${project.docker.latesttag.version}</tag>
1090 <dockerFile>elasticsearch/Dockerfile</dockerFile>
1094 <name>onap/clamp-dashboard-logstash</name>
1095 <alias>onap-clamp-dashboard-logstash</alias>
1100 <cleanup>true</cleanup>
1103 <tag>${project.docker.latesttagtimestamp.version}</tag>
1104 <tag>${project.docker.latesttag.version}</tag>
1106 <dockerFile>logstash/Dockerfile</dockerFile>
1110 <name>onap/clamp-dashboard-kibana</name>
1111 <alias>onap-clamp-dashboard-kibana</alias>
1116 <cleanup>true</cleanup>
1119 <tag>${project.docker.latesttagtimestamp.version}</tag>
1120 <tag>${project.docker.latesttag.version}</tag>
1122 <dockerFile>kibana/Dockerfile</dockerFile>
1130 <id>generate-images</id>
1131 <phase>install</phase>
1137 <id>push-images</id>
1138 <phase>deploy</phase>
1144 <id>docker-start-for-it</id>
1145 <phase>pre-integration-test</phase>
1151 <id>docker-stop-for-it</id>
1152 <phase>post-integration-test</phase>
1161 <groupId>org.jacoco</groupId>
1162 <artifactId>jacoco-maven-plugin</artifactId>
1163 <version>0.8.2</version>
1165 <dumpOnExit>true</dumpOnExit>
1166 <append>true</append>
1168 <include>org.onap.clamp.*</include>
1173 <id>pre-unit-test</id>
1175 <goal>prepare-agent</goal>
1178 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1179 <propertyName>surefireArgLine</propertyName>
1180 <!-- <append>true</append> -->
1184 <id>pre-integration-test</id>
1185 <phase>pre-integration-test</phase>
1187 <goal>prepare-agent</goal>
1190 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1191 <propertyName>failsafeArgLine</propertyName>
1192 <!-- <append>true</append> -->
1199 <phase>post-integration-test</phase>
1202 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1203 <directory>${project.build.directory}/coverage-reports</directory>
1205 <include>*.exec</include>
1209 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1215 <!-- This plugin will be useful when we will have multi-modules project -->
1217 <groupId>org.codehaus.mojo</groupId>
1218 <artifactId>versions-maven-plugin</artifactId>
1219 <version>1.3.1</version>
1223 <groupId>com.github.eirslett</groupId>
1224 <artifactId>frontend-maven-plugin</artifactId>
1225 <version>1.8.0</version>
1227 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
1228 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1232 <id>install_node_and_npm</id>
1234 <goal>install-node-and-npm</goal>
1236 <phase>generate-sources</phase>
1238 <nodeVersion>v8.11.1</nodeVersion>
1239 <npmVersion>5.6.0</npmVersion>
1243 <id>npm_install</id>
1247 <phase>compile</phase>
1249 <arguments>install</arguments>
1259 <arguments>run-script test</arguments>
1263 <id>npm_publish</id>
1267 <phase>deploy</phase>
1270 <arguments>publish --registry ${npm.publish.url}</arguments>