Skip to content

[MWRAPPER-144] Warnings should be printed to stderr not stdout #319

Open

Description

@jira-importer

Jakub Bochenski opened MWRAPPER-144 and commented

E.g. this one

Warning: JAVA_HOME environment variable is not set.

This prevents one from using wrapper in scripts:

$ repo=$(./mvnw help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
$ echo $repo
Warning: JAVA_HOME environment variable is not set. /home/jakub/.m2/repository

Vs calling maven directly

$ repo=$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
$ echo $repo
/home/jakub/.m2/repository

Issue Links:

  • MWRAPPER-113 Error and warning output goes to standard output and intermingles with Maven output
    ("duplicates")

Activity

  1. added
    bug
    priority:major
    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

No one assigned

    Labels

    bugpriority:major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions