$ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar
Written to the console, you get
ERROR
Make sure that you have put a log4j2.* file instead of a log4j.* file under .../src/main/resources folder.
log4j2.*
log4j.*
.../src/main/resources