I found the solution.
I actually was the installation of postgres with brew that broke it.
brew intall postgres
also installs a newer version of maven, but this had set the java version to 1.6. So I did brew remove maven
, and when I now run mvn --version
it gives me:
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
And everything works as it should. :)