# 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
- 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
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
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"