Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,690 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dashorst がすでに取り組んでいます。

2026年10月20日 から。

  • #1691 @dashorst による — オープン
  • #1692 @dashorst による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

#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.

主要言語
Java
スター
797
フォーク
416
平均マージ
1日 8時間
マージ済み PR(30日)
43

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/wicket のほかの issue

apache/wicket の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。