[ 
https://issues.apache.org/jira/browse/MNG-6225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433500#comment-17433500
 ] 

Michael Osipov commented on MNG-6225:
-------------------------------------

I think this can be partially solved with 
https://cwiki.apache.org/confluence/display/MAVEN/Commandline+inheritance and 
the removal of this: 
https://github.com/apache/maven/blob/2c37a7a38e8a4bb2b60e67d3169d4e660f477abf/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1785-L1790

> Maven should warn users to use MAVEN_OPTS instead of passing system 
> properties to mvn
> -------------------------------------------------------------------------------------
>
>                 Key: MNG-6225
>                 URL: https://issues.apache.org/jira/browse/MNG-6225
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line, Core
>    Affects Versions: 3.5.0
>            Reporter: Gili
>            Priority: Major
>
> 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?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to