You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2026/02/01 09:58:36 UTC

(maven) branch bugfix/move-slf4j-to-boot-classloader created (now a33920822d)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a change to branch bugfix/move-slf4j-to-boot-classloader
in repository https://gitbox.apache.org/repos/asf/maven.git


      at a33920822d Move SLF4J artifacts to boot classloader

This branch includes the following new commits:

     new a33920822d Move SLF4J artifacts to boot classloader

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven) 01/01: Move SLF4J artifacts to boot classloader

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/move-slf4j-to-boot-classloader
in repository https://gitbox.apache.org/repos/asf/maven.git

commit a33920822d7da395c4b26ca33f75f5812356cf6d
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sun Feb 1 10:58:26 2026 +0100

    Move SLF4J artifacts to boot classloader
    
    This makes it possible to use the SLF4J System.LoggerFinder
    This is looked up with ClassLoader.getSystemClassLoader().
    This also requires the SLF4J API to be provided in that classloader.
    
    This closes #11684
---
 apache-maven/src/assembly/component.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apache-maven/src/assembly/component.xml b/apache-maven/src/assembly/component.xml
index 5f55a310c8..08cc44a50b 100644
--- a/apache-maven/src/assembly/component.xml
+++ b/apache-maven/src/assembly/component.xml
@@ -24,6 +24,7 @@ under the License.
       <outputDirectory>boot</outputDirectory>
       <includes>
         <include>org.codehaus.plexus:plexus-classworlds</include>
+        <include>org.slf4j:*</include>
       </includes>
     </dependencySet>
     <dependencySet>
@@ -31,6 +32,7 @@ under the License.
       <outputDirectory>lib</outputDirectory>
       <excludes>
         <exclude>org.codehaus.plexus:plexus-classworlds</exclude>
+        <exclude>org.slf4j:*</exclude>
       </excludes>
     </dependencySet>
   </dependencySets>