[
https://issues.apache.org/jira/browse/LOG4J2-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14037562#comment-14037562
]
Mck SembWever commented on LOG4J2-595:
--------------------------------------
A problem with this approach is that it depends at runtime on
{noformat}META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat{noformat}
For shaded jarfiles you'll end up with only one random Log4j2Plugins.dat loaded.
see PluginManager.decode(..)
> Support plugin preloading through the standard javax.annotation.processing
> tool
> -------------------------------------------------------------------------------
>
> Key: LOG4J2-595
> URL: https://issues.apache.org/jira/browse/LOG4J2-595
> Project: Log4j 2
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0-rc2
> Environment: Recent versions of Java and Maven
> Reporter: Matt Sicker
> Assignee: Matt Sicker
> Labels: annotations, compiler, plugins
> Fix For: 2.0-rc2
>
>
> Currently, in order to preload plugins, you have to add an exec-maven-plugin
> task to scan your code. Ideally, there'd be an annotations artifact (at least
> for the plugin annotations, but really just has to have all the necessary
> ones used for this) and a processor artifact that you'd include in your
> project. Then the maven-compiler-plugin would automatically run that
> annotation processor on your project during the compile phase. This would
> require less work from the end user to support their own custom plugins.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]