Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7989

Making this build non-interactive, because the environment variable CI equals "true".

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 4.0.0-alpha-10
    • 4.0.0-alpha-12, 4.0.0
    • Command Line, Core
    • None

    Description

      I'm running Maven 4.0.0-alpha-10 on CI (GitHub action) and the output shows me the information line:

      [INFO] Making this build non-interactive, because the environment variable CI equals "true". Disable this detection by removing that variable or adding --force-interactive.
      

      The output at the beginning of my build:

      Run mvn verify -Prun-its -e -B -V --no-transfer-progress
      Apache Maven 4.0.0-alpha-10 (89d3c0321dda868c432edf504f1884e6fd706f00)
      Maven home: /opt/hostedtoolcache/maven/4.0.0/x64
      Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-21-jdk-amd64
      Default locale: en, platform encoding: UTF-8
      OS name: "linux", version: "6.2.0-1018-azure", arch: "amd64", family: "unix"
      [INFO] Error stacktraces are turned on.
      [INFO] Making this build non-interactive, because the environment variable CI equals "true". Disable this detection by removing that variable or adding --force-interactive.
      [INFO] Scanning for projects...
      [INFO] ---------------------------------
      

      As I already set the non-interactive mode via -B (batch-mode) it would make sense in such case not to show the message.

      My opinion is to check for env.CI after the check for running non-interactive.. so in my case the message will not being printed. If I don't set the non-interactive mode it will exactly do this.

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            khmarbaise Karl Heinz Marbaise
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: