Skip to content

Colorizes the output of Maven 2; think Greasemonkey for Maven

Notifications You must be signed in to change notification settings

sleberrigaud/Console-Colorizer

 
 

Repository files navigation

Usage:

1. Copy jar to M2_HOME/boot
2. Copy the M2_HOME/bin/mvn script to M2_HOME/bin/mvn2
3. Edit the M2_HOME/bin/mvn2 script and change the last line from:

exec "$JAVACMD" \
  $MAVEN_OPTS \
  -cp "${M2_HOME}"/boot/classworlds-*.jar \
  "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
  "-Dmaven.home=${M2_HOME}"  \
  ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS

to:

exec "$JAVACMD" \
  $MAVEN_OPTS \
  -cp "${M2_HOME}"/boot/classworlds-1.1.jar:"${M2_HOME}"/boot/maven-interceptor-full-0.4-SNAPSHOT.jar \
  "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
  "-Dmaven.home=${M2_HOME}"  \
  org.twdata.maven.interceptor.App $QUOTED_ARGS

3. Add the M2_HOME/bin/mvn2 to your path

Now, you can use colorised output via 'mvn2' or execute as normal via 'mvn'

About

Colorizes the output of Maven 2; think Greasemonkey for Maven

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%