Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Quickstart: mvn jetty:run has no SLF4J back end after slf4j-simple moved to test scope

Aperta
#1,690 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dashorst ci sta già lavorando.

Dal 20/10/2026.

  • #1691 di @dashorst — aperta
  • #1692 di @dashorst — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Inspect the generated quickstart pom and its jetty-ee11-maven-plugin configuration, along with the SLF4J dependency comment. Set useTestScope so mvn jetty:run can use the test-scoped backend, clarify the comment about logging for Start, tests, and deployed WARs, then verify console logging and WAR contents. The issue also calls for the fix on wicket-10.x alongside #1684; pull request #1691 is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

#1684 (GitHub issue #1678) gave slf4j-simple test scope in the quickstart archetype. That keeps the back end out of the WAR, but mvn jetty:run no longer logs.

The jetty-ee11-maven-plugin in the generated pom does not set useTestScope, which defaults to false, so test-scoped dependencies stay off the webapp classpath. The plugin itself brings only slf4j-api. Running mvn jetty:run on a freshly generated quickstart now prints

SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation

and all of Wicket's log output, including exceptions logged by the request cycle, is dropped. Before #1684 it appeared on the console.

Setting <useTestScope>true</useTestScope> in the plugin configuration brings slf4j-simple back for jetty:run, while the WAR still contains no back end.

The comment above the dependency, <!-- LOGGING DEPENDENCIES - SLF4J-SIMPLE -->, still presents slf4j-simple as the project's logging setup. It should say that it only serves Start, jetty:run and the tests, and that a WAR deployed to a container without an SLF4J back end of its own (Tomcat, a standalone Jetty) needs one added.

The fix also goes to wicket-10.x together with #1684, which has not been cherry-picked there yet.

Lingua principale
Java
Stelle
797
Fork
416
Merge medio
1g 8h
PR unite (30g)
43

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/wicket

Tutte le issue di apache/wicket

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.