Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.2.0, 3.3.0
-
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
- links to