apache / apache/maven-wrapper

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

Open
#319 0 comments 1 reaction 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
254
Forks
78
Avg merge
5h 26m
Merged PRs (30d)
2

Description

**[Jakub Bochenski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jbochenski)** opened **[MWRAPPER-144](https://issues.apache.org/jira/browse/MWRAPPER-144?redirect=false)** 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](https://issues.apache.org/jira/browse/MWRAPPER-113) Error and warning output goes to standard output and intermingles with Maven output
(_**"duplicates"**_)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.