Move common flags from maven_args to steps command (#9)
diff --git a/.github/workflows/maven-verify-with-its.yml b/.github/workflows/maven-verify-with-its.yml
index 3a344b1..a5756f3 100644
--- a/.github/workflows/maven-verify-with-its.yml
+++ b/.github/workflows/maven-verify-with-its.yml
@@ -23,7 +23,7 @@
maven_args:
description: The arguments to pass to Maven when building the code
required: false
- default: --errors --batch-mode --show-version -P run-its -D"invoker.streamLogsOnFailures"
+ default: -P run-its -D"invoker.streamLogsOnFailures"
type: string
os-matrix:
@@ -97,7 +97,7 @@
cache: 'maven'
- name: Build with Maven
- run: mvn ${{ inputs.maven_args }} verify
+ run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} verify
verify:
needs: [ setup, build ]
@@ -125,7 +125,7 @@
cache: 'maven'
- name: Build with Maven
- run: mvn ${{ inputs.maven_args }} verify
+ run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} verify
- name: Build Maven Site
- run: mvn ${{ inputs.maven_args }} site
+ run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} site