Installing maven on Mac OS:
-------------------------------------
a) Copy the maven folder inside "/usr/local” folder , which will look like this after copying
"/usr/local/apache-maven/apache-maven-3.2.1/bin"
b) update the .bash_profile and set the path
export PATH = {$PATH}: /usr/local/apache-maven/apache-maven-3.2.1/bin
c) type "source ~/.bash_profile” in the terminal window to refresh the .bash_profile.
Installing JDK on Mac OS:
------------------------------------
a) Download and install the latest version of JDK
b) Type the following command on the Terminal
$ /usr/libexec/java_home -V
c) Now type the following command to check the Java Version
$java -version
Updating System JDK Version:
-----------------------------------------
System JDK : /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Installed JDK : /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin
steps:
--------
a) cd /System/Library/Frameworks/JavaVM.framework/Versions/
b) sudo rm CurrentJDK
c) sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin CurrentJDK
Setting JAVA_HOME environment variable:
---------------------------------------------------------
a) Edit .bash_profile inside /Users/susantabehera/ folder
b) Type the following to set the environment variable
export JAVA_HOME=$(/usr/libexec/java_home)
c) Reload the .bash_profile by typing the following command on Terminal
source ~/.bash_profile