You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/12/30 18:16:16 UTC

[openmeetings] branch master updated: [OPENMEETINGS-1856] attempt to fix code coverage

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 81974d6  [OPENMEETINGS-1856] attempt to fix code coverage
81974d6 is described below

commit 81974d6dfd1b0d593173be5da7a60eee691afd1a
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Mon Dec 31 01:15:57 2018 +0700

    [OPENMEETINGS-1856] attempt to fix code coverage
---
 pom.xml | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6260a0d..8b0bd0c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@
 		<keytool-maven-plugin.version>1.5</keytool-maven-plugin.version>
 		<maven-jarsigner-plugin.version>3.0.0</maven-jarsigner-plugin.version>
 		<sonar-maven-plugin.version>3.5.0.1254</sonar-maven-plugin.version>
-		<jacoco-maven-plugin.versoin>0.8.2</jacoco-maven-plugin.versoin>
+		<jacoco.version>0.8.2</jacoco.version>
 		<forbiddenapis.version>2.6</forbiddenapis.version>
 		<!-- dependency versions -->
 		<junit.version>4.12</junit.version>
@@ -664,6 +664,13 @@
 				<version>${powermock.version}</version>
 				<scope>test</scope>
 			</dependency>
+			<dependency>
+				<groupId>org.jacoco</groupId>
+				<artifactId>org.jacoco.agent</artifactId>
+				<version>${jacoco.version}</version>
+				<classifier>runtime</classifier>
+				<scope>test</scope>
+			</dependency>
 		</dependencies>
 	</dependencyManagement>
 	<dependencies>
@@ -683,6 +690,12 @@
 			<groupId>javax.servlet</groupId>
 			<artifactId>javax.servlet-api</artifactId>
 		</dependency>
+		<dependency>
+			<groupId>org.jacoco</groupId>
+			<artifactId>org.jacoco.agent</artifactId>
+			<classifier>runtime</classifier>
+			<scope>test</scope>
+		</dependency>
 	</dependencies>
 	<build>
 		<plugins>
@@ -751,9 +764,15 @@
 				<artifactId>jacoco-maven-plugin</artifactId>
 				<executions>
 					<execution>
-						<id>prepare-agent</id>
+						<id>jacoco-instrument</id>
+						<goals>
+							<goal>instrument</goal>
+						</goals>
+					</execution>
+					<execution>
+						<id>jacoco-restore-instrumented-classes</id>
 						<goals>
-							<goal>prepare-agent</goal>
+							<goal>restore-instrumented-classes</goal>
 						</goals>
 					</execution>
 				</executions>
@@ -977,7 +996,7 @@
 				<plugin>
 					<groupId>org.jacoco</groupId>
 					<artifactId>jacoco-maven-plugin</artifactId>
-					<version>${jacoco-maven-plugin.versoin}</version>
+					<version>${jacoco.version}</version>
 					<configuration>
 						<destFile>${sonar.jacoco.reportPath}</destFile>
 						<append>true</append>