From 970113a1095c861733b818742d470da87245fcd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20=C5=BBygie=C5=82o?= Date: Fri, 1 Nov 2024 14:50:09 +0100 Subject: [PATCH] Redirect and display compiler output --- .github/workflows/maven.yml | 2 +- pom.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2cc8d39..8ecca0c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,5 +29,5 @@ jobs: - name: Build with Maven run: | ./mvnw --no-transfer-progress --show-version help:effective-settings - ./mvnw --no-transfer-progress --debug clean verify + ./mvnw --no-transfer-progress --debug clean verify || cat javac.out diff --git a/pom.xml b/pom.xml index e32a30c..41a5ab4 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,7 @@ true -XDcompilePolicy=simple + -Xstdoutjavac.out -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED