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

Hervé Boutemy commented on MNG-6282:
------------------------------------

ok, I found the right Maven invocation: {{MAVEN_OPTS="-Djansi.passthrough=true" 
mvn}}
The {{jansi.passthrough}} property has to be defined at JVM level, not Maven 
level

The issue with this way of doing is that you get unwanted output if you use 
cmd.exe or PowerShell.

Then it's better IMHO to use {{MAVEN_OPTS="-Djansi.force=true" mvn}}
this does not mess the output when using cmd.exe or PowerShell
This mess file content when redirecting mvn output to a file: this should be a 
rare case

I'll add more details in the JAnsi GitHub issue, since this lead me to more 
details on the issue analysis

> Console output has no colors in shell (both Git Bash and Cygwin) [regression 
> in Jansi 1.16 / Maven 3.5.1]
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-6282
>                 URL: https://issues.apache.org/jira/browse/MNG-6282
>             Project: Maven
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 3.5.1
>            Reporter: Dejan Stojadinović
>              Labels: regression, windows
>         Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png, 
> screenshot-4.png, screenshot-5-Cygwin.png
>
>
> See 
> [screenshot|https://issues.apache.org/jira/secure/attachment/12886398/screenshot-1.png]
>  for more details.
> _*Environment:*_
> * Windows 10, 64 bit
> * Oracle Java, version: *1.8.0_144*
> * Git Bash shell (MINGW64), Cygwin



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to