]> source.dussan.org Git - aspectj.git/commitdiff
Suppress Maven download messages in CI build
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 19 Feb 2024 01:06:04 +0000 (08:06 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 19 Feb 2024 01:06:04 +0000 (08:06 +0700)
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 <Alexander@Kriegisch.name>
.github/workflows/maven.yml

index 59a27569ec47751d2e320aa4aea17f107b7dc457..159359d9ea9b53c3fa1fd431d71d5095fc2ab376 100644 (file)
@@ -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"