Skip to content

Commit a91ef99

Browse files
committed
fix: Updated pom.xml settings to fix JaCoCo coverage reporting bug.
1 parent 93a50ab commit a91ef99

File tree

1 file changed

+24
-29
lines changed

1 file changed

+24
-29
lines changed

pom.xml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
<properties>
3232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33-
<maven.compiler.source>1.7</maven.compiler.source>
34-
<maven.compiler.target>1.7</maven.compiler.target>
33+
<maven.compiler.source>1.8</maven.compiler.source>
34+
<maven.compiler.target>1.8</maven.compiler.target>
3535
</properties>
3636

3737
<distributionManagement>
@@ -114,6 +114,8 @@
114114
<artifactId>maven-surefire-plugin</artifactId>
115115
<version>2.19.1</version>
116116
<configuration>
117+
<reuseForks>true</reuseForks>
118+
<argLine>-Xmx1024M ${argLine}</argLine>
117119
</configuration>
118120
</plugin>
119121
<plugin>
@@ -142,31 +144,6 @@
142144
<artifactId>coveralls-maven-plugin</artifactId>
143145
<version>4.3.0</version>
144146
</plugin>
145-
<plugin>
146-
<groupId>org.jacoco</groupId>
147-
<artifactId>jacoco-maven-plugin</artifactId>
148-
<version>0.8.7</version>
149-
<configuration>
150-
<destfile>${basedir}/target/coverage-reports/jacoco-unit.exec</destfile>
151-
<datafile>${basedir}/target/coverage-reports/jacoco-unit.exec</datafile>
152-
</configuration>
153-
<executions>
154-
<execution>
155-
<id>prepare-integration-tests</id>
156-
<phase>pre-integration-test</phase>
157-
<goals>
158-
<goal>prepare-agent</goal>
159-
</goals>
160-
</execution>
161-
<execution>
162-
<id>jacoco-site</id>
163-
<phase>post-integration-test</phase>
164-
<goals>
165-
<goal>report</goal>
166-
</goals>
167-
</execution>
168-
</executions>
169-
</plugin>
170147
<plugin>
171148
<groupId>org.apache.maven.plugins</groupId>
172149
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -203,9 +180,7 @@
203180
<serverPort>1080</serverPort>
204181
<proxyPort>1090</proxyPort>
205182
<logLevel>OFF</logLevel>
206-
<pipLogToConsole>false</pipLogToConsole>
207183
<initializationClass>org.mockserver.maven.ExampleInitializationClass</initializationClass>
208-
<argLine>-Dmockserver.disableSystemOut="true"</argLine>
209184
</configuration>
210185
<executions>
211186
<execution>
@@ -275,6 +250,26 @@
275250
<target>11</target>
276251
</configuration>
277252
</plugin>
253+
<plugin>
254+
<groupId>org.jacoco</groupId>
255+
<artifactId>jacoco-maven-plugin</artifactId>
256+
<version>0.8.4</version>
257+
<executions>
258+
<execution>
259+
<id>default-prepare-agent</id>
260+
<goals>
261+
<goal>prepare-agent</goal>
262+
</goals>
263+
</execution>
264+
<execution>
265+
<id>jacoco-report</id>
266+
<phase>test</phase>
267+
<goals>
268+
<goal>report</goal>
269+
</goals>
270+
</execution>
271+
</executions>
272+
</plugin>
278273
</plugins>
279274
</build>
280275
</project>

0 commit comments

Comments
 (0)