Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6242

No color for maven on Cygwin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.0
    • 3.5.2
    • Command Line
    • None
    • Cygwin. For example, my uname currently says:

      CYGWIN_NT-10.0 Beren 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin

    Description

      Full description and workaround here: https://binkley.blogspot.com/2017/04/maven-color-logging-on-cygwin.html

      In short: the JANSI library used in Maven 3.5.0 does not detect Cygwin, and falls back to no color. There is a workaround (Zart Colwing): Add -Djansi.passthrough=true to MAVEN_OPTS.

      As the mvn script understands Cygwin, it would be helpful to add the passthrough flag automatically. (Of course, there may need to be some smarts about batch and logging modes, and checking if stdout is a console vs pipeline.)

      Apologies: I'm unsure how to issue a PR for the maven repo.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              binkley Brian Oxley
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: