Sunday, July 28, 2013

Tip for my future self: Java 7 and Maven on OS X

I am finally upgrading to Java 7 on my Mac box and I've been hit by MNG-4226. Maven was still using the Java 6 installation, as described in this Stack Overflow post.

Solution, create file /etc/mavenrc with JAVA_HOME=`/usr/libexec/java_home -v 1.7`.