【发布时间】:2015-03-05 11:52:51
【问题描述】:
我正在尝试让我们的 Mule 测试在出现详细异常的情况下运行,但我无法让 surefire 插件正确设置适当的系统属性,这是我的 surefire 配置:
<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>
现在,如果我使用命令 -Dmule.verbose.exceptions=true 运行 maven,它会打印详细异常,但如果我进行简单的 mvn 测试则不会。为什么我的系统属性在这里被忽略了?
【问题讨论】:
-
你尝试过旧方法吗?
[...]propertyName propertyValue
标签: maven junit mule maven-surefire-plugin