4.0.0 org.onap.clamp clds 4.2.0-SNAPSHOT clamp org.onap.oparent oparent 2.1.0 This is the MAVEN project that builds everything for ONAP CLAMP. Docker engine is normally requires to perfom all possible tasks (including integration tests) It can build: - The ONAP CLAMP JAR that contains CLAMP back-end code. - The DOCKER images for: * CLAMP backend (Java Spring) * CLAMP frontend (Javscript React) * The dashboard - Elastic search * The dashboard - Logstash * The dashboard - Kibana It can test: - The CLAMP backend, JAVA unit testing - The CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae emulator written in python) - The CLAMP frontend, Javascrip tests (NodeJS(NPM) + JEST + Enzyme fro React) The test coverage for dev's can be found after a "clean install" build in: - Clamp backend: target/jacoco-dev.exec (unit tests + integration tests merged) or separately target/coverage-reports/jacoco.exec and target/coverage-reports/jacoco-it.exec - Clamp frontend: target/ui-react/coverage Useful mvn commands: - mvn clean install: Build Clamp backend JAR + unit tests + integration tests + NPM tests (+coverage for all) - mvn clean install -DskipITs=true: Build Clamp backend JAR + unit tests + NPM tests (+coverage for all), it does not require a DOCKER engine - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images To start CLAMP (Build it before): - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh - Use your IDE to use the Jar or start NVM/NPM yyyyMMdd'T'HHmmss'Z' ${project.version} ${maven.build.timestamp} UTF-8 UTF-8 1.0.0 2.24.0 2.2.0.RELEASE jacoco ${project.build.directory}/surefire-reports ${project.build.directory}/coverage-reports/jacoco.exec ${project.build.directory}/coverage-reports/jacoco-it.exec true ${project.version} src/main,${project.build.directory}/${ui.react.src}/src ${project.build.directory}/${ui.react.src}/coverage/lcov.info src/main/resources/** src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/kibana/*.py localhost:5000 nexus3.onap.org:10001 true true true false 9.0.27 ui-react https://nexus3.onap.org/repository/npm.release/ without-test maven.test.skip true true true without-IT-only skipITs true true true without-IT-only2 skipTests true true true docker true false false false false ecomp-releases Clamp Release Repository https://nexus.onap.org/content/repositories/releases/ ecomp-snapshots Clamp Snapshot Repository https://nexus.onap.org/content/repositories/snapshots/ ecomp-site dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version} onap-public onap-public https://nexus.onap.org/content/repositories/public/ true false ecomp-releases ONAP Release Repository https://nexus.onap.org/content/repositories/releases/ ecomp-staging ONAP Staging Repository https://nexus.onap.org/content/repositories/staging/ ecomp-snapshots ONAP Snapshot Repository https://nexus.onap.org/content/repositories/snapshots/ true false central http://repo1.maven.org/maven2/ onap-public onap-public https://nexus.onap.org/content/repositories/public/ true false central http://repo1.maven.org/maven2/ org.springframework.boot spring-boot-dependencies ${springboot.version} pom import org.apache.camel camel-spring-boot-dependencies ${camel.version} pom import org.apache.xmlgraphics batik-svggen 1.11 xml-apis xml-apis org.apache.xmlgraphics batik-svg-dom 1.11 org.apache.xmlgraphics batik-transcoder 1.11 com.att.eelf eelf-core ${eelf.core.version} org.powermock powermock-module-junit4 org.powermock powermock-api-mockito org.codehaus.janino janino 3.0.8 org.apache.tomcat.embed tomcat-embed-core ${tomcat.version} org.apache.tomcat.embed tomcat-embed-el ${tomcat.version} org.apache.tomcat.embed tomcat-embed-websocket ${tomcat.version} org.apache.tomcat tomcat-annotations-api ${tomcat.version} org.apache.camel camel-http4-starter org.apache.camel camel-spring-boot-starter org.apache.camel camel-jaxb-starter org.apache.camel camel-servlet-starter org.apache.camel camel-gson-starter org.apache.camel camel-swagger-java-starter javax.ws.rs jsr311-api org.slf4j slf4j-ext com.fasterxml.jackson.core jackson-databind javax.xml.bind jaxb-api 2.3.0 org.glassfish.jersey.core jersey-common 2.27 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-json org.springframework.boot spring-boot-starter-tomcat org.springframework spring-jdbc org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-autoconfigure org.springframework.boot spring-boot-starter-test test com.vaadin.external.google android-json org.springframework.boot spring-boot-starter-data-jpa org.onap.aaf.authz aaf-cadi-aaf 2.1.15 javax.servlet servlet-api ch.qos.logback logback-core 1.2.3 ch.qos.logback logback-classic 1.2.3 commons-dbcp commons-dbcp 1.4 commons-io commons-io 2.6 com.googlecode.json-simple json-simple 1.1.1 org.apache.commons commons-vfs2 2.2 joda-time joda-time org.slf4j slf4j-api javax.ws.rs javax.ws.rs-api 2.0 junit junit javax.transaction jta 1.1 javax.persistence persistence-api 1.0.2 org.apache.commons commons-csv 1.3 org.codehaus.plexus plexus-utils 3.0.24 org.jboss.spec.javax.ws.rs jboss-jaxrs-api_2.0_spec 1.0.1.Final com.google.guava guava 27.0-jre commons-codec commons-codec 1.13 org.mariadb.jdbc mariadb-java-client 2.2.1 org.onap.sdc.sdc-distribution-client sdc-distribution-client 1.3.0 org.onap.sdc.sdc-tosca sdc-tosca 1.5.1 org.assertj assertj-core 3.10.0 test org.mockito mockito-core 2.28.2 test org.powermock powermock-api-mockito2 2.0.4 test org.powermock powermock-module-junit4 2.0.4 test clamp src/test/resources **/*.jks **/*.csar true src/test/resources/https **.jks false https src/test/resources/example/sdc **.csar false example/sdc src/main/resources true clds/aaf/** src/main/resources false clds/aaf/** ${ui.react.src} src/** public/** package.json package-lock.json true ${project.build.directory}/${ui.react.src} de.jpdigital hibernate52-ddl-maven-plugin 2.2.0 javax.xml.bind jaxb-api 2.3.0 process-classes gen-ddl org.onap.clamp MARIADB53 ${project.basedir}/extra/sql/bulkload/ create-tables true io.github.swagger2markup swagger2markup-maven-plugin 1.3.3 io.github.swagger2markup swagger2markup-import-files-ext 1.3.3 io.github.swagger2markup swagger2markup-spring-restdocs-ext 1.3.3 ${project.basedir}/docs/swagger/swagger.json ${project.build.directory}/asciidoc/generated ASCIIDOC post-integration-test convertSwagger2markup org.asciidoctor asciidoctor-maven-plugin 1.5.7.1 org.asciidoctor asciidoctorj-pdf 1.5.0-alpha.10.1 ${project.basedir}/src/main/resources/asciidoc swagger.adoc book left 3 ${project.build.directory}/asciidoc/generated output-html post-integration-test process-asciidoc html5 ${project.basedir}/docs/swagger ${project.basedir}/src/main/resources/META-INF/resources/ output-pdf post-integration-test process-asciidoc pdf ${project.basedir}/docs/swagger org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute ${project.basedir}/src/main/script/TagVersion.groovy org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute ${project.basedir}/src/main/script/SelectNpmRepo.groovy org.apache.maven.plugins maven-jar-plugin 3.0.2 jar-with-only-classes package jar classes org/** org.codehaus.mojo build-helper-maven-plugin 3.0.0 attach-artifact package ${project.build.directory}/clamp-classes.jar jar classes reserve-port-for-tests process-resources reserve-network-port docker.mariadb.port.host docker.http-cache.port.host clamp.it.tests.http-redirected clamp.it.tests.https clamp.it.tests.http org.springframework.boot spring-boot-maven-plugin 1.5.13.RELEASE repackage package org.apache.maven.plugins maven-surefire-plugin 2.22.2 1C true false ${surefireArgLine} org.apache.maven.plugins maven-failsafe-plugin 2.22.2 integration-tests integration-test verify ${project.build.directory}/classes **/*ItCase.java 1 true false ${failsafeArgLine} io.fabric8 docker-maven-plugin 0.31.0 org.apache.httpcomponents httpclient 4.5.5 true 1.35 library/mariadb:10.3.12 mariadb strong_pitchou mariadb ${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw ${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution /docker-entrypoint-initdb.d/dump/backup-data-only.sh ${docker.mariadb.port.host}:3306 bridge library/python:2-slim python python ${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app ${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache 8080 direct ${docker.http-cache.port.host}:8080 /usr/src/http-cache-app ./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host} bridge onap/clamp-backend onap-clamp-backend true true latest ${project.docker.latesttagtimestamp.version} ${project.docker.latesttag.version} backend/Dockerfile backend/backend-files.xml onap-clamp-backend onap/clamp-frontend onap-clamp-frontend true true latest ${project.docker.latesttagtimestamp.version} ${project.docker.latesttag.version} frontend/Dockerfile frontend/frontend-files.xml onap-clamp-frontend onap/clamp-dashboard-logstash onap-clamp-dashboard-logstash true true latest ${project.docker.latesttagtimestamp.version} ${project.docker.latesttag.version} logstash/Dockerfile onap/clamp-dashboard-kibana onap-clamp-dashboard-kibana true true latest ${project.docker.latesttagtimestamp.version} ${project.docker.latesttag.version} kibana/Dockerfile generate-images install build push-images deploy push docker-start-for-it pre-integration-test start docker-stop-for-it post-integration-test stop org.jacoco jacoco-maven-plugin 0.8.5 true true org.onap.clamp.* pre-unit-test prepare-agent ${project.build.directory}/coverage-reports/jacoco.exec surefireArgLine pre-integration-test pre-integration-test prepare-agent ${project.build.directory}/coverage-reports/jacoco-it.exec failsafeArgLine merge post-integration-test ${project.build.directory}/coverage-reports *.exec ${project.build.directory}/jacoco-dev.exec org.codehaus.mojo versions-maven-plugin 1.3.1 com.github.eirslett frontend-maven-plugin 1.8.0 ${project.build.directory}/${ui.react.src} ${project.build.directory}/${ui.react.src} install_node_and_npm install-node-and-npm generate-sources v12.13.0 6.13.0 npm_install npm compile install npm_test npm test run-script test:coverage npm_publish npm deploy publish org.apache.maven.plugins maven-compiler-plugin 3.8.1 11 11 org.sonarsource.scanner.maven sonar-maven-plugin 3.7.0.1746