[ 
https://issues.apache.org/jira/browse/MNG-7989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise closed MNG-7989.
------------------------------------
    Resolution: Done

> Making this build non-interactive, because the environment variable CI equals 
> "true".
> -------------------------------------------------------------------------------------
>
>                 Key: MNG-7989
>                 URL: https://issues.apache.org/jira/browse/MNG-7989
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line, Core
>    Affects Versions: 4.0.0-alpha-10
>            Reporter: Karl Heinz Marbaise
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
>             Fix For: 4.0.0-alpha-11, 4.0.0
>
>
> I'm running Maven 4.0.0-alpha-10 on CI (GitHub action) and the output shows 
> me the information line:
> {code:java}
> [INFO] Making this build non-interactive, because the environment variable CI 
> equals "true". Disable this detection by removing that variable or adding 
> --force-interactive.
> {code}
> The output at the beginning of my build:
> {code:java}
> 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] ---------------------------------
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to