Trace and debug logs can be helpful while doing development in the IDE, but during the build I find those lines quite disturbing, and obfuscating the report printed out by m
As explained by @artbristol (comment on the question) this can be configured in surefire.
It can be done in this way in the pom.xml:
maven-surefire-plugin
2.5
always
file:${basedir}/etc/log4j-silent.properties
Then, having the file ${basedir}/etc/log4j-silent.properties with following settings does the trick:
log4j.rootLogger=OFF
The log4j gets completely disabled during test runs in maven, and everything works normally in the IDE.
A better solution would be not to have the additional configuration file; but can't find it so far.