aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-19 08:06:04 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-19 08:06:04 +0700
commit97b184aae84da7a821aa9beafe542520d5cf25e4 (patch)
treeede61449105c5ae9845b862903185fe0ac40bb1f
parent8d5445631c474779b1a0ee37171d49ba01d8066f (diff)
downloadaspectj-97b184aae84da7a821aa9beafe542520d5cf25e4.tar.gz
aspectj-97b184aae84da7a821aa9beafe542520d5cf25e4.zip
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 <Alexander@Kriegisch.name>
-rw-r--r--.github/workflows/maven.yml9
1 files 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"