Friday, June 10, 2011

Enabling colors for maven output

I was exploring how to enable color to the maven output and came across this link which explains how to patch the maven libraries to enable color coding, but didn't like patching maven and all to enable simple color output for maven. Then came across this wonderful shell script which uses sed to enable the color for the output generated by maven. You could also change the colors for each of the patterns like INFO, ERRORS and WARNING, for that matter any particular pattern you want because its using sed. 

No comments: