gnodet commented on issue #12730: URL: https://github.com/apache/maven/issues/12730#issuecomment-5396305979
Maven 4 already has a `--raw-streams` flag (added in [MNG-8600](https://issues.apache.org/jira/browse/MNG-8600)) that bypasses the `LoggingOutputStream` wrapper and sends `System.out`/`System.err` directly to the terminal — no `[INFO] [stdout]` decoration. This is the equivalent of mvnd's raw output mode. **Immediate workaround:** ``` mvn --raw-streams -q help:evaluate -Dexpression=appNameShort -DforceStdout ``` **The fix in #12810:** `-q`/`--quiet` now implies `--raw-streams` automatically. The `LoggingOutputStream` wrapper (which adds the `[INFO] [stdout]` prefix) is bypassed in quiet mode, restoring the Maven 3 behavior where `$(mvn -q help:evaluate ...)` produces clean, script-friendly output. Note: #12733 attempted a different approach (changing the stdout logger level to ERROR), but that would suppress the output *entirely* rather than removing just the prefix, since the value is emitted via `stdout.info(...)`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
