setup java home java8 and mvn in yosemite

1. download and install java 8. 2. download and extract maven 3. create a .bash_profile under ~ (Users/yourname) if you do not have such a file (use ls -a to view all files including hidden ones). This file contains the options when you start your terminal. 4. ¬†find your java_home first: Java 7 and Java…