As you might have noticed, plugins like maven-surefire-plugin,
maven-failsafe-plugin and maven-dependency-plugin contain ANSI coloring
support, so yes it is possible at mojo-level.
They create a MessageBuilder via MessageUtils[1]. And yes, there are only
a small set of methods available to prevent a rainbow of colors, which
would be as bad as no colors at all :)
thanks,
Robert
[1]
https://maven.apache.org/shared/maven-shared-utils/apidocs/org/apache/maven/shared/utils/logging/MessageUtils.html
On Thu, 08 Aug 2019 01:02:36 +0200, Gili <cowwoc2...@gmail.com> wrote:
Looking at https://issues.apache.org/jira/browse/MNG-3507 and
https://github.com/eirslett/frontend-maven-plugin/issues/833#issuecomment-518996810
I am wondering if Maven plugins have the ability to output ANSI colors,
and if so how.
Are plugins expected to output to stdout/stderr to make use of colors,
or is it possible for them to send colors directly into the Maven logger
somehow?
Thank you,
Gili
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org