Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.10, 2.16
-
None
-
None
Description
maven-surefire-plugin is ignoring "project.build.sourceEncoding"-property when forking jvm for testcase execution.
The attached testcase fails with surefire for a project configured as UTF-8 but is successful when executed in eclipse.
Known Workaround:
Configure surefire in the following way <configuration><argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine></configuration>
P.S.: Unfortunately the oracle jvm itself is also unsafe. Executing the testcase with java.exe (without file.encoding-argument) gives AssertionError, executing with javaw.exe (without file.encoding-argument) is successful.