Ingo Karkat created MWRAPPER-113:
------------------------------------

             Summary: Error and warning output goes to standard output and 
intermingles with Maven output
                 Key: MWRAPPER-113
                 URL: https://issues.apache.org/jira/browse/MWRAPPER-113
             Project: Maven Wrapper
          Issue Type: Bug
          Components: Maven Wrapper Scripts
    Affects Versions: 3.2.0, next-release
            Reporter: Ingo Karkat


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.



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

Reply via email to