From 2d70f7de3ca5e68a92116d586153ebce7941c67f Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 16 Feb 2018 10:41:37 -0500 Subject: Modify sonar settings to include all sub-modules We are now including all the sub-modules coverage into one file. This will now reflect correct statistics for any sub-module that tests code located in another sub-module. Issue-ID: POLICY-634 Change-Id: Id96eb9e9f637770932067bd803cb5ccdb571c05a Signed-off-by: Pamela Dragosh --- pom.xml | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 79 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 7a0ccd5e5..33f7f1009 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= drools-pdp-apps ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -37,20 +37,58 @@ pom + 1.8 1.8 UTF-8 1.8 1.8 + + https://nexus.onap.org /content/sites/site/${project.groupId}/${project.artifactId}/${project.version} content/repositories/releases/ content/repositories/snapshots/ content/repositories/staging/ + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports + + + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + true + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + org.sonatype.plugins nexus-staging-maven-plugin @@ -78,8 +116,6 @@ ${project.target.version} - - org.apache.maven.plugins maven-site-plugin @@ -91,10 +127,49 @@ - + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + org.eclipse.m2e lifecycle-mapping -- cgit 1.2.3-korg