I have to create test war and production war, which will have a different log4j.properties file in the WEB-INF directory. I have these files
log4j.properties
WEB-INF
The code above didn't work for me - had to change it to the following:
maven-resources-plugin copy-prod-resources process-resources copy-resources true ${basedir}/target/classes src/main/resources/prod