In src/test/resources/log4j.propertiesI configured log4j to not write anything.
When I run one test, i.e. mvn clean test -Dtest=MyTestClass, these log4j properties are taken into account. However, when I run all the tests, i.e. mvn clean test, this conf log is ignored. How can it be?!!
I think I'm going crazy, but hope a logical explanation :-)
Any help is appreciated.
$ mvn -version
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk-8-oracle-x64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "4.6.0-1-amd64", arch: "amd64", family: "unix"
The true version of fire is 2.19.1:
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ common-util ---
src/test/resources/log4j.properties:
log4j.rootLogger=OFF
POM fragments associated with resources:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
source
share