Skip to content

Instantly share code, notes, and snippets.

@turbanoff
turbanoff / colorizedMaven.groovy
Created September 22, 2015 12:05 — forked from fbricon/colorizedMaven.groovy
Setup Colorized Maven 3.2.5 with logback
import static groovyx.gpars.GParsPool.*
//Automates steps to colorized maven 3.2.5 described in http://aheritier.net/united-colors-of-maven/
//requires groovy 2.x
//groovy https://gist.github.com/fbricon/5763949/raw/colorizedMaven [optional/path/to/maven/]
def M2_HOME = (args && args.length > 0)?args[0]:System.getenv()["M2_HOME"]
println "Adding colorized output to $M2_HOME"
if (!M2_HOME) {
println "The maven directory can not be found"