Skip to content
Jean-Christophe GAY edited this page Jun 15, 2016 · 11 revisions

Welcome to the maven-color wiki!

Since version 3.5.0, Maven now has buit-in color support! maven-color may be not so useful after all 😇. You can still use it if you want to remove Log level information and print full warning messages in color.

Since version 3.1.0, Maven relies on SLF4J internally, meaning you can choose what logger implementation you want to use. By default it comes with slf4j-simple.

Read United colors of Maven to learn more about it !

Installation

Full instructions here

Color customization

Starting with maven-color 1.2, you can define your own Color customization.

Disable coloring

Starting with maven-color 1.3, you can disable coloring when launching mvn:

MAVEN_OPTS="$MAVEN_OPTS -Dmaven.color=false" mvn verify

Display log level

By default when colors are activated, log level are hidden. Since maven-color 1.6, displaying level can be forced using property maven.color.hide.level with value false.

Example:

mvn test -Dmaven.color.hide.level=false

You can make it permanent by adding it to your $MAVEN_OPTS env variable.

Clone this wiki locally