Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-113

Error and warning output goes to standard output and intermingles with Maven output

    XMLWordPrintableJSON

Details

    • Patch

    Description

      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: https://github.com/apache/maven-wrapper/pull/106

      Attachments

        Issue Links

          Activity

            People

              bmarwell Benjamin Marwell
              inkarkat Ingo Karkat
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: