summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-10-02 10:41:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-02 10:41:00 +0000
commitae8a6cc6731a514883821398f67d9b8bf56184b7 (patch)
treed3138d308087bfa85abf7627c82c990a930891f7
parent1c758acea9ce43fee28b0f8dcffa1234358b42c8 (diff)
parent75cdbb476df24408d8a8cff0c5d76f59c7238c01 (diff)
Merge "Configure jacoco plugin"
-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>