From 6b8ee7314111421cbb8c6c7c0b808db8009c477e Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Fri, 4 Feb 2022 20:49:49 +0100 Subject: [PATCH] added jacoco configuration for sonarqube --- pom.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 414fe561b..c8a5ce2f4 100644 --- a/pom.xml +++ b/pom.xml @@ -74,6 +74,7 @@ <usertype-core.version>6.0.1.GA</usertype-core.version> <joda-time.version>2.10.12</joda-time.version> <vanilla-picker.version>2.12.1</vanilla-picker.version> + <jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version> <app.versionDate>${maven.build.timestamp}</app.versionDate> <maven.build.timestamp.format>dd.MM.yy</maven.build.timestamp.format> @@ -330,7 +331,7 @@ <version>2.22.2</version> <configuration> <junitArtifactName>junit:junit</junitArtifactName> - <argLine>-Dfile.encoding=UTF-8</argLine> + <argLine>${surefireArgLine} -Dfile.encoding=UTF-8</argLine> <systemPropertyVariables> <testProfile>true</testProfile> @@ -338,6 +339,23 @@ </configuration> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${jacoco-maven-plugin.version}</version> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <propertyName>surefireArgLine</propertyName> + </configuration> + </execution> + </executions> + </plugin> + <!--Deploy Plugin--> <plugin> <groupId>org.codehaus.mojo</groupId> -- GitLab