Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit befde26

Browse files
authored
Fix surefire warnings (#6)
As system property file.encoding should be set via argLine Emitted warning: ``` [INFO] --- maven-surefire-plugin:2.22.2:test (iso8859-1) @ plexus-cipher --- [WARNING] file.encoding cannot be set as system property, use <argLine>-Dfile.encoding=...</argLine> instead ```
1 parent 7ada458 commit befde26

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104
<goal>test</goal>
105105
</goals>
106106
<configuration>
107-
<systemPropertyVariables>
108-
<file.encoding>utf8</file.encoding>
109-
</systemPropertyVariables>
107+
<argLine>-Dfile.encoding=utf8</argLine>
110108
</configuration>
111109
</execution>
112110
<execution>
@@ -116,9 +114,7 @@
116114
<goal>test</goal>
117115
</goals>
118116
<configuration>
119-
<systemPropertyVariables>
120-
<file.encoding>iso8859-1</file.encoding>
121-
</systemPropertyVariables>
117+
<argLine>-Dfile.encoding=iso8859-1</argLine>
122118
</configuration>
123119
</execution>
124120
</executions>

0 commit comments

Comments
 (0)