From 97b184aae84da7a821aa9beafe542520d5cf25e4 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Mon, 19 Feb 2024 08:06:04 +0700 Subject: [PATCH] Suppress Maven download messages in CI build by SLF4J system property, see https://blogs.itemis.com/en/in-a-nutshell-removing-artifact-messages-from-maven-log-output Signed-off-by: Alexander Kriegisch --- .github/workflows/maven.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 59a27569e..159359d9e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,5 +1,8 @@ # This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# Suppress Maven download messages by "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn", +# see https://blogs.itemis.com/en/in-a-nutshell-removing-artifact-messages-from-maven-log-output. name: Build AspectJ @@ -53,7 +56,7 @@ jobs: - name: Compile + package code # Also install (not just package) for subsequent build steps - run: ./mvnw -B --file pom.xml -DskipTests install + run: ./mvnw -B --file pom.xml -DskipTests install "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" - name: Attach aspectjrt to build uses: actions/upload-artifact@v4 @@ -92,7 +95,7 @@ jobs: installer/target/flattened-pom.xml - name: Create docs - run: ./mvnw -B --file pom.xml -DskipTests package -pl docs -P create-docs + run: ./mvnw -B --file pom.xml -DskipTests package -pl docs -P create-docs "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" - name: Attach docs to build uses: actions/upload-artifact@v4 @@ -102,4 +105,4 @@ jobs: path: aj-build/dist/docs/ - name: Run Tests - run: ./mvnw -B --file pom.xml -Daspectj.tests.verbose=false verify + run: ./mvnw -B --file pom.xml -Daspectj.tests.verbose=false verify "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" -- 2.39.5