控制maven 输出信息的语言

设置javac 输出

set JAVA_TOOL_OPTIONS=-Duser.language=en

JAVA_TOOL_OPTIONS=-Duser.language=en

如果用java/java.exe来启动JVM,那么在命令行上使用 -Duser.country=US 就可以把国家指定为美国。用javac/javac.exe来启动javac编译器则需要再多加个-J在前面,也就是 -J-Duser.country=US 。

maven-surefire-plugin 控制

<camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError -Duser.language=en -Duser.region=GB </camel.surefire.fork.vmargs>

                    <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <argLine>@{camel.surefire.fork.vmargs}</argLine>
                    </configuration>
                </plugin>

maven-compiler-plugin 控制

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven-compiler-plugin-version}</version>
            <configuration>
                <release>${jdk.version}</release>
                <maxmem>512M</maxmem>
                <fork>${compiler.fork}</fork>
                <showDeprecation>true</showDeprecation>
                <showWarnings>true</showWarnings>
                <compilerArgs>
                    <!-- SB2 actuator endpoint requires MethodParameter metadata -->
                    <arg>-parameters</arg>
                    <arg>-J-Duser.country=US</arg>
                 </compilerArgs>
            </configuration>
        </plugin>
相关推荐
黄昏_2 分钟前
苍穹外卖Day01-2
java·spring
努力的八爪鱼14 分钟前
记录工作中遇到的问题(持续更新~)
java
求学小火龙16 分钟前
ElasticSearch介绍+使用
java·大数据·elasticsearch
mikey棒棒棒18 分钟前
算法练习题25——合并多项式
java·算法·hashmap·哈希·多项式
kimloner20 分钟前
工厂模式(二):工厂方法模式
java·设计模式·工厂方法模式
月临水29 分钟前
JavaEE:网络编程(UDP)
java·网络·udp·java-ee
Deryck_德瑞克36 分钟前
Java集合笔记
java·开发语言·笔记
孟诸1 小时前
计算机专业毕设-校园新闻网站
java·vue·毕业设计·springboot·课程设计
计算机学姐1 小时前
基于SpringBoot+Vue的篮球馆会员信息管理系统
java·vue.js·spring boot·后端·mysql·spring·mybatis
kakwooi1 小时前
JavaEE---Spring IOC(2)
java·spring·java-ee