Script to colorize maven output in linux. Next sources was used:
you should do next steps:
- copy colorize-maven.sh to home folder(
~/
) - insert into
~/.bashrc
next code:
if [ -f ~/.colorize-maven.sh ]; then
. ~/.colorize-maven.sh
fi
- execute next command to reload
.bashrc
script:
>source ~/.bashrc
- Done.
Now you can use:
mvn
command for colorized maven
maven
for simple (non-colorized) maven