我试图通过 exec-maven-plugin 执行我的独立应用程序,但它以 WIN 编码开始,而不是 UTF-8。我阅读了有关 Java 命令行键 -Dfile.encoding=UTF-8 的信息。如何将此属性设置为我的应用程序?谢谢。
maven pom:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<executable>java</executable>
<mainClass>my.main.Class</mainClass>
</configuration>
</plugin>