Fixed mvn and java issues on mavericks