viernes, 5 de diciembre de 2014

Change Maven Default JDK in MAC

Long time no see!!!!!

So I thought of type this one down before I forgot about it.

Now that Oracle start releasing at an increased rate I reckon it may be useful.

Soooo how to change the jdk maven uses to build you app:

1. Locate/create the file .mavenrc in your home
2. add the following line to it:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/${actual_jdk_version}/Contents/Home

At the time of me writing this that placeholder value was: jdk1.7.0_51.jdk


Hope it helps you!

No hay comentarios:

Publicar un comentario