[MNG-6225] Maven should warn users to use MAVEN_OPTS instead of passing system properties to mvn
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Gili](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cowwoc)** opened **[MNG-6225](https://issues.apache.org/jira/browse/MNG-6225?redirect=false)** and commented
I'm not sure which Maven component this bug report belongs to (please reassign if needed).
This is a follow-up to https://issues.apache.org/jira/browse/SUREFIRE-1369
To recap: someone (probably Maven core) is redirecting the native stdout handle when running plugins such as Surefire. This prevents applications from outputting ANSI colors under Windows 10 because:
* Applications must explicitly enable ANSI support using JNI.
* The JNI calls fail if the stdout handle has been redirected.
If I run the exact same application outside of Maven, JNI no longer detects that stdout has been redirected and ANSI colors as expected.
Any idea who is doing the redirection, and how to disable it?
---
**Affects:** 3.5.0
**Issue Links:**
- [SUREFIRE-1371](https://issues.apache.org/jira/browse/SUREFIRE-1371) Plugin should fail if argLine is set when forkCount = 0
Contributor guide
Assessment
This issue has not been assessed yet.