Пользовательский плагин Log4j2 (2.1) не обнаружен атрибутом packages ⇐ JAVA
-
Anonymous
Пользовательский плагин Log4j2 (2.1) не обнаружен атрибутом packages
I have packaged my log4j2 custom plugin into a separate jar (contains only plugin classes) and have put it in application classpath. But it does not get detected.
I googled found that it's a bug - "packages" parameter is no longer used. Also some links suggested some alternatives where maven pom.xml and a log4j2 plugin dat file comes in context. The problem is that I am not familiar with maven and have no idea on how dat file is generated. I just know that it is included in log4j-2.1-core.jar where existing log4j2 plugins are defined in pom.xml.
Can some-one suggest me how can I make my custom plugin work ?
I went through this - Log4j2 custom plugins - annotation processing with Maven Assembly Plugin
But its not clear. I am following the solution but not sure how plugin dat file created for custom plugin or where exactly I need to make the changes..
Источник: https://stackoverflow.com/questions/297 ... -attribute
I have packaged my log4j2 custom plugin into a separate jar (contains only plugin classes) and have put it in application classpath. But it does not get detected.
I googled found that it's a bug - "packages" parameter is no longer used. Also some links suggested some alternatives where maven pom.xml and a log4j2 plugin dat file comes in context. The problem is that I am not familiar with maven and have no idea on how dat file is generated. I just know that it is included in log4j-2.1-core.jar where existing log4j2 plugins are defined in pom.xml.
Can some-one suggest me how can I make my custom plugin work ?
I went through this - Log4j2 custom plugins - annotation processing with Maven Assembly Plugin
But its not clear. I am following the solution but not sure how plugin dat file created for custom plugin or where exactly I need to make the changes..
Источник: https://stackoverflow.com/questions/297 ... -attribute
Мобильная версия