Skip to content

Commit 0e3e097

Browse files
committed
Solving issue with system properties
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent 82c58c7 commit 0e3e097

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

microprofile/tests/server/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,25 @@
6262
<scope>test</scope>
6363
</dependency>
6464
</dependencies>
65+
<build>
66+
<plugins>
67+
<!--
68+
Override plugin to be executed every test in a new JVM.
69+
This is required because there are some system property set.
70+
-->
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-surefire-plugin</artifactId>
74+
<configuration>
75+
<forkCount>1</forkCount>
76+
<reuseForks>false</reuseForks>
77+
<useModulePath>false</useModulePath>
78+
<trimStackTrace>false</trimStackTrace>
79+
<!-- DO NOT override argLine instead use surefire.argLine -->
80+
<argLine>${surefire.argLine} ${surefire.coverage.argline}</argLine>
81+
<redirectTestOutputToFile>true</redirectTestOutputToFile>
82+
</configuration>
83+
</plugin>
84+
</plugins>
85+
</build>
6586
</project>

0 commit comments

Comments
 (0)