From fb128b80722a7e770798b0381d5aa35c2056a431 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 3 Sep 2026 14:05:55 +0200 Subject: [PATCH 1/2] chore(gh-actions): support debug logging for maven build --- .github/workflows/publish-release.yml | 4 +++- .github/workflows/publish-snapshot.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 597b0611..6df3d943 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -117,7 +117,9 @@ jobs: env: MAVEN_GPG_PASSPHRASE: ${{ secrets.PMD_CI_GPG_PASSPHRASE }} run: | - ./mvnw --show-version --errors --batch-mode \ + MVN_DEBUG=() + [ "${RUNNER_DEBUG:-}" = "1" ] && MVN_DEBUG=(--debug) + ./mvnw "${MVN_DEBUG[@]}" --show-version --errors --batch-mode \ verify \ -Psign -DskipTests diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index a535c20a..7c661a2c 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -107,7 +107,9 @@ jobs: env: MAVEN_GPG_PASSPHRASE: ${{ secrets.PMD_CI_GPG_PASSPHRASE }} run: | - ./mvnw --show-version --errors --batch-mode \ + MVN_DEBUG=() + [ "${RUNNER_DEBUG:-}" = "1" ] && MVN_DEBUG=(--debug) + ./mvnw "${MVN_DEBUG[@]}" --show-version --errors --batch-mode \ verify \ -Psign -DskipTests From e5ddadc8e39645c444c156a34c0f490d90f747b5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 3 Sep 2026 14:10:19 +0200 Subject: [PATCH 2/2] The same for the build workflows --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec0747ac..3dcf51a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,9 @@ jobs: - name: Build run: | - ${xvfb_cmd} ./mvnw --show-version --errors --batch-mode \ + MVN_DEBUG=() + [ "${RUNNER_DEBUG:-}" = "1" ] && MVN_DEBUG=(--debug) + ${xvfb_cmd} ./mvnw "${MVN_DEBUG[@]}" --show-version --errors --batch-mode \ verify - name: Upload screenshots and surefire reports of failed unit tests @@ -89,7 +91,9 @@ jobs: env: TARGET_PLATFORM: ${{ matrix.targetPlatform }} run: | - ${xvfb_cmd} ./mvnw --show-version --errors --batch-mode \ + MVN_DEBUG=() + [ "${RUNNER_DEBUG:-}" = "1" ] && MVN_DEBUG=(--debug) + ${xvfb_cmd} ./mvnw "${MVN_DEBUG[@]}" --show-version --errors --batch-mode \ verify \ -Dtarget.platform="${TARGET_PLATFORM}"