I have application which when I run from maven log4j2 it is working:
mvn exec:java -Dexec.args=...
but when I run jar as standalone applica
I have resolved this issue by adding the following line in the run configuration.
-Dlog4j.configurationFile=C:\Users\aaa\Desktop\deploy\bin\log4j2.xml
My Log4j version is
2.12.1