Resolution: Not A Problem
Affects Version/s: 2.12.1, 2.13.0
Fix Version/s: None
openjdk version 11.0.6; Apache Maven 3.6.3; Ubuntu 19.10
Sample project to ease reproduction : https://github.com/skyghis/testLog4j2
I try to load configuration from an external file on a fat jar.
I tried to load configuration from multiples methods without success.
I kept two methods on my sample:
The code works when running from IDE, but when executed with java -jar the external configuration is not loaded.
Result when running from IDE:
Result when running from jar:
I expect to have the configuration file loaded when running my jar file like when running from IDE.
If I compile and execute the same code with java 8, the code works as expected :
So the issue seem specific to Java11.