Maven 未设置Surefire系统属性
我正试图让我们的Mule测试在详细异常情况下运行,但我无法让surefire插件正确设置相应的系统属性,以下是我的surefire配置:Maven 未设置Surefire系统属性,maven,junit,mule,maven-surefire-plugin,Maven,Junit,Mule,Maven Surefire Plugin,我正试图让我们的Mule测试在详细异常情况下运行,但我无法让surefire插件正确设置相应的系统属性,以下是我的surefire配置: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<systemPropertyVariables>
<mule.verbose.exceptions>true</mule.verbose.exceptions>
</systemPropertyVariables>
</configuration>
org.apache.maven.plugins
maven surefire插件
2.18.1
真的
现在,如果我使用命令-Dmule.verbose.exceptions=true运行maven,它将打印详细的异常,但如果我执行简单的mvn测试,它将不会打印。为什么我的系统属性在这里被忽略?我没有检查代码,但可能是由于在surefire初始化之前执行的静态检查造成的。我宁愿尝试中描述的特殊变量机制。您是否尝试过旧方法?propertyName propertyValue[…]