maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (MSHARED-562) add an API to create messages with consistent and configurable colors
Date Fri, 01 Jul 2016 15:06:11 GMT


ASF GitHub Bot commented on MSHARED-562:

GitHub user seblm opened a pull request:

    [MSHARED-562] override default colors with java properties

    This pull request allow a user to redefine default maven colors with some java properties.
    For example one can edit his `~/.mavenrc` with the following:
    MAVEN_OPTS=" -Dstyle.warning=bold,yellow"
    Possible values are (case insensitive):
     - colors
       - `BLACK`
       - `RED`
       - `GREEN`
       - `YELLOW`
       - `BLUE`
       - `MAGENTA`
       - `CYAN`
       - `WHITE`
       - `DEFAULT`
     - styles
       - `BOLD`
    Additional note about tests: as configuration is handled into one single enum thus testing
with java property is merely impossible. Enum `Style` is already loaded when test is starting.

You can merge this pull request into a Git repository by running:

    $ git pull trunk

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13
commit 1b248c0c12ba98df1bd5cc79e8fdc712d060e58e
Author: Sébastian Le Merdy <>
Date:   2016-07-01T14:47:15Z

    [MSHARED-562] test default colors for each style

commit 6180b4bdcd4f5ecbd0a1bd64d9237692327224f9
Author: Sébastian Le Merdy <>
Date:   2016-07-01T14:51:33Z

    [MSHARED-562] allow color configuration with java properties


> add an API to create messages with consistent and configurable colors
> ---------------------------------------------------------------------
>                 Key: MSHARED-562
>                 URL:
>             Project: Maven Shared Components
>          Issue Type: New Feature
>          Components: maven-project-utils, maven-shared-utils
>            Reporter: Hervé Boutemy
>             Fix For: maven-project-utils-1.0.0
> Instead of letting plugin developers use JAnsi's Ansi class to define explicitely which
colors they want to put in their messages, creating a Maven-API like JAnsi's Ansi but providing
Maven-use case oriented methods to add colors will permit consistent and configurable colors
for Maven messages

This message was sent by Atlassian JIRA

View raw message