4.0.0org.onap.clampclds4.2.0-SNAPSHOTclamporg.onap.oparentoparent2.0.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}1.81.8UTF-8UTF-81.0.02.24.02.1.5.RELEASEjacoco${project.build.directory}/surefire-reports${project.build.directory}/coverage-reports/jacoco.exec${project.build.directory}/coverage-reports/jacoco-it.exectrue${project.version}src/main,${project.build.directory}/${ui.react.src}/src${project.build.directory}/${ui.react.src}/coverage/lcov.infosrc/main/resources/**src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/kibana/*.pylocalhost:5000nexus3.onap.org:10001truetruetruefalse9.0.20ui-reacthttps://nexus3.onap.org/repository/npm/without-testmaven.test.skiptruetruetruewithout-IT-onlyskipITstruetruetruewithout-IT-only2skipTeststruetruetruedockertruefalsefalsefalsefalseecomp-releasesClamp Release Repositoryhttps://nexus.onap.org/content/repositories/releases/ecomp-snapshotsClamp Snapshot Repositoryhttps://nexus.onap.org/content/repositories/snapshots/ecomp-sitedav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}onap-publiconap-publichttps://nexus.onap.org/content/repositories/public/truefalseecomp-releasesONAP Release Repositoryhttps://nexus.onap.org/content/repositories/releases/ecomp-stagingONAP Staging Repositoryhttps://nexus.onap.org/content/repositories/staging/ecomp-snapshotsONAP Snapshot Repositoryhttps://nexus.onap.org/content/repositories/snapshots/truefalsecentralhttp://repo1.maven.org/maven2/onap-publiconap-publichttps://nexus.onap.org/content/repositories/public/truefalsecentralhttp://repo1.maven.org/maven2/org.springframework.bootspring-boot-dependencies${springboot.version}pomimportorg.apache.camelcamel-spring-boot-dependencies${camel.version}pomimportorg.apache.xmlgraphicsbatik-svggen1.11org.apache.xmlgraphicsbatik-svg-dom1.11org.apache.xmlgraphicsbatik-transcoder1.11com.att.eelfeelf-core${eelf.core.version}org.codehaus.janinojanino3.0.8org.apache.tomcat.embedtomcat-embed-core${tomcat.version}org.apache.tomcat.embedtomcat-embed-el${tomcat.version}org.apache.tomcat.embedtomcat-embed-websocket${tomcat.version}org.apache.tomcattomcat-annotations-api${tomcat.version}org.apache.camelcamel-http4-starterorg.apache.camelcamel-spring-boot-starterorg.apache.camelcamel-jaxb-starterorg.apache.camelcamel-servlet-starterorg.apache.camelcamel-gson-starterorg.apache.camelcamel-swagger-java-starterjavax.ws.rsjsr311-apiorg.slf4jslf4j-extcom.fasterxml.jackson.corejackson-databindjavax.xml.bindjaxb-api2.3.0org.glassfish.jersey.corejersey-common2.27org.springframework.bootspring-boot-starter-weborg.springframework.bootspring-boot-starter-jsonorg.springframework.bootspring-boot-starter-tomcatorg.springframeworkspring-jdbcorg.springframework.bootspring-boot-starter-securityorg.springframework.bootspring-boot-autoconfigureorg.springframework.bootspring-boot-starter-testtestcom.vaadin.external.googleandroid-jsonorg.springframework.bootspring-boot-starter-data-jpaorg.onap.aaf.authzaaf-cadi-aaf2.1.15javax.servletservlet-apich.qos.logbacklogback-core1.2.3ch.qos.logbacklogback-classic1.2.3commons-dbcpcommons-dbcp1.4commons-iocommons-io2.6com.googlecode.json-simplejson-simple1.1.1org.apache.commonscommons-vfs22.2joda-timejoda-timeorg.slf4jslf4j-apijavax.ws.rsjavax.ws.rs-api2.0junitjunitjavax.transactionjta1.1javax.persistencepersistence-api1.0.2org.apache.commonscommons-csv1.3org.codehaus.plexusplexus-utils3.0.24org.jboss.spec.javax.ws.rsjboss-jaxrs-api_2.0_spec1.0.1.Finalcom.google.guavaguava27.0-jrecommons-codeccommons-codec1.13org.mariadb.jdbcmariadb-java-client2.2.1org.onap.sdc.sdc-distribution-clientsdc-distribution-client1.3.0org.onap.sdc.sdc-toscasdc-tosca1.5.1org.assertjassertj-core3.10.0testorg.mockitomockito-core1.10.19testclampsrc/test/resources**/*.jks**/*.csartruesrc/test/resources/https**.jksfalsehttpssrc/test/resources/example/sdc**.csarfalseexample/sdcsrc/main/resourcestrueclds/aaf/**src/main/resourcesfalseclds/aaf/**${ui.react.src}src/**public/**package.jsonpackage-lock.jsontrue${project.build.directory}/${ui.react.src}de.jpdigitalhibernate52-ddl-maven-plugin2.2.0javax.xml.bindjaxb-api2.3.0process-classesgen-ddl
org.onap.clamp.dao.model
MARIADB53
${project.basedir}/extra/sql/bulkload/create-tablestrueio.github.swagger2markupswagger2markup-maven-plugin1.3.3io.github.swagger2markupswagger2markup-import-files-ext1.3.3io.github.swagger2markupswagger2markup-spring-restdocs-ext1.3.3${project.basedir}/docs/swagger/swagger.json${project.build.directory}/asciidoc/generatedASCIIDOCpost-integration-testconvertSwagger2markuporg.asciidoctorasciidoctor-maven-plugin1.5.7.1org.asciidoctorasciidoctorj-pdf1.5.0-alpha.10.1${project.basedir}/src/main/resources/asciidocswagger.adocbookleft3${project.build.directory}/asciidoc/generatedoutput-htmlpost-integration-testprocess-asciidochtml5${project.basedir}/docs/swagger${project.basedir}/src/main/resources/META-INF/resources/output-pdfpost-integration-testprocess-asciidocpdf${project.basedir}/docs/swaggerorg.codehaus.groovy.mavengmaven-plugin1.0validateexecuteorg.apache.maven.pluginsmaven-jar-plugin3.0.2jar-with-only-classespackagejarclassesorg/**org.codehaus.mojobuild-helper-maven-plugin3.0.0attach-artifactpackage${project.build.directory}/clamp-classes.jarjarclassesreserve-port-for-testsprocess-resourcesreserve-network-portdocker.mariadb.port.hostdocker.http-cache.port.hostclamp.it.tests.http-redirectedclamp.it.tests.httpsclamp.it.tests.httporg.springframework.bootspring-boot-maven-plugin1.5.13.RELEASErepackagepackageorg.apache.maven.pluginsmaven-surefire-plugin2.22.11Ctruefalse${surefireArgLine}org.apache.maven.pluginsmaven-failsafe-plugin2.22.1integration-testsintegration-testverify${project.build.directory}/classes**/*ItCase.java1truefalse${failsafeArgLine}io.fabric8docker-maven-plugin0.27.2org.apache.httpcomponentshttpclient4.5.5true1.35library/mariadb:10.3.12mariadbstrong_pitchoumariadb${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.dsocket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution/docker-entrypoint-initdb.d/dump/backup-data-only.sh${docker.mariadb.port.host}:3306library/python:2-slimpythonpython${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-cache8080direct${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}onap/clamp-backendonap-clamp-backendtruetruelatest${project.docker.latesttagtimestamp.version}${project.docker.latesttag.version}backend/Dockerfilebackend/backend-files.xmlonap-clamp-backendonap/clamp-frontendonap-clamp-frontendtruetruelatest${project.docker.latesttagtimestamp.version}${project.docker.latesttag.version}frontend/Dockerfilefrontend/frontend-files.xmlonap-clamp-frontendonap/clamp-dashboard-logstashonap-clamp-dashboard-logstashtruetruelatest${project.docker.latesttagtimestamp.version}${project.docker.latesttag.version}logstash/Dockerfileonap/clamp-dashboard-kibanaonap-clamp-dashboard-kibanatruetruelatest${project.docker.latesttagtimestamp.version}${project.docker.latesttag.version}kibana/Dockerfilegenerate-imagesinstallbuildpush-imagesdeploypushdocker-start-for-itpre-integration-teststartdocker-stop-for-itpost-integration-teststoporg.jacocojacoco-maven-plugin0.8.2truetrueorg.onap.clamp.*pre-unit-testprepare-agent${project.build.directory}/coverage-reports/jacoco.execsurefireArgLinepre-integration-testpre-integration-testprepare-agent${project.build.directory}/coverage-reports/jacoco-it.execfailsafeArgLinemergepost-integration-test${project.build.directory}/coverage-reports*.exec${project.build.directory}/jacoco-dev.execorg.codehaus.mojoversions-maven-plugin1.3.1com.github.eirslettfrontend-maven-plugin1.8.0${project.build.directory}/${ui.react.src}${project.build.directory}/${ui.react.src}install_node_and_npminstall-node-and-npmgenerate-sourcesv12.10.06.10.3npm_installnpmcompileinstallnpm_testnpmtestrun-script test:coveragenpm_publishnpmdeployrun-script publish