Description
Package scanning is been discouraged since the Log4j 2 annotation processor was first created. Users who use it typically either aren't aware it isn't necessary or because they are creating shaded jars and remove the package data file.
Because Log4j 2.x includes the annotation processor in the log4j-core jar most users have the packaging information present whether they realize it or not, so the upgrade to 3.x shouldn't impact too many people since they would have had to explicitly disable the annotation processor or remove the data file.
Furthermore, Log4j 3 will use the JDK ServiceLoader to locate the plugin information which is supported out of the box by the maven shade plugin.
Attachments
Issue Links
- fixes
-
LOG4J2-3015 Remove "packages" attribute from CompositeConfiguration
- Resolved