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

dashorst pushed a commit to branch wicket-10.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-10.x by this push:
     new d8ec34c9b9 Leave slf4j-simple out of the quickstart WAR (#1692)
d8ec34c9b9 is described below

commit d8ec34c9b9de03a40efe8fbce37363eb697e8483
Author: Martijn Dashorst <[email protected]>
AuthorDate: Fri Nov 13 16:34:40 2026 +0100

    Leave slf4j-simple out of the quickstart WAR (#1692)
    
    GitHub issues #1678 and #1690, backported from master, where #1684 first
    gave slf4j-simple test scope and the follow-up replaced that with the
    exclusion below. Thanks to Vishal V for #1684.
    
    The quickstart archetype added slf4j-simple at compile scope, so every
    generated WAR packaged an SLF4J back end. Containers that bring their
    own, such as WildFly, then see two: SLF4J warns about it at startup, and
    the application's logging may bypass the server's logging configuration.
    
    The maven-war-plugin now excludes slf4j-simple from the WAR. It keeps
    compile scope, so Start, jetty:run and the tests still log through it;
    test scope would have left jetty:run without a back end. A WAR deployed
    to a container without an SLF4J back end of its own, such as Tomcat or a
    standalone Jetty, needs one added; the comment on the dependency says
    so. Projects generated earlier are not affected.
    
    Generated-by: Claude Code (Claude Opus 5.5)
---
 .../quickstart/src/main/resources/archetype-resources/pom.xml      | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml 
b/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
index 685f2815ff..ecc74052f5 100644
--- a/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
@@ -70,7 +70,9 @@
                </dependency>
                -->
 
-               <!-- LOGGING DEPENDENCIES - SLF4J-SIMPLE -->
+               <!-- LOGGING DEPENDENCIES - SLF4J-SIMPLE, for Start, jetty:run 
and the tests.
+                       The maven-war-plugin leaves it out of the WAR: a 
container without an SLF4J
+                       back end of its own needs one added. -->
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-simple</artifactId>
@@ -173,6 +175,9 @@
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <version>@maven-war-plugin.version@</version>
+                               <configuration>
+                                       
<packagingExcludes>WEB-INF/lib/slf4j-simple-*.jar</packagingExcludes>
+                               </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.eclipse.jetty.ee10</groupId>

Reply via email to