【发布时间】:2013-08-06 23:20:56
【问题描述】:
我正在使用 maven 运行我的测试。当测试运行时,有很多无用的(至少对我来说)消息输出到控制台。我的 pom.xml 有以下插件配置。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<includes>
<include>**/*Tests.java</include>
</includes>
<systemPropertyVariables>
<log4j.configuration>file:${project.build.testOutputDirectory}/log4j.properties</log4j.configuration>
</systemPropertyVariables>
</configuration>
</plugin>
当我跑步时
mvn clean test
我看到一堆如下所示的消息。
[parsing started RegularFileObject[...]]
[search path for source files: ...]
[search path for class files: ...]
[loading ZipFileIndexFileObject[...]]
如何关闭这些?
【问题讨论】:
标签: maven junit maven-3 junit4