Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when headless in the CI #1028

Open
wendigo opened this issue Jun 17, 2024 · 3 comments
Open

Warnings when headless in the CI #1028

wendigo opened this issue Jun 17, 2024 · 3 comments

Comments

@wendigo
Copy link

wendigo commented Jun 17, 2024

When mvnd is used with a mvnw (wrapper) in the Github Actions it generates a warning that can't be disabled:

Jun 17, 2024 3:20:16 PM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
[main] WARNING org.jline - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
@HannesWell
Copy link

HannesWell commented Jan 5, 2025

I found out that one can enforce the usage of a dump terminal to suppress this warning by specifing the environment variable TERM='dumb'.

Specifying MAVEN_OPTS='-Dorg.jline.terminal.type=dumb' unfortunately didn't work somehow.
Edit: It looks like Maven-Daemon doesn't support MAVEN_OPTS at all: #572

It would be ideal if Maven-Daemon would detect automatically that it's running in a CI environment (e.g. by checking if the environment variable CI is specified) and then would automatically configure JLine accordingly. Or even if JLine would do it itself.

@laeubi
Copy link

laeubi commented Jan 5, 2025

Should -B not be the option to enable a (dumb) terminal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants