1. download http://maven.apache.org/download.html
2. extract eg:C:\Program Files\apache-maven-3.0
3. 设置环境变量(一定要系统变量)
M2_HOME=C:\Program Files\apache-maven-3.0
path=....;M2_HOME\bin
4. test
$mvn -v