(1) Java Environment 1: Configure Java Environment variables
Export Java_home= "/library/java/javavirtualmachines/jdk1.8.0_40.jdk/contents/home"
Export path= "$JAVA _home/bin: $PATH"
Execute the command to make it effective source. bash_profile
MAVEN Environment
1: The first step to download maven currently the latest MAVEN 3.3 download address: http://maven.apache.org/download.cgi Address: http://apache.fayea.com/maven/maven-3/ 3.3.3/binaries/apache-maven-3.3.3-bin.zip
2: Unzip the downloaded maven3.3 to the/user/local/maven
3: Configure MAVEN's environment variables
Export Java_home= "/library/java/javavirtualmachines/jdk1.8.0_40.jdk/contents/home"
Export path= "$JAVA _home/bin: $PATH"
Export M2_home= "/usr/local/maven"
Export m2= "$M 2_home/bin"
Export Path= "$M 2: $PATH"
Export path= "/usr/local/mysql/bin: $PATH"
Execute the command to make it effective source. bash_profile
4: Does the test come into effect mvn-version
$ mvn-version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)
Maven Home:/usr/local/maven
Java version:1.8.0_40, Vendor:oracle Corporation
Java Home:/library/java/javavirtualmachines/jdk1.8.0_40.jdk/contents/home/jre
Default LOCALE:ZH_CN, Platform Encoding:utf-8
OS name: "Mac OS X", Version: "10.10.4", Arch: "X86_64", Family: "Mac"