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"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.clamp</groupId>
28 <artifactId>clds</artifactId>
29 <version>5.0.6-SNAPSHOT</version>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
36 <version>2.1.0</version>
40 This is the MAVEN project that builds everything for ONAP CLAMP.
41 Docker engine is normally requires to perfom all possible tasks (including integration tests)
44 - The ONAP CLAMP JAR that contains CLAMP back-end code.
45 - The DOCKER images for:
46 * CLAMP backend (Java Spring)
47 * CLAMP frontend (Javscript React)
50 - The CLAMP backend, JAVA unit testing
51 - The CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae emulator written in python)
52 - The CLAMP frontend, Javascrip tests (NodeJS(NPM) + JEST + Enzyme fro React)
54 The test coverage for dev's can be found after a "clean install" build in:
55 - Clamp backend: target/jacoco-dev.exec (unit tests + integration tests merged)
56 or separately target/coverage-reports/jacoco.exec and target/coverage-reports/jacoco-it.exec
57 - Clamp frontend: target/ui-react/coverage
60 - mvn clean install: Build Clamp backend JAR + unit tests + integration tests + NPM tests (+coverage for all)
61 - mvn clean install -DskipITs=true: Build Clamp backend JAR + unit tests + NPM tests (+coverage for all), it does not require a DOCKER engine
62 - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images
64 To start CLAMP (Build it before):
65 - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml
66 - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh
67 - Use your IDE to use the Jar or start NVM/NPM
72 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
73 <clamp.project.version>${project.version}</clamp.project.version>
74 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
75 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
76 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
78 <eelf.core.version>1.0.0</eelf.core.version>
79 <camel.version>2.25.0</camel.version>
80 <springboot.version>2.2.5.RELEASE</springboot.version>
82 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
83 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
84 <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/jacoco-html-xml-reports/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
85 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
86 <sonar.projectVersion>${project.version}</sonar.projectVersion>
87 <sonar.log.level>DEBUG</sonar.log.level>
88 <sonar.nodejs.executable>${project.build.directory}/${ui.react.src}/node/node</sonar.nodejs.executable>
89 <sonar.verbose>true</sonar.verbose>
90 <sonar.sources>src/main,${project.build.directory}/${ui.react.src}/src</sonar.sources>
91 <sonar.exclusions>src/main/resources/**</sonar.exclusions>
92 <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
93 <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
94 <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js</sonar.coverage.exclusions>
95 <docker.push.registry>localhost:5000</docker.push.registry>
96 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
97 <docker.skip.build>true</docker.skip.build>
98 <docker.skip.push>true</docker.skip.push>
99 <docker.skip.tag>true</docker.skip.tag>
100 <skip.staging.artifacts>false</skip.staging.artifacts>
101 <python.http.proxy.param />
102 <tomcat.version>9.0.33</tomcat.version>
103 <ui.react.src>ui-react</ui.react.src>
104 <ui.react.lib.src>ui-react-lib</ui.react.lib.src>
105 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
109 <!-- BEGIN: NOT USABLE profiles, those are defined when specific flags are enabled -->
111 <id>without-test</id>
114 <name>maven.test.skip</name>
119 <docker.skip.run>true</docker.skip.run>
120 <docker.skip>true</docker.skip>
124 <id>without-IT-only</id>
132 <docker.skip.run>true</docker.skip.run>
133 <docker.skip>true</docker.skip>
137 <id>without-IT-only2</id>
140 <name>skipTests</name>
145 <docker.skip.run>true</docker.skip.run>
146 <docker.skip>true</docker.skip>
149 <!-- END: NOT USABLE profiles, those are defined when specific flags are enabled -->
153 <skip.staging.artifacts>true</skip.staging.artifacts>
154 <docker.skip.build>false</docker.skip.build>
155 <docker.skip.tag>false</docker.skip.tag>
156 <docker.skip.push>false</docker.skip.push>
157 <docker.skip>false</docker.skip>
162 <distributionManagement>
164 <id>ecomp-releases</id>
165 <name>Clamp Release Repository</name>
166 <url>https://nexus.onap.org/content/repositories/releases/</url>
169 <id>ecomp-snapshots</id>
170 <name>Clamp Snapshot Repository</name>
171 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
172 </snapshotRepository>
175 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
177 </distributionManagement>
182 <name>onap-public</name>
183 <url>https://nexus.onap.org/content/repositories/public/</url>
185 <enabled>true</enabled>
188 <enabled>false</enabled>
192 <id>ecomp-releases</id>
193 <name>ONAP Release Repository</name>
194 <url>https://nexus.onap.org/content/repositories/releases/</url>
197 <id>ecomp-staging</id>
198 <name>ONAP Staging Repository</name>
199 <url>https://nexus.onap.org/content/repositories/staging/</url>
202 <id>ecomp-snapshots</id>
203 <name>ONAP Snapshot Repository</name>
204 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
206 <enabled>true</enabled>
209 <enabled>false</enabled>
214 <url>http://repo1.maven.org/maven2/</url>
220 <name>onap-public</name>
221 <url>https://nexus.onap.org/content/repositories/public/</url>
223 <enabled>true</enabled>
226 <enabled>false</enabled>
231 <url>http://repo1.maven.org/maven2/</url>
233 </pluginRepositories>
235 <dependencyManagement>
237 <!-- Spring Boot BOM -->
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-dependencies</artifactId>
241 <version>${springboot.version}</version>
243 <scope>import</scope>
247 <groupId>org.apache.camel</groupId>
248 <artifactId>camel-spring-boot-dependencies</artifactId>
249 <version>${camel.version}</version>
251 <scope>import</scope>
254 </dependencyManagement>
258 <groupId>org.apache.xmlgraphics</groupId>
259 <artifactId>batik-svggen</artifactId>
260 <version>1.11</version>
263 <groupId>xml-apis</groupId>
264 <artifactId>xml-apis</artifactId>
269 <groupId>org.apache.xmlgraphics</groupId>
270 <artifactId>batik-svg-dom</artifactId>
271 <version>1.11</version>
274 <groupId>xml-apis</groupId>
275 <artifactId>xml-apis</artifactId>
280 <groupId>org.apache.xmlgraphics</groupId>
281 <artifactId>batik-transcoder</artifactId>
282 <version>1.11</version>
285 <groupId>xml-apis</groupId>
286 <artifactId>xml-apis</artifactId>
291 <groupId>com.att.eelf</groupId>
292 <artifactId>eelf-core</artifactId>
293 <version>${eelf.core.version}</version>
296 <groupId>org.powermock</groupId>
297 <artifactId>powermock-module-junit4</artifactId>
300 <groupId>org.powermock</groupId>
301 <artifactId>powermock-api-mockito</artifactId>
306 <groupId>org.codehaus.janino</groupId>
307 <artifactId>janino</artifactId>
308 <version>3.0.8</version>
311 <groupId>org.apache.tomcat.embed</groupId>
312 <artifactId>tomcat-embed-core</artifactId>
313 <version>${tomcat.version}</version>
316 <groupId>org.apache.tomcat.embed</groupId>
317 <artifactId>tomcat-embed-el</artifactId>
318 <version>${tomcat.version}</version>
321 <groupId>org.apache.tomcat.embed</groupId>
322 <artifactId>tomcat-embed-websocket</artifactId>
323 <version>${tomcat.version}</version>
326 <groupId>org.apache.tomcat</groupId>
327 <artifactId>tomcat-annotations-api</artifactId>
328 <version>${tomcat.version}</version>
332 <groupId>org.apache.camel</groupId>
333 <artifactId>camel-http4-starter</artifactId>
336 <groupId>org.apache.camel</groupId>
337 <artifactId>camel-spring-boot-starter</artifactId>
340 <groupId>org.apache.camel</groupId>
341 <artifactId>camel-jaxb-starter</artifactId>
344 <groupId>org.apache.camel</groupId>
345 <artifactId>camel-servlet-starter</artifactId>
348 <groupId>org.apache.camel</groupId>
349 <artifactId>camel-gson-starter</artifactId>
352 <groupId>org.apache.camel</groupId>
353 <artifactId>camel-swagger-java-starter</artifactId>
356 <groupId>javax.ws.rs</groupId>
357 <artifactId>jsr311-api</artifactId>
360 <groupId>org.slf4j</groupId>
361 <artifactId>slf4j-ext</artifactId>
364 <groupId>com.fasterxml.jackson.core</groupId>
365 <artifactId>jackson-databind</artifactId>
370 <groupId>javax.xml.ws</groupId>
371 <artifactId>jaxws-api</artifactId>
372 <version>2.3.1</version>
375 <groupId>javax.xml.bind</groupId>
376 <artifactId>jaxb-api</artifactId>
377 <version>2.3.0</version>
380 <groupId>org.glassfish.jersey.core</groupId>
381 <artifactId>jersey-common</artifactId>
382 <version>2.27</version>
384 <!-- Spring famework -->
386 <groupId>org.springframework.boot</groupId>
387 <artifactId>spring-boot-starter-web</artifactId>
390 <groupId>org.springframework.boot</groupId>
391 <artifactId>spring-boot-starter-json</artifactId>
394 <groupId>org.springframework</groupId>
395 <artifactId>spring-web</artifactId>
400 <groupId>org.springframework.boot</groupId>
401 <artifactId>spring-boot-starter-tomcat</artifactId>
404 <groupId>org.springframework</groupId>
405 <artifactId>spring-jdbc</artifactId>
408 <groupId>org.springframework.boot</groupId>
409 <artifactId>spring-boot-starter-security</artifactId>
412 <groupId>org.springframework.boot</groupId>
413 <artifactId>spring-boot-autoconfigure</artifactId>
416 <groupId>org.springframework.boot</groupId>
417 <artifactId>spring-boot-starter-test</artifactId>
421 <groupId>com.vaadin.external.google</groupId>
422 <artifactId>android-json</artifactId>
427 <groupId>org.springframework.boot</groupId>
428 <artifactId>spring-boot-starter-data-jpa</artifactId>
430 <!-- Others dependencies -->
432 <groupId>org.onap.aaf.authz</groupId>
433 <artifactId>aaf-cadi-aaf</artifactId>
434 <version>2.1.15</version>
437 <groupId>javax.servlet</groupId>
438 <artifactId>servlet-api</artifactId>
441 <groupId>log4j</groupId>
442 <artifactId>log4j</artifactId>
447 <groupId>ch.qos.logback</groupId>
448 <artifactId>logback-core</artifactId>
449 <version>1.2.3</version>
452 <groupId>ch.qos.logback</groupId>
453 <artifactId>logback-classic</artifactId>
454 <version>1.2.3</version>
457 <groupId>commons-dbcp</groupId>
458 <artifactId>commons-dbcp</artifactId>
459 <version>1.4</version>
462 <groupId>commons-io</groupId>
463 <artifactId>commons-io</artifactId>
464 <version>2.6</version>
467 <groupId>com.googlecode.json-simple</groupId>
468 <artifactId>json-simple</artifactId>
469 <version>1.1.1</version>
472 <groupId>org.apache.commons</groupId>
473 <artifactId>commons-vfs2</artifactId>
474 <version>2.2</version>
477 <groupId>joda-time</groupId>
478 <artifactId>joda-time</artifactId>
481 <groupId>org.slf4j</groupId>
482 <artifactId>slf4j-api</artifactId>
485 <groupId>javax.ws.rs</groupId>
486 <artifactId>javax.ws.rs-api</artifactId>
487 <version>2.0</version>
490 <groupId>junit</groupId>
491 <artifactId>junit</artifactId>
494 <groupId>javax.transaction</groupId>
495 <artifactId>jta</artifactId>
496 <version>1.1</version>
499 <groupId>javax.persistence</groupId>
500 <artifactId>persistence-api</artifactId>
501 <version>1.0.2</version>
504 <groupId>org.apache.commons</groupId>
505 <artifactId>commons-csv</artifactId>
506 <version>1.3</version>
508 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
510 <groupId>org.codehaus.plexus</groupId>
511 <artifactId>plexus-utils</artifactId>
512 <version>3.0.24</version>
515 <groupId>org.jboss.spec.javax.ws.rs</groupId>
516 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
517 <version>1.0.1.Final</version>
520 <groupId>com.google.guava</groupId>
521 <artifactId>guava</artifactId>
522 <version>27.0-jre</version>
525 <groupId>commons-codec</groupId>
526 <artifactId>commons-codec</artifactId>
527 <version>1.13</version>
529 <!-- Remove the MYSQL connector and replace it by Mariadb -->
531 <groupId>org.mariadb.jdbc</groupId>
532 <artifactId>mariadb-java-client</artifactId>
533 <version>2.2.1</version>
535 <!-- For SDC Controller -->
537 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
538 <artifactId>sdc-distribution-client</artifactId>
539 <version>1.3.0</version>
542 <groupId>org.onap.sdc.sdc-tosca</groupId>
543 <artifactId>sdc-tosca</artifactId>
544 <version>1.5.1</version>
547 <groupId>org.yaml</groupId>
548 <artifactId>snakeyaml</artifactId>
549 <version>1.26</version>
552 <groupId>org.dom4j</groupId>
553 <artifactId>dom4j</artifactId>
554 <version>2.1.3</version>
557 <groupId>org.springframework.security</groupId>
558 <artifactId>spring-security-web</artifactId>
559 <version>5.2.3.RELEASE</version>
564 <groupId>org.assertj</groupId>
565 <artifactId>assertj-core</artifactId>
566 <version>3.10.0</version>
570 <groupId>org.mockito</groupId>
571 <artifactId>mockito-core</artifactId>
572 <version>2.28.2</version>
576 <groupId>org.powermock</groupId>
577 <artifactId>powermock-api-mockito2</artifactId>
578 <version>2.0.4</version>
582 <groupId>org.powermock</groupId>
583 <artifactId>powermock-module-junit4</artifactId>
584 <version>2.0.4</version>
590 <finalName>clamp</finalName>
594 <directory>src/main/resources</directory>
595 <filtering>true</filtering>
597 <exclude>clds/aaf/**</exclude>
601 <directory>src/main/resources</directory>
602 <filtering>false</filtering>
604 <include>clds/aaf/**</include>
608 <directory>src/test/resources</directory>
610 <exclude>**/*.jks</exclude>
611 <exclude>**/*.csar</exclude>
613 <filtering>true</filtering>
616 <directory>src/test/resources/https</directory>
618 <include>**.jks</include>
620 <filtering>false</filtering>
621 <targetPath>https</targetPath>
624 <directory>src/test/resources/example/sdc</directory>
626 <include>**.csar</include>
628 <filtering>false</filtering>
629 <targetPath>example/sdc</targetPath>
633 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
634 they will be broken and unreadable -->
636 <directory>src/main/resources</directory>
637 <filtering>true</filtering>
639 <exclude>clds/aaf/**</exclude>
643 <directory>src/main/resources</directory>
644 <filtering>false</filtering>
646 <include>clds/aaf/**</include>
650 <directory>${ui.react.src}</directory>
652 <exclude>node_modules</exclude>
655 <include>src/**</include>
656 <include>public/**</include>
657 <include>package.json</include>
658 <include>package-lock.json</include>
660 <filtering>true</filtering>
661 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
664 <directory>${ui.react.src}</directory>
666 <include>src/**</include>
669 <exclude>**/__snapshots__/**</exclude>
670 <exclude>**/**.test.js</exclude>
672 <filtering>true</filtering>
673 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
676 <directory>${ui.react.lib.src}</directory>
678 <include>**</include>
681 <exclude>node_modules/**</exclude>
682 <exclude>package-lock.json</exclude>
684 <filtering>true</filtering>
685 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
691 <groupId>de.jpdigital</groupId>
692 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
693 <version>2.2.0</version>
696 <groupId>javax.xml.bind</groupId>
697 <artifactId>jaxb-api</artifactId>
698 <version>2.3.0</version>
703 <phase>process-classes</phase>
709 <param>org.onap.clamp</param>
712 <param>MARIADB53</param>
714 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
715 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
716 <!-- <createDropStatements>true</createDropStatements> -->
717 <omitDialectFromFileName>true</omitDialectFromFileName>
723 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
724 a list of .adoc files containing the APIs info in more structured way -->
726 <groupId>io.github.swagger2markup</groupId>
727 <artifactId>swagger2markup-maven-plugin</artifactId>
728 <version>1.3.3</version>
731 <groupId>io.github.swagger2markup</groupId>
732 <artifactId>swagger2markup-import-files-ext</artifactId>
733 <version>1.3.3</version>
736 <groupId>io.github.swagger2markup</groupId>
737 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
738 <version>1.3.3</version>
742 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
743 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
745 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
750 <phase>post-integration-test</phase>
752 <goal>convertSwagger2markup</goal>
758 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
759 types, such as PDFs or HTML5 -->
761 <groupId>org.asciidoctor</groupId>
762 <artifactId>asciidoctor-maven-plugin</artifactId>
763 <version>1.5.7.1</version>
766 <groupId>org.asciidoctor</groupId>
767 <artifactId>asciidoctorj-pdf</artifactId>
768 <version>1.5.0-alpha.10.1</version>
772 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
773 <sourceDocumentName>swagger.adoc</sourceDocumentName>
775 <doctype>book</doctype>
777 <toclevels>3</toclevels>
782 <generated>${project.build.directory}/asciidoc/generated</generated>
789 <phase>post-integration-test</phase>
791 <goal>process-asciidoc</goal>
794 <backend>html5</backend>
795 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
796 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
801 <phase>post-integration-test</phase>
803 <goal>process-asciidoc</goal>
806 <backend>pdf</backend>
807 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
813 <groupId>org.codehaus.groovy.maven</groupId>
814 <artifactId>gmaven-plugin</artifactId>
815 <version>1.0</version>
819 <phase>validate</phase>
824 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
828 <id>npm-repos-selection</id>
829 <phase>validate</phase>
834 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
840 <groupId>org.apache.maven.plugins</groupId>
841 <artifactId>maven-jar-plugin</artifactId>
842 <version>3.0.2</version>
845 <id>jar-with-only-classes</id>
846 <phase>package</phase>
851 <classifier>classes</classifier>
853 <include>org/**</include>
860 <groupId>org.codehaus.mojo</groupId>
861 <artifactId>build-helper-maven-plugin</artifactId>
862 <version>3.0.0</version>
866 <goal>attach-artifact</goal>
868 <phase>package</phase>
872 <file>${project.build.directory}/clamp-classes.jar</file>
874 <classifier>classes</classifier>
880 <id>reserve-port-for-tests</id>
881 <phase>process-resources</phase>
883 <goal>reserve-network-port</goal>
887 <portName>docker.mariadb.port.host</portName>
888 <portName>docker.http-cache.port.host</portName>
889 <portName>clamp.it.tests.http-redirected</portName>
890 <portName>clamp.it.tests.https</portName>
891 <portName>clamp.it.tests.http</portName>
899 <groupId>org.springframework.boot</groupId>
900 <artifactId>spring-boot-maven-plugin</artifactId>
901 <version>${springboot.version}</version>
905 <goal>repackage</goal>
907 <phase>package</phase>
912 <groupId>org.apache.maven.plugins</groupId>
913 <artifactId>maven-surefire-plugin</artifactId>
914 <version>2.22.2</version>
916 <forkCount>1C</forkCount>
917 <reuseForks>true</reuseForks>
918 <useSystemClassLoader>false</useSystemClassLoader>
919 <argLine>${surefireArgLine}</argLine>
924 <groupId>org.apache.maven.plugins</groupId>
925 <artifactId>maven-failsafe-plugin</artifactId>
926 <version>2.22.2</version>
929 <id>integration-tests</id>
931 <goal>integration-test</goal>
935 <additionalClasspathElements>
936 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
937 </additionalClasspathElements>
939 <include>**/*ItCase.java</include>
941 <forkCount>1C</forkCount>
942 <reuseForks>true</reuseForks>
943 <useSystemClassLoader>false</useSystemClassLoader>
944 <argLine>${failsafeArgLine}</argLine>
950 <groupId>io.fabric8</groupId>
951 <artifactId>docker-maven-plugin</artifactId>
952 <version>0.31.0</version>
955 <groupId>org.apache.httpcomponents</groupId>
956 <artifactId>httpclient</artifactId>
957 <version>4.5.5</version>
961 <verbose>true</verbose>
962 <apiVersion>1.35</apiVersion>
965 <name>library/mariadb:10.3.12</name>
966 <alias>mariadb</alias>
969 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
971 <hostname>mariadb</hostname>
974 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
975 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
979 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
982 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
986 <port>${docker.mariadb.port.host}:3306</port>
994 <name>library/python:2-slim</name>
995 <alias>python</alias>
997 <hostname>python</hostname>
1000 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1001 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1014 <port>${docker.http-cache.port.host}:8080</port>
1016 <workingDir>/usr/src/http-cache-app</workingDir>
1018 <shell>./start_http_cache.sh ${python.http.proxy.param}
1019 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1027 <name>onap/clamp-backend</name>
1028 <alias>onap-clamp-backend</alias>
1033 <cleanup>true</cleanup>
1036 <tag>${project.docker.latesttagtimestamp.version}</tag>
1037 <tag>${project.docker.latesttag.version}</tag>
1039 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1041 <dockerFile>backend/Dockerfile</dockerFile>
1043 <descriptor>backend/backend-files.xml</descriptor>
1044 <name>onap-clamp-backend</name>
1049 <name>onap/clamp-frontend</name>
1050 <alias>onap-clamp-frontend</alias>
1055 <cleanup>true</cleanup>
1058 <tag>${project.docker.latesttagtimestamp.version}</tag>
1059 <tag>${project.docker.latesttag.version}</tag>
1061 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1063 <dockerFile>frontend/Dockerfile</dockerFile>
1065 <descriptor>frontend/frontend-files.xml</descriptor>
1066 <name>onap-clamp-frontend</name>
1075 <id>generate-images</id>
1076 <phase>install</phase>
1082 <id>push-images</id>
1083 <phase>deploy</phase>
1089 <id>docker-start-for-it</id>
1090 <phase>pre-integration-test</phase>
1096 <id>docker-stop-for-it</id>
1097 <phase>post-integration-test</phase>
1106 <groupId>org.jacoco</groupId>
1107 <artifactId>jacoco-maven-plugin</artifactId>
1108 <version>0.8.5</version>
1110 <dumpOnExit>true</dumpOnExit>
1111 <append>true</append>
1113 <include>org/onap/clamp/**</include>
1118 <id>pre-unit-test</id>
1120 <goal>prepare-agent</goal>
1123 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1124 <propertyName>surefireArgLine</propertyName>
1125 <!-- <append>true</append> -->
1129 <id>pre-integration-test</id>
1130 <phase>pre-integration-test</phase>
1132 <goal>prepare-agent</goal>
1135 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1136 <propertyName>failsafeArgLine</propertyName>
1137 <!-- <append>true</append> -->
1144 <phase>post-integration-test</phase>
1148 implementation="org.apache.maven.shared.model.fileset.FileSet">
1149 <directory>${project.build.directory}/coverage-reports</directory>
1151 <include>*.exec</include>
1155 <destFile>${project.build.directory}/jacoco.exec</destFile>
1164 <!-- Setting explicit path, so that we remember where it picks them up from -->
1165 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1166 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
1172 <!-- This plugin will be useful when we will have multi-modules project -->
1174 <groupId>org.codehaus.mojo</groupId>
1175 <artifactId>versions-maven-plugin</artifactId>
1176 <version>1.3.1</version>
1180 <groupId>com.github.eirslett</groupId>
1181 <artifactId>frontend-maven-plugin</artifactId>
1182 <version>1.8.0</version>
1184 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
1188 <id>install_node_and_npm</id>
1190 <goal>install-node-and-npm</goal>
1192 <phase>generate-sources</phase>
1194 <nodeVersion>v12.13.0</nodeVersion>
1195 <npmVersion>6.13.0</npmVersion>
1199 <id>npm_install</id>
1203 <phase>compile</phase>
1205 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1206 <arguments>install</arguments>
1216 <skip>${maven.test.skip}</skip>
1217 <arguments>run-script test:coverage</arguments>
1218 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1222 <id>npm_install_lib</id>
1226 <phase>deploy</phase>
1228 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1229 <arguments>install</arguments>
1233 <id>npm_build_lib</id>
1237 <phase>deploy</phase>
1239 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1240 <arguments>run build</arguments>
1244 <id>npm_publish</id>
1248 <phase>deploy</phase>
1251 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1252 <arguments>publish</arguments>
1258 <groupId>org.apache.maven.plugins</groupId>
1259 <artifactId>maven-compiler-plugin</artifactId>
1260 <version>3.8.1</version>
1267 <groupId>org.sonarsource.scanner.maven</groupId>
1268 <artifactId>sonar-maven-plugin</artifactId>
1269 <version>3.7.0.1746</version>