This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ANSI colors no longer work as of Maven 3.5.0 (Maven 3.3.9 works fine) | ||
---|---|---|---|
Product: | projects | Reporter: | _ gtzabari <gtzabari> |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ gtzabari
2017-05-09 06:20:58 UTC
I think I figured out the underlying problem. Maven 3.5.0 integrated jansi into its core. jansi tries to detect the terminal capability and if it doesn't think that the terminal support ANSI codes, it strips them out of the output. Looking at https://github.com/fusesource/jansi/blob/master/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java#L111 I can confirm that I am running under Windows, not under cygwin, nor under mingw. Therefore, it is logical to assume the jansi strips color codes in this case. Furthermore, if I set MAVEN_OPTS to "-Djansi.passthrough=true" colors *do* work. Therefore, I propose that either we add special Netbeans-detection to jansi, or update the Netbeans integration to pass "-Djansi.passthrough=true" to Maven. |