Skip to content

Commit aa43861

Browse files
committed
1 parent b33d6ca commit aa43861

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pom.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,6 @@
457457
</parent>
458458

459459
<properties>
460-
<!-- Set JVM options for maven-surefire-plugin -->
461-
<argLine>-Xss256k</argLine>
462-
463460
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
464461
<assertj.version>3.14.0</assertj.version>
465462

@@ -916,6 +913,12 @@
916913
<configuration>
917914
<skipTests>${skipUnitTests}</skipTests>
918915
<disableXmlReport>${disableXmlReport}</disableXmlReport>
916+
<!--
917+
Workaround for a bug in surefire plugin: it doesn't respect sourceEncoding
918+
and doesn't pass it into a forked process.
919+
See: https://stackoverflow.com/questions/17656475/maven-source-encoding-in-utf-8-not-working
920+
-->
921+
<argLine>-Dfile.encoding=${project.build.sourceEncoding} -Xss256k</argLine>
919922
</configuration>
920923
</plugin>
921924

0 commit comments

Comments
 (0)