<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
<propertyName>surefireArgLine</propertyName>
</configuration>
</configuration>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<argLine>${surefireArgLine}</argLine>
</configuration>
</plugin>
I tried removing argLine in maven-surefire but I can see "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?"
I tried removing <propertyName> from Jacoco but still, it didn't work.
I tried <forkCount> as 0 in Surefire but no luck. Even tried <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> and <useSystemClassLoader>false</useSystemClassLoader> but none of this worked.
Please let me know if you have any suggestions.
I tried <forkCount> as 0 in Surefire but no luck.
Even tried <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> and <useSystemClassLoader>false</useSystemClassLoader> but none of this worked.
I tried removing argLine in maven-surefire but I can see "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?"