[fix][build] Fix "An error has occurred in JaCoCo report generation"
@@ -110,6 +110,7 @@ flexible messaging model and an intuitive client API.</description>
<testRetryCount>1</testRetryCount>
<testJacocoAgentArgument/>
<testHeapDumpPath>/tmp</testHeapDumpPath>
+ <surefire.shutdown>kill</surefire.shutdown>
<docker.organization>apachepulsar</docker.organization>
<skipSourceReleaseAssembly>false</skipSourceReleaseAssembly>
<skipBuildDistribution>false</skipBuildDistribution>
@@ -1485,7 +1486,7 @@ flexible messaging model and an intuitive client API.</description>
</argLine>
<reuseForks>${testReuseFork}</reuseForks>
<forkCount>${testForkCount}</forkCount>
- <shutdown>kill</shutdown>
+ <shutdown>${surefire.shutdown}</shutdown>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<trimStackTrace>false</trimStackTrace>
<systemPropertyVariables>
@@ -1938,6 +1939,7 @@ flexible messaging model and an intuitive client API.</description>
<id>coverage</id>
<properties>
<testJacocoAgentArgument>@{jacoco.agent.argument}</testJacocoAgentArgument>
+ <surefire.shutdown>exit</surefire.shutdown>
</properties>
<build>
<plugins>
