From 9511afda9976e4c80bc3c5261b723ea281de818e Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 26 Dec 2016 19:51:47 +0000 Subject: [PATCH] Maven: Add jacoco plugin and adjust to apply argLine correctly when calling "mvn jacoco:prepare-agent package jacoco:report jacoco:report-aggregate", however report-aggregate does not seem to work yet git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776068 13f79535-47bb-0310-9956-ffa450edef68 --- sonar/main/pom.xml | 2 +- sonar/ooxml/pom.xml | 2 +- sonar/pom.xml | 11 ++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sonar/main/pom.xml b/sonar/main/pom.xml index 7a9da5ae09..f3e05f2f2a 100644 --- a/sonar/main/pom.xml +++ b/sonar/main/pom.xml @@ -103,7 +103,7 @@ maven-surefire-plugin ${maven.plugin.surefire.version} - -Duser.language=en -Duser.country=US -Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index e7ffcc2d11..c5f0adaf02 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -93,7 +93,7 @@ maven-surefire-plugin ${maven.plugin.surefire.version} - -Duser.language=en -Duser.country=US -Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow diff --git a/sonar/pom.xml b/sonar/pom.xml index 5be832f140..a1a0da1201 100644 --- a/sonar/pom.xml +++ b/sonar/pom.xml @@ -106,7 +106,7 @@ org.apache.poi.util.NullLogger - -Duser.language=en -Duser.country=US -Xmx1024m + @{argLine} -Duser.language=en -Duser.country=US -Xmx1024m **/All*Tests.java **/TestUnfixedBugs.java @@ -121,6 +121,11 @@ 10 + + org.jacoco + jacoco-maven-plugin + 0.7.8 + @@ -151,7 +156,7 @@ 512m - -Xmx768m -XX:MaxPermSize=128m @{argLine} + -Xmx768m -XX:MaxPermSize=128m @@ -165,7 +170,7 @@ 768m - -Xmx1024m -XX:MaxPermSize=256m @{argLine} + -Xmx1024m -XX:MaxPermSize=256m