I have an application which has depenendencies to many applications using log4j.
When I run that application with
mvn exec:java
everything works fine, but when I want to run it as a standalone java application by using
java -jar
I get many errors:
ERROR StatusLogger Unrecognized format specifier [d]
...
The reason is that the log4j2 configuration can not be found.
I know that there is an solution for that issue on
Log4j2 configuration not found when running standalone application builded by shade plugin
but I do use the maven assembly plugin and not the maven shade plugin so that I can not use that transformer. Besides I would really like to understand that problem in detail. How can it be possbile that the maven command works and that second java command does not?
Any help would be really appreciated
Thanks