Ensure one jacoco output file
Sub-modules under sub-modules need to set the path to
ensure a single jacoco-ut.exec file is produced and
appended to.
I think this only gives us .1% - but that's ok. Its a
step towards consolidation.
Issue-ID: POLICY-2321
Change-Id: I31023843f55200096a905482ee55ad19bf681494
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
diff --git a/models-interactions/model-actors/pom.xml b/models-interactions/model-actors/pom.xml
index 8b8188a..8765eb4 100644
--- a/models-interactions/model-actors/pom.xml
+++ b/models-interactions/model-actors/pom.xml
@@ -30,6 +30,10 @@
<groupId>org.onap.policy.models.policy-models-interactions.model-actors</groupId>
<artifactId>model-actors</artifactId>
+ <properties>
+ <jacoco.dataFile>${project.basedir}/../../../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
+ </properties>
+
<modules>
<module>actorServiceProvider</module>
<module>actor.appc</module>
diff --git a/models-interactions/model-impl/pom.xml b/models-interactions/model-impl/pom.xml
index a66abe8..e29a818 100644
--- a/models-interactions/model-impl/pom.xml
+++ b/models-interactions/model-impl/pom.xml
@@ -33,6 +33,10 @@
<groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
<artifactId>model-impl</artifactId>
+ <properties>
+ <jacoco.dataFile>${project.basedir}/../../../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
+ </properties>
+
<modules>
<module>aai</module>
<module>appc</module>
diff --git a/models-interactions/pom.xml b/models-interactions/pom.xml
index 5d5828c..64b2d21 100644
--- a/models-interactions/pom.xml
+++ b/models-interactions/pom.xml
@@ -29,6 +29,11 @@
<artifactId>policy-models-interactions</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
+
+ <properties>
+ <jacoco.dataFile>${project.basedir}/../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
+ </properties>
+
<modules>
<module>model-simulators</module>
<module>model-yaml</module>
diff --git a/models-sim/pom.xml b/models-sim/pom.xml
index 6a763a2..5bcb878 100644
--- a/models-sim/pom.xml
+++ b/models-sim/pom.xml
@@ -31,6 +31,11 @@
<artifactId>policy-models-sim</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
+
+ <properties>
+ <jacoco.dataFile>${project.basedir}/../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
+ </properties>
+
<modules>
<module>models-sim-dmaap</module>
<module>policy-models-sim-pdp</module>