Closed jgebal closed 6 years ago
The activation of color flag seems to be based on a system property, not on a flag in pom.xml
That's fine. Then the trouble is on my local env as I get color output from maven but reporter output is without color. Probably relovling of color doesn't always work properly.
Let me try it in several ways. It would probably be worth mentioning this behavior in readme too
if i force the value, it gives that :
just need to fix the way we activate (or not) the color.
Do you get color without forcing it on your machine?
In this version, you have to set an environment variable before running the plugin : export style.color=always
I don't like this solution. All parameters should be taken from pom.xml or defined with default values if not provided. They shouldn't be taken from system/env properties because i think it adds too much complexity.
Maven somehow "knows" if it should provide output in color. Maybe we can just check if maven is displaying in color or not.
You're right, we can ask maven if coloration is activated or not.
The documentation reporter comes with option to display results in color. It would be good to have that option available in maven plugin