aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorayalaben <ayala.benzvi@amdocs.com>2018-09-27 14:27:45 +0300
committerayalaben <ayala.benzvi@amdocs.com>2018-09-27 15:28:05 +0300
commit75cdbb476df24408d8a8cff0c5d76f59c7238c01 (patch)
tree6417ecb805e924e91edb4526213c796e176c4032
parentced52387d2d333d860dbee2fa1ee0a7a0108a960 (diff)
Configure jacoco plugin
Change-Id: I15b3a1f96855115c84a72bec4029e668c7c58501 Issue-ID: SDC-1801 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
-rw-r--r--pom.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 498f2267..e4131bbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,7 @@
<packaging>pom</packaging>
<properties>
+ <jacoco.skip>true</jacoco.skip>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -57,6 +58,16 @@
<pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.2</version>
+ </plugin>
+ <plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.23.0</version>
@@ -91,6 +102,37 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>post-unit-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>target/jacoco.exec</dataFile>
+ <outputDirectory>target/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>