From ff6464f3b5c5b99fa0d632a5c4bb91554d386799 Mon Sep 17 00:00:00 2001 From: Christopher Gross cogross Date: Thu, 22 Jun 2023 19:43:37 +0000 Subject: [PATCH] sonarqube code coverage --- core/pom.xml | 2 +- coverage/pom.xml | 315 ++++++++++++++++++ docker/sonarqube/README.md | 56 ++++ docker/sonarqube/clean.sh | 11 + docker/sonarqube/compose.yml | 31 ++ docker/sonarqube/precompose.sh | 4 + microservices/configcheck/pom.xml | 2 +- pom.xml | 55 +++ warehouse/accumulo-extensions/pom.xml | 20 ++ warehouse/common/pom.xml | 20 ++ warehouse/core/pom.xml | 18 +- warehouse/data-dictionary-core/pom.xml | 18 + warehouse/edge-dictionary-core/pom.xml | 18 + warehouse/index-stats/pom.xml | 16 + warehouse/ingest-core/pom.xml | 16 + warehouse/ingest-csv/pom.xml | 16 + warehouse/ingest-json/pom.xml | 16 + warehouse/ingest-nyctlc/pom.xml | 16 + warehouse/ingest-wikipedia/pom.xml | 16 + warehouse/metrics-core/pom.xml | 20 ++ warehouse/ops-tools/config-compare/pom.xml | 20 ++ warehouse/ops-tools/index-validation/pom.xml | 16 + warehouse/pom.xml | 4 +- warehouse/query-core/pom.xml | 16 + web-services/accumulo/pom.xml | 16 + web-services/atom/pom.xml | 16 + web-services/cached-results/pom.xml | 16 + web-services/client/pom.xml | 16 + web-services/common-util/pom.xml | 16 + web-services/common/pom.xml | 16 + .../spring-framework-integration/pom.xml | 1 + web-services/dictionary/pom.xml | 16 + web-services/map-reduce-embedded/pom.xml | 18 + web-services/map-reduce-status/pom.xml | 16 + web-services/map-reduce/pom.xml | 18 +- web-services/model/pom.xml | 14 + web-services/modification/pom.xml | 14 + web-services/pom.xml | 4 +- web-services/query/pom.xml | 18 +- web-services/security/pom.xml | 16 + 40 files changed, 964 insertions(+), 9 deletions(-) create mode 100644 coverage/pom.xml create mode 100644 docker/sonarqube/README.md create mode 100755 docker/sonarqube/clean.sh create mode 100644 docker/sonarqube/compose.yml create mode 100755 docker/sonarqube/precompose.sh diff --git a/core/pom.xml b/core/pom.xml index cd285f42816..5b5878f87e1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -65,7 +65,7 @@ 1 0 0 - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= true random diff --git a/coverage/pom.xml b/coverage/pom.xml new file mode 100644 index 00000000000..7361a2356c4 --- /dev/null +++ b/coverage/pom.xml @@ -0,0 +1,315 @@ + + + 4.0.0 + + gov.nsa.datawave + datawave-parent + 7.11.0-SNAPSHOT + + coverage + Datawave Code Coverage Aggregate Report + + true + + + + gov.nsa.datawave + datawave-accumulo-extensions + ${project.version} + + + gov.nsa.datawave + datawave-common + ${project.version} + + + gov.nsa.datawave + datawave-core + ${project.version} + + + gov.nsa.datawave + datawave-data-dictionary-core + ${project.version} + + + gov.nsa.datawave + datawave-edge-dictionary-core + ${project.version} + + + gov.nsa.datawave + datawave-index-stats + ${project.version} + + + gov.nsa.datawave + datawave-ingest-core + ${project.version} + + + gov.nsa.datawave + datawave-ingest-csv + ${project.version} + + + gov.nsa.datawave + datawave-ingest-json + ${project.version} + + + gov.nsa.datawave + datawave-ingest-nyctlc + ${project.version} + + + gov.nsa.datawave + datawave-ingest-wikipedia + ${project.version} + + + gov.nsa.datawave + datawave-metrics-core + ${project.version} + + + gov.nsa.datawave + datawave-ops-tools-config-compare + ${project.version} + + + gov.nsa.datawave + datawave-ops-tools-index-validation + ${project.version} + + + gov.nsa.datawave + datawave-query-core + ${project.version} + + + gov.nsa.datawave.microservice + accumulo-api + ${version.datawave.accumulo-api} + + + gov.nsa.datawave.microservice + accumulo-utils + ${version.datawave.accumulo-utils} + + + gov.nsa.datawave.microservice + audit-api + ${version.datawave.audit-api} + + + gov.nsa.datawave.microservice + authorization-api + ${version.datawave.authorization-api} + + + gov.nsa.datawave.microservice + base-rest-responses + ${version.datawave.base-rest-responses} + + + gov.nsa.datawave.microservice + common-utils + ${version.datawave.common-utils} + + + gov.nsa.datawave.microservice + dictionary-api + ${version.datawave.dictionary-api} + + + gov.nsa.datawave.microservice + mapreduce-query-api + ${version.datawave.mapreduce-query-api} + + + gov.nsa.datawave.microservice + metadata-utils + ${version.datawave.metadata-utils} + + + log4j + log4j + + + org.slf4j + slf4j-reload4j + + + ch.qos.reload4j + reload4j + + + + + gov.nsa.datawave.microservice + metrics-reporter + ${version.datawave.metrics-reporter} + + + gov.nsa.datawave.microservice + query-api + ${version.datawave.query-api} + + + gov.nsa.datawave.microservice + query-api + ${version.datawave.query-api} + jboss + + + gov.nsa.datawave.microservice + query-metric-api + ${version.datawave.query-metric-api} + + + gov.nsa.datawave + * + + + gov.nsa.datawave.microservice + accumulo-utils + + + gov.nsa.datawave.webservices + * + + + javax.xml.bind + jaxb-api + + + log4j + * + + + org.slf4j + slf4j-log4j12 + + + org.slf4j + slf4j-reload4j + + + + + gov.nsa.datawave.microservice + type-utils + ${version.datawave.type-utils} + + + log4j + * + + + org.slf4j + slf4j-log4j12 + + + org.apache.hadoop + hadoop-common + + + + + gov.nsa.datawave.webservices + datawave-ws-accumulo + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-atom + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-cached-results + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-client + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-common + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-common-util + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-dictionary + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-map-reduce + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-map-reduce-embedded + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-map-reduce-status + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-model + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-modification + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-query + ${project.version} + + + gov.nsa.datawave.webservices + datawave-ws-security + ${project.version} + + + gov.nsa.datawave.microservice + base-rest-responses + ${version.datawave.base-rest-responses} + tests + test-jar + test + + + + + + org.jacoco + jacoco-maven-plugin + + + report-aggregate + + report-aggregate + + verify + + + + + + diff --git a/docker/sonarqube/README.md b/docker/sonarqube/README.md new file mode 100644 index 00000000000..a81c569f364 --- /dev/null +++ b/docker/sonarqube/README.md @@ -0,0 +1,56 @@ +## SonarQube + +## Preliminary Steps +(you *will* need to run this daily before attempting to start sonarqube - use precompose.sh script in case other things are needed) +sudo sysctl -w vm.max_map_count=262144 +sudo sysctl -w fs.file-max=131072 + +sudo vi /etc/sysctl.conf +vm.max_map_count=262144 +fs.file-max=131072 + +You need to run in older versions of maven. 3.8.6 works, 3.9.6 does NOT. + +## Start SonarQube +In docker/sonarqube directory, run: +```bash +./precompose.sh +docker-compose up -d +``` + +## Setup SonarQube +go to https://localhost:7777 to view the sonarqube app +admin/admin is the default password (change it when you first access it) + +How do you want to create your project? Manually + +Set project name to DataWave +(leave project key as DataWave) +Set main branch to integration +Click Set Up + +How do you want to analyze your repository? Locally + +Leave the token name as "Analyze DataWave" +Set the expiration to Never Expires +Click Generate + +Copy the token (spq_...), save it locally in a file called sonarqubeToken in your home directory. + +Click Continue + +Click Maven + +Create a sonar.sh script, add it to your ~/bin dir (or anywhere that is on your configured path) +```bash +mvn clean verify && mvn -e sonar:sonar -Dsonar.projectKey=Datawave -Dsonar.host.url=http://localhost:7777 -Dsonar.login= +``` + +Run the new sonar.sh script in your checked out datawave repository. When it is done, return to the browser and you can see the results of your scan. + +## Stop SonarQube +In docker/sonarqube directory, run: +```bash +docker-compose stop +``` +You should do this before closing down for the day, or if you are done trying to do analysis. diff --git a/docker/sonarqube/clean.sh b/docker/sonarqube/clean.sh new file mode 100755 index 00000000000..490041a6baa --- /dev/null +++ b/docker/sonarqube/clean.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +docker volume rm sonarqube_data +docker volume rm sonarqube_extensions +docker volume rm sonarqube_logs +docker volume rm sonarqube_postgresql +docker volume rm sonarqube_postgresql_data +docker volume rm sonarqube_sonarqube_data +docker volume rm sonarqube_sonarqube_extensions +docker volume rm sonarqube_sonarqube_logs + diff --git a/docker/sonarqube/compose.yml b/docker/sonarqube/compose.yml new file mode 100644 index 00000000000..5f64b272148 --- /dev/null +++ b/docker/sonarqube/compose.yml @@ -0,0 +1,31 @@ +version: "3" +services: + sonarqube: + image: sonarqube:9.9.4-community + depends_on: + - db + environment: + SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar + SONAR_JDBC_USERNAME: sonar + SONAR_JDBC_PASSWORD: sonar + volumes: + - sonarqube_data:/opt/sonarqube/data + - sonarqube_extensions:/opt/sonarqube/extensions + - sonarqube_logs:/opt/sonarqube/logs + ports: + - "7777:9000" + db: + image: postgres:12 + environment: + POSTGRES_USER: sonar + POSTGRES_PASSWORD: sonar + volumes: + - postgresql:/var/lib/postgresql + - postgresql_data:/var/lib/postgresql/data + +volumes: + sonarqube_data: + sonarqube_extensions: + sonarqube_logs: + postgresql: + postgresql_data: diff --git a/docker/sonarqube/precompose.sh b/docker/sonarqube/precompose.sh new file mode 100755 index 00000000000..45c7b3152f3 --- /dev/null +++ b/docker/sonarqube/precompose.sh @@ -0,0 +1,4 @@ +#!/bin/bash +sudo sysctl -w vm.max_map_count=524288 +sudo sysctl -w fs.file-max=131072 + diff --git a/microservices/configcheck/pom.xml b/microservices/configcheck/pom.xml index 769ba2328b5..d883fce69c8 100644 --- a/microservices/configcheck/pom.xml +++ b/microservices/configcheck/pom.xml @@ -232,7 +232,7 @@ 1 0 0 - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= true random diff --git a/pom.xml b/pom.xml index 56b8c966e42..dc52b774e08 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ core web-services warehouse + coverage scm:git:https://github.com/NationalSecurityAgency/datawave.git @@ -34,9 +35,12 @@ + 11 11 UTF-8 + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + **/StandardLexer.java 1C 2.1.2 1.4.1.Final @@ -1479,6 +1483,11 @@ false + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + maven-compiler-plugin 3.8.1 @@ -1744,11 +1753,35 @@ xmlbeans-maven-plugin 2.3.3-threadsafe + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + prepare-agent + + prepare-agent + + + + report + + report + + + + org.mortbay.jetty maven-jetty-plugin 6.1.26 + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 + pl.project13.maven git-commit-id-plugin @@ -1821,6 +1854,28 @@ + + coverage + + true + + + + + org.jacoco + jacoco-maven-plugin + + + default-prepare-agent + + prepare-agent + + + + + + + autoformat diff --git a/warehouse/accumulo-extensions/pom.xml b/warehouse/accumulo-extensions/pom.xml index 157772709c6..ab606c04b87 100644 --- a/warehouse/accumulo-extensions/pom.xml +++ b/warehouse/accumulo-extensions/pom.xml @@ -8,6 +8,9 @@ datawave-accumulo-extensions ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.guava @@ -55,6 +58,23 @@ test + + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + + clover diff --git a/warehouse/common/pom.xml b/warehouse/common/pom.xml index 8b60f0d493b..c476375c798 100644 --- a/warehouse/common/pom.xml +++ b/warehouse/common/pom.xml @@ -8,6 +8,9 @@ datawave-common ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.clearspring.analytics @@ -56,4 +59,21 @@ test + + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + + diff --git a/warehouse/core/pom.xml b/warehouse/core/pom.xml index 24acf36eb36..a65d15915bf 100644 --- a/warehouse/core/pom.xml +++ b/warehouse/core/pom.xml @@ -9,6 +9,9 @@ datawave-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.beust @@ -230,7 +233,7 @@ 0 1 0 - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED true random @@ -257,6 +260,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/data-dictionary-core/pom.xml b/warehouse/data-dictionary-core/pom.xml index 622b9fad288..9663088b190 100644 --- a/warehouse/data-dictionary-core/pom.xml +++ b/warehouse/data-dictionary-core/pom.xml @@ -9,6 +9,9 @@ datawave-data-dictionary-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave.microservice @@ -30,5 +33,20 @@ src/main/resources + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + diff --git a/warehouse/edge-dictionary-core/pom.xml b/warehouse/edge-dictionary-core/pom.xml index 1d8873e3824..a9fb9d4337f 100644 --- a/warehouse/edge-dictionary-core/pom.xml +++ b/warehouse/edge-dictionary-core/pom.xml @@ -9,6 +9,9 @@ datawave-edge-dictionary-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave.microservice @@ -30,5 +33,20 @@ src/main/resources + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + diff --git a/warehouse/index-stats/pom.xml b/warehouse/index-stats/pom.xml index 7e98a2a43f1..81f56262e3d 100644 --- a/warehouse/index-stats/pom.xml +++ b/warehouse/index-stats/pom.xml @@ -9,6 +9,9 @@ datawave-index-stats jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.clearspring.analytics @@ -73,6 +76,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/ingest-core/pom.xml b/warehouse/ingest-core/pom.xml index 3e2879b41ce..f0803faaeea 100644 --- a/warehouse/ingest-core/pom.xml +++ b/warehouse/ingest-core/pom.xml @@ -9,6 +9,9 @@ datawave-ingest-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.clearspring.analytics @@ -226,6 +229,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/ingest-csv/pom.xml b/warehouse/ingest-csv/pom.xml index 9df7e5d63b6..1a7f594a130 100644 --- a/warehouse/ingest-csv/pom.xml +++ b/warehouse/ingest-csv/pom.xml @@ -9,6 +9,9 @@ datawave-ingest-csv jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + commons-net @@ -149,6 +152,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/ingest-json/pom.xml b/warehouse/ingest-json/pom.xml index 721429994df..d262a962b80 100644 --- a/warehouse/ingest-json/pom.xml +++ b/warehouse/ingest-json/pom.xml @@ -9,6 +9,9 @@ datawave-ingest-json jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.code.gson @@ -179,6 +182,19 @@ org.codehaus.mojo exec-maven-plugin + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/ingest-nyctlc/pom.xml b/warehouse/ingest-nyctlc/pom.xml index c647eb322a8..af432fbbf88 100644 --- a/warehouse/ingest-nyctlc/pom.xml +++ b/warehouse/ingest-nyctlc/pom.xml @@ -9,6 +9,9 @@ datawave-ingest-nyctlc jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave @@ -50,6 +53,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/ingest-wikipedia/pom.xml b/warehouse/ingest-wikipedia/pom.xml index 63bd31b38aa..651d98bebe0 100644 --- a/warehouse/ingest-wikipedia/pom.xml +++ b/warehouse/ingest-wikipedia/pom.xml @@ -9,6 +9,9 @@ datawave-ingest-wikipedia jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave @@ -124,6 +127,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/metrics-core/pom.xml b/warehouse/metrics-core/pom.xml index 1e67c228f65..45b68298cbc 100644 --- a/warehouse/metrics-core/pom.xml +++ b/warehouse/metrics-core/pom.xml @@ -9,6 +9,9 @@ datawave-metrics-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.code.gson @@ -75,4 +78,21 @@ test + + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + + diff --git a/warehouse/ops-tools/config-compare/pom.xml b/warehouse/ops-tools/config-compare/pom.xml index af9185a7b1d..36229c38545 100644 --- a/warehouse/ops-tools/config-compare/pom.xml +++ b/warehouse/ops-tools/config-compare/pom.xml @@ -7,6 +7,9 @@ 7.11.0-SNAPSHOT datawave-ops-tools-config-compare + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.guava @@ -59,4 +62,21 @@ test + + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + + diff --git a/warehouse/ops-tools/index-validation/pom.xml b/warehouse/ops-tools/index-validation/pom.xml index 8039271e3e1..695b280b09f 100644 --- a/warehouse/ops-tools/index-validation/pom.xml +++ b/warehouse/ops-tools/index-validation/pom.xml @@ -9,6 +9,9 @@ datawave-ops-tools-index-validation jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + commons-cli @@ -93,6 +96,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/warehouse/pom.xml b/warehouse/pom.xml index 2cdbeb122f5..1d88cc4ad50 100644 --- a/warehouse/pom.xml +++ b/warehouse/pom.xml @@ -482,7 +482,7 @@ 0 0 - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -DBT_ROOT=${env.BT_ROOT} -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx2g -Djava.library.path=${env.HADOOP_HOME}/lib/native -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -DBT_ROOT=${env.BT_ROOT} -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx2g -Djava.library.path=${env.HADOOP_HOME}/lib/native -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED true ${runOrder} @@ -620,4 +620,4 @@ - + \ No newline at end of file diff --git a/warehouse/query-core/pom.xml b/warehouse/query-core/pom.xml index 9b484e98b60..32c3aab37c5 100644 --- a/warehouse/query-core/pom.xml +++ b/warehouse/query-core/pom.xml @@ -9,6 +9,9 @@ datawave-query-core jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.clearspring.analytics @@ -440,6 +443,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/accumulo/pom.xml b/web-services/accumulo/pom.xml index 03802f0ec9a..366a629cd89 100644 --- a/web-services/accumulo/pom.xml +++ b/web-services/accumulo/pom.xml @@ -9,6 +9,9 @@ datawave-ws-accumulo ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.fasterxml.jackson.module @@ -139,6 +142,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/atom/pom.xml b/web-services/atom/pom.xml index 2507c685dc0..fc7f0559b07 100644 --- a/web-services/atom/pom.xml +++ b/web-services/atom/pom.xml @@ -9,6 +9,9 @@ datawave-ws-atom ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave.webservices @@ -143,6 +146,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/cached-results/pom.xml b/web-services/cached-results/pom.xml index a5f641cf457..9e6a5398da4 100644 --- a/web-services/cached-results/pom.xml +++ b/web-services/cached-results/pom.xml @@ -9,6 +9,9 @@ datawave-ws-cached-results ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.guava @@ -184,6 +187,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/client/pom.xml b/web-services/client/pom.xml index f41f319a63a..4788b1cb1dd 100644 --- a/web-services/client/pom.xml +++ b/web-services/client/pom.xml @@ -9,6 +9,9 @@ datawave-ws-client jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.fasterxml.jackson.core @@ -373,6 +376,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/common-util/pom.xml b/web-services/common-util/pom.xml index d4cd0da1cdf..ea4a4cd5a24 100644 --- a/web-services/common-util/pom.xml +++ b/web-services/common-util/pom.xml @@ -9,6 +9,9 @@ datawave-ws-common-util jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.clearspring.analytics @@ -298,6 +301,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/common/pom.xml b/web-services/common/pom.xml index 8dbcf946246..47f02293eae 100644 --- a/web-services/common/pom.xml +++ b/web-services/common/pom.xml @@ -9,6 +9,9 @@ datawave-ws-common ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + aopalliance @@ -339,6 +342,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/deploy/spring-framework-integration/pom.xml b/web-services/deploy/spring-framework-integration/pom.xml index 9af6ee24e0a..ab56496b110 100644 --- a/web-services/deploy/spring-framework-integration/pom.xml +++ b/web-services/deploy/spring-framework-integration/pom.xml @@ -180,6 +180,7 @@ maven-surefire-plugin ${version.surefire.plugin} + @{argLine} false ${project.build.directory}/conf diff --git a/web-services/dictionary/pom.xml b/web-services/dictionary/pom.xml index c1ed7962d59..e76c7ec9fba 100644 --- a/web-services/dictionary/pom.xml +++ b/web-services/dictionary/pom.xml @@ -9,6 +9,9 @@ datawave-ws-dictionary ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave @@ -41,6 +44,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/map-reduce-embedded/pom.xml b/web-services/map-reduce-embedded/pom.xml index 76341e64cd3..017bc0d1b63 100644 --- a/web-services/map-reduce-embedded/pom.xml +++ b/web-services/map-reduce-embedded/pom.xml @@ -9,6 +9,9 @@ datawave-ws-map-reduce-embedded jar ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave.webservices @@ -41,5 +44,20 @@ src/main/resources + + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + + diff --git a/web-services/map-reduce-status/pom.xml b/web-services/map-reduce-status/pom.xml index 305adbea0a0..5aa5bf31ff6 100644 --- a/web-services/map-reduce-status/pom.xml +++ b/web-services/map-reduce-status/pom.xml @@ -9,6 +9,9 @@ datawave-ws-map-reduce-status ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + gov.nsa.datawave.webservices @@ -79,6 +82,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/map-reduce/pom.xml b/web-services/map-reduce/pom.xml index 61c7dd9e569..68dd0e90ec1 100644 --- a/web-services/map-reduce/pom.xml +++ b/web-services/map-reduce/pom.xml @@ -9,6 +9,9 @@ datawave-ws-map-reduce ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + commons-configuration @@ -241,12 +244,25 @@ another classloader. maven-surefire-plugin - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED false + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/model/pom.xml b/web-services/model/pom.xml index 20578156126..498a09eacad 100644 --- a/web-services/model/pom.xml +++ b/web-services/model/pom.xml @@ -12,6 +12,7 @@ ${project.build.directory}/endorsed UTF-8 + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml @@ -155,6 +156,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/modification/pom.xml b/web-services/modification/pom.xml index ac6f499950e..86d16a77173 100644 --- a/web-services/modification/pom.xml +++ b/web-services/modification/pom.xml @@ -12,6 +12,7 @@ ${project.build.directory}/endorsed UTF-8 + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml @@ -110,6 +111,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/pom.xml b/web-services/pom.xml index 1acd2fa7ed6..e059c1b490f 100644 --- a/web-services/pom.xml +++ b/web-services/pom.xml @@ -553,7 +553,7 @@ 0 1 0 - -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= + @{argLine} -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Xmx1024m -Dapple.awt.UIElement=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc= --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED true random @@ -756,4 +756,4 @@ - + \ No newline at end of file diff --git a/web-services/query/pom.xml b/web-services/query/pom.xml index bf4c9eca70c..616d4cf9915 100644 --- a/web-services/query/pom.xml +++ b/web-services/query/pom.xml @@ -9,6 +9,9 @@ datawave-ws-query ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.google.code.gson @@ -307,9 +310,22 @@ ${basedir}/conf - --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED + @{argLine} --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + + diff --git a/web-services/security/pom.xml b/web-services/security/pom.xml index 8ae0a67c4cb..82294875aad 100644 --- a/web-services/security/pom.xml +++ b/web-services/security/pom.xml @@ -9,6 +9,9 @@ datawave-ws-security ejb ${project.artifactId} + + ${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml + com.fasterxml.jackson.datatype @@ -318,6 +321,19 @@ + + org.jacoco + jacoco-maven-plugin + + + report + + report-aggregate + + verify + + +