Skip to content

[MWRAPPER-113] Error and warning output goes to standard output and intermingles with Maven output #257

Closed

Description

@jira-importer

Ingo Karkat opened MWRAPPER-113 and commented

Errors and warnings from the wrapper should go to standard error, so that those are also shown to the user when the regular Maven output is suppressed, redirected into a file, or captured by a script.
For the latter use case, separation is especially critical because otherwise error output is mistakenly interpreted as desired Maven output (for example, when obtaining the list of Maven project names in the reactor with mvnw --quiet -Dexec.executable=echo '-Dexec.args=${project.groupId}:${project.artifactId}' org.codehaus.mojo:exec-maven-plugin:exec).
The current wrapper scripts do this only inconsistently, and so warnings like Warning: JAVA_HOME environment variable is not set. are printed to stdout instead of stderr.

Pull request: #106


Affects: 3.2.0, 3.3.0

Issue Links:

  • MWRAPPER-144 Warnings should be printed to stderr not stdout
    ("is duplicated by")

Remote Links:

Activity

  1. added
    bug
    priority:trivial
    on Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority:trivial

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions