You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/03/17 08:46:26 UTC

(camel) branch main updated: [build] Add -B (batch mode) to Maven/mvnd CI invocations (#22049)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 06f81facfe54 [build] Add -B (batch mode) to Maven/mvnd CI invocations (#22049)
06f81facfe54 is described below

commit 06f81facfe54c4f2d7dbb9efd96509119e6edb51
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Mar 17 09:46:18 2026 +0100

    [build] Add -B (batch mode) to Maven/mvnd CI invocations (#22049)
    
    Adds the -B flag to suppress JLine terminal warnings in CI:
      "Unable to create a system terminal, creating a dumb terminal"
    
    - MVND_OPTS in install-mvnd action: added -B
    - ./mvnw calls in incremental-build.sh: added -B
    
    Co-authored-by: Claude Opus 4.6 <no...@anthropic.com>
---
 .github/actions/incremental-build/incremental-build.sh | 4 ++--
 .github/actions/install-mvnd/action.yml                | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/actions/incremental-build/incremental-build.sh b/.github/actions/incremental-build/incremental-build.sh
index b7f600fdf30d..e59634a1a79c 100755
--- a/.github/actions/incremental-build/incremental-build.sh
+++ b/.github/actions/incremental-build/incremental-build.sh
@@ -111,7 +111,7 @@ function main() {
         for w in $pl; do
           echo "$w"
         done
-        totalTestableProjects=$(./mvnw -q -amd exec:exec -Dexec.executable="pwd" -pl "$pl" | wc -l)
+        totalTestableProjects=$(./mvnw -B -q -amd exec:exec -Dexec.executable="pwd" -pl "$pl" | wc -l)
       fi
       if [[ ${totalTestableProjects} -gt ${maxNumberOfTestableProjects} ]] ; then
         echo "Launching fast build command against the projects ${pl}, their dependencies and the projects that depend on them"
@@ -146,7 +146,7 @@ function main() {
         echo "The test-dependents label has been detected thus the projects that depend on affected projects will be tested"
         totalTestableProjects=0
       else
-        totalTestableProjects=$(./mvnw -q -amd exec:exec -Dexec.executable="pwd" -pl "$pl" | wc -l)
+        totalTestableProjects=$(./mvnw -B -q -amd exec:exec -Dexec.executable="pwd" -pl "$pl" | wc -l)
       fi
       if [[ ${totalTestableProjects} -gt ${maxNumberOfTestableProjects} ]] ; then
         echo "There are too many projects to test so only the affected projects are tested:"
diff --git a/.github/actions/install-mvnd/action.yml b/.github/actions/install-mvnd/action.yml
index c37c43fe89f9..27d584f0a757 100644
--- a/.github/actions/install-mvnd/action.yml
+++ b/.github/actions/install-mvnd/action.yml
@@ -63,5 +63,5 @@ runs:
         VERSION: ${{ inputs.version }}
         DISTRIBUTION: ${{ inputs.distribution }}
     - id: mvnd-opts
-      run: echo "MVND_OPTS=-P apache-snapshots -V -e -ntp -Dmvnd.threads=2 -Daether.connector.http.connectionMaxTtl=120 -Daether.connector.requestTimeout=300000 -Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=25 -Dci.env.name=github.com -Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=2" >> $GITHUB_ENV
+      run: echo "MVND_OPTS=-B -P apache-snapshots -V -e -ntp -Dmvnd.threads=2 -Daether.connector.http.connectionMaxTtl=120 -Daether.connector.requestTimeout=300000 -Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=25 -Dci.env.name=github.com -Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=2" >> $GITHUB_ENV
       shell: bash